Event Code

Discuss and distribute tools and methods for modding. Moderator - Grognak
Moosicorn
Posts: 107
Joined: Sat Sep 15, 2012 9:13 pm

Event Code

Postby Moosicorn » Fri Oct 26, 2012 3:15 pm

I have this code and I don't know how to add it to the game

Code: Select all

<event name="AW_MOOSICORN_FEDERATIONGIFT" unique="false">
   <text>A ship with federation markings appears on the radar and hails you saying "Nice to see another friendly. We have a surplus of weapons and not enough ammo to go around. Do you want one?"<text>
   <choice hidden="true">
      <text>You accept the offer and ask for them to teleport it over.</text>
      <event>
         <text>The crate is teleported over, and it unexpectedly explodes! It's a trap! they aren't part of the federation: They're rebels!</text>
         <damage amount="5"/>
         <ship load="REBEL" hostile="true"/>
      </event>
      <event load="AW_MOOSICORN_FEDERATIONGIFT_TELEPORT"/>
   </choice>
   <choice hidden="true">
      <text>You deny their offer saying you don't need it, and mention how they could sell their weapon elsewhere for scrap.</text>
      <event>
         <text>All the sudden after your reply they fire a shot that grazes your hull. It takes you a second to realize they aren't federation. They're rebels! Get ready to fight.</text>
         <ship load="REBEL" hostile="true"/>
      </event>
      <event>
         <text>The ship's captain thanks you for the good advice, wishes you "Good luck!" and leaves, probably heading to the next market.</text>
      </event>
      <event load="AW_MOOSICORN_FEDERATIONGIFT_SELLIT"/>
   </choice>
   <choice hidden="true" req="sensors" lvl="3">
      <text>(Sensors) Being cautious you scan the ship thoroughly.</text>
      <event load="AW_MOOSICORN_FEDERATIONGIFT_SCAN"/>
   </choice>
   <choice hidden="true" req="slug">
      <text>(Slug) Tell your slug crewmember to scan the minds of the other crew.</text>
      <event load="AW_MOOSICORN_FEDERATIONGIFT_SCAN"/>
   </choice>
</event>
<event name="AW_MOOSICORN_FEDERATIONGIFT_TELEPORT" unique="false">
   <text>The teleport runs smoothly and the weapon crate is quickly unpacked. You thank them for their genorisity.</text>
   <weapon name="RANDOM"/>
</event>
<eventlist name="AW_MOOSICORN_FEDERATIONGIFT_SCAN">
   <event>
      <text>The scans clearly confirm their identity, they do belong to the Federation.</text>
      <choice hidden="true">
         <text>You accept the offer and ask for them to teleport it over.</text>
         <event load="AW_MOOSICORN_FEDERATIONGIFT_TELEPORT"/>
      </choice>
      <choice hidden="true">
         <text>You deny their offer saying you don't need it, and mention how they could sell their weapon elsewhere for scrap.</text>
         <event load="AW_MOOSICORN_FEDERATIONGIFT_SELLIT"/>
      </choice>
   </event>
   <event>
      <text>Scans pickup something odd: It seems their weapons are charging! You realize they arent' from the Federation, they're rebels and its a trap!</text>
      <choice hidden="true">
         <text>You begin to charge your weapons to fight back.</text>
         <ship load="REBEL" hostile="true"/>
      </choice>
      <choice hidden="true">
         <text>You remain silent, and wait for your FTL drive to recharge.</text>
         <event>
            <text>Realizing you saw through their bluff, the ship quickly moves in to attack.</text>
            <ship load="REBEL" hostile="true"/>
         </event>
         <event>
            <text>Apparently unsecure about your behavior, the Rebel ship suddenly turns around and jumps off. You somehow figure it was a bad idea not to shoot them instantly...</text>
            <modifyPursuit amount="2"/>
         </event>
      </choice>
      <choice hidden="true" req="teleporter" lvl="2">
         <text>(Teleporter) You decide to fight fire with fire and offer to teleport some "supplies" over to them.</text>
         <event>
            <text>The 'Federation captain' gladly accepts your offer and thanks you in advance, whilst you order your crew to fill a supply crate with rigged missile warheads.
                  As they're finished, you teleport the armed bomb over into their cargo bay. You watch as a minute later the ship blows up, leaving behind a starship wreck full of scrap.</text>
            <item_modify>
               <item type="missiles" min="-5" max="-5"/>
            </item_modify>
            <autoReward level="HIGH">scrap_only</autoReward>
         </event>
      </choice>
   </event>
</eventlist>
<event name="AW_MOOSICORN_FEDERATIONGIFT_SELLIT">
   <text>Liking the idea the federation ship gives you half the scrap they think they would make from selling the weapon.</text>
   <autoReward level="LOW">scrap_only</autoReward>
</event>

so if someone can add this that'd be great :)
GreenZanbato
Posts: 53
Joined: Tue Sep 18, 2012 9:31 pm

Re: Event Code

Postby GreenZanbato » Mon Oct 29, 2012 9:37 pm