Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: interactive actions
Re: New feature: interactive actions[message #346448 is a reply to message #346447]
|
Tue, 02 August 2016 21:21
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Hacking
The first action I've added is hacking. When the cursor looks like this, you can hack something:
Note that this is a multi-turn-action. You will need several truns to finish this - in realtime this will happen instantly. Hacking requires skill, and for that there is a new background property:
Toggle Spoiler
...
<hackerskill>0</hackerskill> <!-- hacker skill, 0 to 100. Value > 0 means we can hack computers -->
...
<!-- Gumpy -->
<BACKGROUND>
<uiIndex>45</uiIndex>
<szName>Harvard graduate</szName>
<szShortName>Harvard graduate</szShortName>
<szDescription>University taught you many things, but combat isn't one of them.</szDescription>
<leadership>-5</leadership>
<ap_fortify>10</ap_fortify>
<disarm_trap>20</disarm_trap>
<traplevel>1</traplevel>
<resistance_suppression>-10</resistance_suppression>
<insurance>50</insurance>
<hackerskill>60</hackerskill>
<no_male>1</no_male>
<no_female>1</no_female>
</BACKGROUND>
...
Our hacking skill can be improved by a percentage multiplier that we can gain from items:
Toggle Spoiler
...
<ITEM>
<uiIndex>1021</uiIndex>
<szItemName>Laptop</szItemName>
<szLongItemName>Laptop</szLongItemName>
<szItemDesc>This thing just crashes with a blue screen when you boot it up. It might be the humidity. It might just be Windows.</szItemDesc>
...
<usHackingModifier>50</usHackingModifier>
...
</ITEM>
...
We only get bonus from one item per inventory, and the bonus is influenced linearly by item status. So if Ears has a hacking skill of 30 and a laptop with status 80 in his inventory, his skill will be 30 * (1 + 0.5 * 0.8) = 42.
As a result, only people with the hacking skill can hack computers. Per default, the following mercs have gained this ability:
- Barry (10)
- Gumpy (60)
- Fredo (50)
- Speck (80)
- Sparky (20)
- Ears (30)
I am open to give this ability to more people, but I am not inclined to give it to any top-mercs. I see none that would fit, honestly. besides, hacking isn't strictly required for the game - though I added a few rather nice boni if you do so.
Speaking if adding stuff - I've identified 42 computers in the stock maps, and have added unique events for all of them in HandleInteractiveActionResult() in Overhead.lua. Yes, that took me quite a while. So hacking will always provide some result - on some computers, just a bit of 'lore'-building (for example, hacking a computer in Orta might give you more info on the rocket rifles). Other computers allow you to get info on enemy personnel, or even allow you to earn money.
As each action can have an unique diffulty level, some hackers might only be able to hack some computers. Speck can hack into things Barry has no chance of breaching.
Keep in mind that you can define in the xml what can be hacked an what can't. It's reasonable to apply this to computers, but it you want to hack a tree - that's only a xml change away.
Read file
Similar to hacking, the idea is to 'read' books from a book shelf, or or files from a file cabinet. I've added a few examples, but haven't provided an unique event for each of them. Given the number of book shelves in Arulco, I wanted to rather finish the feature this month :-)
Our reading skill is our wisdom stat.
Drink from a water tap
Allows 'drinking' from a structure. You will regain breath. If food feature is turned on, you can gain drink points. If disease is on and the sector's water is poisoned, you have a chance to get a disease.
Of course you can define this action on toilets, too .
Robots and vehicles have a water drinking skill of 0. Anybody else has 100 - we are pros at drinking water.
Buy soda
As demonstrated by Ivan in the video - you insert money, and get a soda can.
Note that the soda you get will be the first item with the new 'SODA'-flag, which is <ItemFlag>134217728</ItemFlag>.
We are also pros at buying soda, unless our war chest doesn't cover the measly $3 required for it. That would be quite embarassing.
Play a minigame
Another feature added in r8346 & GameDir r2350 allows you to play at arcade machines. So far only Tetris. Perhaps this might change in the future?
Of course, many many more actions are thinkable - depending on what you think of (and whether people are actually willing to draw the cursors and find sounds instead of making me do all the work and then whining about the bad art), I might add more.
[Updated on: Sun, 11 December 2016 14:30]
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
|
New feature: interactive actions
By: Flugente on Tue, 02 August 2016 21:21
|
|
|
Re: New feature: interactive actions
By: Flugente on Tue, 02 August 2016 21:21
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
By: ratpaz on Tue, 02 August 2016 22:07
|
|
|
Re: New feature: interactive actions
By: Kerghnox on Wed, 03 August 2016 00:55
|
|
|
Re: New feature: interactive actions
By: Flugente on Wed, 03 August 2016 02:15
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
By: Flugente on Wed, 03 August 2016 13:33
|
|
|
Re: New feature: interactive actions
By: Elvis_A on Wed, 03 August 2016 21:21
|
|
|
Re: New feature: interactive actions
By: Slax on Thu, 04 August 2016 00:53
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
By: Flugente on Fri, 05 August 2016 21:52
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
By: Flugente on Wed, 10 August 2016 01:42
|
|
|
Re: New feature: interactive actions
By: Flugente on Wed, 10 August 2016 20:57
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
By: Flugente on Thu, 11 August 2016 01:13
|
|
|
Re: New feature: interactive actions
By: Julix on Thu, 11 August 2016 08:44
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
By: Kitty on Wed, 19 February 2020 03:36
|
|
|
Re: New feature: interactive actions
By: San-Cat on Sat, 30 May 2020 19:10
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
|
|
|
Re: New feature: interactive actions
|
Goto Forum:
Current Time: Tue Dec 03 04:38:19 GMT+2 2024
Total time taken to generate the page: 0.01337 seconds
|