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 Go to previous messageGo to previous message
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:
http://i.imgur.com/QiPrfk3.png
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

Our hacking skill can be improved by a percentage multiplier that we can gain from items:
Toggle Spoiler

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

http://i.imgur.com/nuz3OaN.png

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

http://i.imgur.com/GDlS7lQ.png

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 aww.

Robots and vehicles have a water drinking skill of 0. Anybody else has 100 - we are pros at drinking water.

Buy soda

http://i.imgur.com/iPPotCs.png

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

http://i.imgur.com/vF4mjfY.png

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

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Feature: ballistic shields
Next Topic: filling a canteen
Goto Forum:
  


Current Time: Tue Dec 03 04:38:19 GMT+2 2024

Total time taken to generate the page: 0.01337 seconds