Page 1 of 1
ion event edit
Posted: Mon Dec 11, 2017 5:36 pm
by VertigoAbyss
So, I am kind of new to ftl modding, how can I edit an event so that the event will ion specific subsystems? I have seen a few times in game where your oxygen system will not work until you defeat the enemy, how would I edit an event so that this would happen?
Re: ion event edit
Posted: Mon Dec 11, 2017 8:07 pm
by ikachan
Here's the game coding of that slug event where they block your oxygen. The exact line you want is probably: <status type="limit" target="player" system="oxygen" amount="0"/>
Code: Select all
<event name="NEBULA_SLUG_OXYGEN" unique="true"> <!-- NEEDS CODE TO GIVE FIRE WEAPONS-->
<text>The Slugs here use a tactic you hoped you'd never see: they use a remote hacking satellite to sabotage your oxygen production system and then charge fire-weapons - you're going to suffocate!</text>
<status type="limit" target="player" system="oxygen" amount="0"/>
<ship load="JELLY_STATUS_OXYGEN_FIRE" hostile="true"/>
<environment type="nebula"/>
<choice hidden="true">
<text>Continue...</text>
<event/>
</choice>
<choice hidden="true" req="oxygen" lvl="2">
<text>(Improved Oxygen) Try to squeeze some extra power to the system.</text>
<event>
<text>Thankfully your improved subsystem is able to counter their hacking enough to keep the life support barely functional. That should keep you alive at least...</text>
<status type="divide" target="player" system="oxygen" amount="2"/>
</event>
</choice>
<choice hidden="true" req="hacking"> <!-- CHANGED - added -->
<text>(Hacking System) Counter the remote hacking.</text>
<event>
<text>Your hacking system automatically counters the digital assault and you move in to fight the ship.</text>
<status type="limit" target="player" system="hacking" amount="0"/>
<status type="clear" target="player" system="oxygen" amount="100"/>
</event>
</choice>
</event>