[MODDING] Can I specify the probability of an event outcome?

Discuss and distribute tools and methods for modding. Moderator - Grognak
atroche
Posts: 4
Joined: Wed Sep 19, 2012 8:18 pm

[MODDING] Can I specify the probability of an event outcome?

Postby atroche » Wed Sep 19, 2012 8:24 pm

If the player makes a choice in an event, is there anyway of specifying which events in the resulting eventList should be more or less likely to occur?

For example, if I only want the player's ship to be damaged 10% of the time while getting scrap 90% of the time, is that possible?

Any help would be much appreciated.

Cheers!
Grognak
Posts: 172
Joined: Tue Sep 18, 2012 9:42 pm

Re: [MODDING] Can I specify the probability of an event outc

Postby Grognak » Wed Sep 19, 2012 8:27 pm

From what little I looked, vanilla events seem to achieve this effect by repeating the "high odds" events a few times. In your example, nine times.

For example:
<eventList name="RANDOM_GIFT"> <!-- JUSTIN - ADD STUFF-->
<event>
<text>"Thank you so much! We don't have much to offer, but have a look at the sector scans we took." Your map is updated.</text>
<reveal_map/>
</event>
<event>
<text>"Thank you. Here, have this extra scrap as payment."</text>
<autoReward level="HIGH">scrap_only</autoReward>
</event>
<event>
<text>"Thank you. Here, have this extra scrap as payment."</text>
<autoReward level="HIGH">scrap_only</autoReward>
</event>
<event>
<text>"Thank the Gods. We can finally get out of here! We're jumping straight home so take this extra weapon. We won't need it, hopefully."</text>
<weapon name="RANDOM"/>
</event>
</eventList>
atroche
Posts: 4
Joined: Wed Sep 19, 2012 8:18 pm

Re: [MODDING] Can I specify the probability of an event outc

Postby atroche » Wed Sep 19, 2012 9:28 pm

Hah! That's hilarious.

Thanks Grognak. Just what I was after.