ion event edit

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
VertigoAbyss
Posts: 1
Joined: Mon Dec 11, 2017 5:09 pm

ion event edit

Post 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?
User avatar
ikachan
Posts: 11
Joined: Fri Nov 17, 2017 1:11 am

Re: ion event edit

Post 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>
It was moments after I teleported all my crew onto their ship that I realized my fatal flaw. They had a shield overcharger... and I had no weapons.
Post Reply