It's new - I wanted to be able to give repeated autorewards, so it looks like this:English Narwhal wrote:Your knowledge of the 'code', or XML, is astounding. I've never seen a 'ten deep code nest' in the resource XML, despite having seen all the XML files. Where is this block of code?
Code: Select all
<event name="TESTBED_REWARDCHAIN_STANDARD">
<text>Here, have this.</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Now do it nine more times!</text>
<event>
<text>Two...</text>
<autoReward level="HIGH">standard</autoReward> <!---Are you ready to climb the mountain?--->
<choice>
<text>Sweet.</text>
<event>
<text>Three...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Four...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Five...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Six...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Seven...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Eight...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Nine...</text>
<autoReward level="HIGH">standard</autoReward>
<choice>
<text>Sweet.</text>
<event>
<text>Ten! That should be it!</text>
<autoReward level="HIGH">standard</autoReward>
<choice hidden="true">
<text>You can stop pressing "1" now.</text>
<event>
<text>You've climbed the mountain!</text>
<item_modify>
<item type="fuel" min="-1000000" max="-1000000"/>
</item_modify>
</event>
</choice>
<choice hidden="true">
<text>Thanks!</text>
<event load="TESTBED_WHATDO_NO_MONE"/>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
</event>
</choice>
<choice hidden="true">
<text>Thanks, that's enough!</text>
<event load="TESTBED_WHATDO_NO_MONE"/>
</choice>
</event>
It already adds a noticeable few seconds to sector load times, which is pretty meh :/
That's a thing the mod already does - it loops the first sector repeatedly, sending you back to the start of a new crystal testing sector when you hit the exit beacon. I visited some 700 beacons on one particular Testrel putting together my weapon attribute chart.Sleeper Service wrote:...Event trees with a lot of levels and branches eventually cause crashes because of this. There was a ship customization mod that sent you into a modified crystal sector after each event choice and set the customization event as the starting event for the sector. That actually makes loops possible. A technique that could also be something to be considered for this mod.