Text Event

General discussion about the game.
Moosicorn
Posts: 107
Joined: Sat Sep 15, 2012 9:13 pm

Text Event

Postby Moosicorn » Sun Feb 10, 2013 9:42 pm

A long time ago someone was making a mod of community events and I made one. He sent me the code, but he never made the mod. Can anyone add this event to a game mod? (using gronaks mod manger would be nice)

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>
MeGusta
Posts: 17
Joined: Wed Feb 06, 2013 8:52 pm

Re: Text Event

Postby MeGusta » Mon Feb 11, 2013 9:59 pm

That event seems really cool.

Would be nice if someone could make a mod of it :mrgreen:
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Text Event

Postby kartoFlane » Wed Feb 13, 2013 1:30 am

If this is the complete mod, and all you need to do is make GMM able to load it, then this is extremely easy... Easier and less time-consuming than creating the event itself.
Paste your event's "code" to a new text file and save it as events.xml. Then rename the file manually to events.xml.append (you need to have extensions unhidden to do that). Create a new folder named data and put your xml file inside it. Then use any tool to pack that folder into a .zip, name it whatever you wish your mod to be named. Then change the zip's extension to .ftl (by just manually renaming it), and voila, you're done.

As for a mod consisting of events gathered from the community, well, there's nataryeahbuddy's Total Event Mod, you could take a look at it.
Superluminal2 - a ship editor for FTL