New modder struggling with textList, please fix my code.
Posted: Tue Mar 04, 2014 3:28 am
Hey guys, I have recently started writing new events and having loads of fun doing it, despite running into many problems. I've got three questions about textLists if anyone could help me please. The code/text are just examples so I can learn how to do it, nothing serious. 
First question:
Should this work? Is my code right?
Thing is, when I run into the event ingame it says
"FREE_STUFF_TEXTLIST"
Continue...
I don't understand. I copy and pasted the Drone text list from the original text and just changed the wording, but whenever I do it, it doesn't work for me.
My second question is:
Say you have 4 events (all other events are turned off, for example) and 3 of them are single events with no textList (unique="false" though), and 1 event has a textList with like 20 text variations will it still just register as 1 event and show 25% of the time, 1/4 of the time? Or will the 1 with the textList show like 90% of the time since there's all the variations? There's no real point in putting many variations in a textList unless you just want many variations on that one event, right?
My third question:
Can I use textList at the start of an event to keep things interesting? For example:
Would this work? Or not? Also I'm new so please tell me if there are any errors in my code.
Thanks in advance for any help you guys can give to me as a new modder.

First question:
Should this work? Is my code right?
Code: Select all
<eventList name="NEW">
<event load="FREE_STUFF"/>
</eventList>
<event name="FREE_STUFF">
<text load="FREE_STUFF_TEXTLIST"/>
<autoReward level="MED">stuff</autoReward>
</event>
<textList name="FREE_STUFF_TEXTLIST">
<text>You find a box floating in space and bring it on board.</text>
<text>You find the remains of a ship, looks like it has been blown apart by weapons fire. Your team searches through the debris.</text>
<text>You find an abandoned ship, your team boards and searches it for salvage.</text>
</textList>
"FREE_STUFF_TEXTLIST"
Continue...
I don't understand. I copy and pasted the Drone text list from the original text and just changed the wording, but whenever I do it, it doesn't work for me.
My second question is:
Say you have 4 events (all other events are turned off, for example) and 3 of them are single events with no textList (unique="false" though), and 1 event has a textList with like 20 text variations will it still just register as 1 event and show 25% of the time, 1/4 of the time? Or will the 1 with the textList show like 90% of the time since there's all the variations? There's no real point in putting many variations in a textList unless you just want many variations on that one event, right?
My third question:
Can I use textList at the start of an event to keep things interesting? For example:
Code: Select all
<eventList name="NEW">
<event load="WEAPON_GIVEAWAY"/>
</eventList>
<event name="WEAPON_GIVEAWAY">
<text load="WEAPON_GIVEAWAY_TEXTLIST"/>
<choice hidden="true">
<text>"Sounds great, thanks!"</text>
<event load="WEAPON_RECEIVE">
</event>
</choice>
<choice>
<text>"There's always a catch, so no thanks."</text>
<event/>
</choice>
</event>
<event name="WEAPON_RECEIVE">
<text>"Here you go! Enjoy and safe travels."</text>
<weapon name="RANDOM"/>
</event>
<textList name="WEAPON_GIVEAWAY_TEXTLIST">
<text>"Would you like a free weapon?"</text>
<text>"We're giving away free weapons, want one?"</text>
<text>"Today is your lucky day! Here's a free weapon for you!"</text>
<text>"We're having a give away today and you're first in line for a free weapon!"</text>
</textList>
Thanks in advance for any help you guys can give to me as a new modder.
