iterate through them when the player starts a conversation with the NPC.
The problem is, I want to be able to skip certain rows depending on some criteria but the <continue /> statement seems
to cause errors:
Opening and ending tag mismatch: do_if line 668 and continue do_ifcontinue
Here is the code block in question:
Spoiler
Show
Code: Select all
<do_for_each name="$key" in="Setup.$factionConvTable.$pages.{$pNum}">
<do_if value="$key == 'info'">
<!-- Check if this page has any information for the current conversation type (edit order or normal) -->
<do_if value="$isEditing">
<do_if value="$key.$editCnt == 0">
<continue />
</do_if>
</do_if>
<do_else>
<do_if value="$key.$normalCnt == 0">
<continue />
</do_if>
</do_else>
</do_if>
</do_for_each>
retrieving the proper data from the table.
The table $factionConv is probably too large to post but here is the first record. It is full of several records which are used
to fill out the conversation options as the player uses the "next" and "previous" options:
Spoiler
Show
Code: Select all
<set_value name="$factionConvTable" exact="table[
$pages = table[
$1 = table[
$info = table[$normalCnt = [4], $editCnt = [4]],
$opt1 = table[$normalCaption = ['Any'], $editOrderCaption = ['Any'], $choice = ['faction.any'], $enabled = [true]],
$opt2 = table[$normalCaption = ['Argon'], $editOrderCaption = ['Argon'], $choice = ['faction.argon'], $enabled = [faction.player.relationto.{faction.argon]],
$opt3 = table[$normalCaption = ['Paranid'], $editOrderCaption = ['Paranid'], $choice = ['faction.paranid'], $enabled = [faction.player.relationto.{faction.paranid]],
$opt4 = table[$normalCaption = ['Split'], $editOrderCaption = ['Split'], $choice = ['faction.split'], $enabled = [faction.player.relationto.{faction.split]],
$opt5 = table[$normalCaption = ['More...'], $editOrderCaption = ['More...'], $choice = ['faction.none'], $enabled = [true]],
$opt6 = table[$normalCaption = ['I changed my mind.'], $editOrderCaption = ['Cancel'], $choice = ['faction.none'], $enabled = [true]],
],
GO TO SOLUTION