[Coding help?]Shutting down enemy systems

Discuss and distribute tools and methods for modding. Moderator - Grognak
geekZoltan
Posts: 12
Joined: Thu Feb 14, 2013 2:37 pm

[Coding help?]Shutting down enemy systems

Postby geekZoltan » Thu Feb 14, 2013 2:48 pm

Hi people in internet.
Could somebody smarter than me help?

The slug ships can in many events shut your systems down(the systems will go blue until the battle is over).
Is it possible to make a hacking device (custom augmentation) that makes same effect work against enemy ships? For now I have found this line of code:

Code: Select all

<status type="divide" target="player" system="shields" amount="2"/>


Changing "player" into "enemy" does not work... help!
alextfish
Posts: 183
Joined: Sun Sep 30, 2012 2:24 pm
Location: Cambridge, UK
Contact:

Re: [Coding help?]Shutting down enemy systems

Postby alextfish » Thu Feb 14, 2013 4:58 pm

There's one Rock event where this kind of thing is done. It's in events_rock.xml and looks like this:

Code: Select all

<status type="divide" target="enemy" system="engines" amount="2"/>


So in theory it ought to be possible to make a bunch of encounter events offer a blue option based on a custom augment that does something similar to this.

It does look very similar to the line you've got; perhaps make sure that that <status> is applied immediately after <ship hostile="true"/>?

Who is online

Users browsing this forum: No registered users and 13 guests