[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: 184
Joined: Sun Sep 30, 2012 2:24 pm

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"/>?
Many years ago I created the FTL Starcraft mod: 18 new challenging ships to fly through the FTL universe!, and wrote a tutorial on creating your own FTL ships. They haven't been updated for AE though.