AtraUnam wrote:Is there any way to add more events to this mod? ... I'm willing to do this myself if someone would show me how.
here is a tutorial detailing event structure by CaptainShooby (how to make your own events):
https://docs.google.com/document/pub?id ... mzX32GB-Dw
events structure via ftlwiki.com (syntax of events file structure and various things you can do):
http://ftlwiki.com/wiki/Events_file_structure
AtraUnam wrote:...my only real complaint with it is that I often end up running into the exact same events over and over again, I don't imagine it being too hard to make duplicates of existing events with different flavour text and it would really help the 'quality of life' of the mod...
to add in extra flavour text you don't even need to duplicate events, instead use a textList in place of text
here are the ftlwiki notes detailing a text list:
http://ftlwiki.com/wiki/Events_file_structure#Text_list
also important to note is that if there is a tag like <ship load="REBEL_RIGGER" hostile="true {or false}"/> the victory/escape rewards and texts are located in events_ships.xml. (fancy brackets are my notes)
here is an event I just made for this as an example (kind of got carried away making it), where ALL the text tags load a textList:
Code: Select all
<event name="UNUSUAL">
<ship load="UNUSUAL_SHIP" hostile="false"/>
<text load="UNUSUAL_START_TEXT"/>
<choice hidden="true">
<text load="UNUSUAL_HAIL_TEXT"/>
<event>
<text load="UNUSUAL_DAMAGE_TEXT"/>
<damage amount="3"/>
</event>
<event>
<text load="UNUSUAL_DAMAGE_TEXT"/>
<damage amount="4"/>
</event>
<event>
<text load="UNUSUAL_REPAIRS_TEXT"/>
<damage amount="-3"/>
</event>
<event>
<text load="UNUSUAL_REPAIRS_TEXT"/>
<damage amount="-4"/>
</event>
</choice>
<choice>
<text load="UNUSUAL_NOTHING_TEXT"/>
<event>
<text load="UNUSUAL_NOTHING2_TEXT"/>
</event>
</choice>
</event>
<textList name="UNUSUAL_START_TEXT">
<text>As you approach the beacon, you encounter a rather unusual looking ship.</text>
<text>Weird ships are quite rare and equally unusual. You encounter a prime example.</text>
</textList>
<textList name="UNUSUAL_HAIL_TEXT">
<text>Hail the weird looking ship.</text>
<text>Attempt communications with the strange ship.</text>
</textList>
<textList name="UNUSUAL_DAMAGE_TEXT">
<text>Whatever the ship is, it is very angry for some reason. Somehow it has taken away some of your hull!</text>
<text>You have angered the strange ship somehow. Instead of attacking you, it eats up some of your hull!</text>
<text>As you wait for an answer, you fail to notice an artillery shell coming your way! As you quickly try to start up engines and run, you find they refuse to start up. Unable to move, you take some damage!</text>
</textList>
<textList name="UNUSUAL_REPAIRS_TEXT">
<text>Its captain responds: "hahieefma@290dos???w1". Apparently the message got garbled up. The ship sends a repair drone out to patch up your ship!</text>
<text>With no response from the ship, you presume you were unsuccessful. As you get ready to leave, you notice your hull has somehow gotten fixed!</text>
</textList>
<textList name="UNUSUAL_NOTHING_TEXT">
<text>Leave the ship alone.</text>
<text>Get out of here.</text>
</textList>
<textList name="UNUSUAL_NOTHING2_TEXT">
<text>You know not what dangers the weird ship may hold. Best not to risk it.</text>
<text>Unusual ships are rare and hardly get encountered. Better not to take chances.</text>
</textList>