TSG [else][if] should be [elseif]

This commit is contained in:
Gregory A Lundberg 2016-08-24 01:15:00 -05:00
parent efe1812a73
commit 691de88d0c
3 changed files with 120 additions and 138 deletions

View file

@ -738,23 +738,21 @@
result=defeat
[/endlevel]
[/then]
[elseif]
[have_unit]
id="Mal M'Brin"
[/have_unit]
[then]
[message]
speaker=Urza Afalas
message= _ "Fools! That lich will be the death of us all! You have sealed our doom!"
[/message]
[/then]
[/elseif]
[else]
[if]
[have_unit]
id="Mal M'Brin"
[/have_unit]
[then]
[message]
speaker=Urza Afalas
message= _ "Fools! That lich will be the death of us all! You have sealed our doom!"
[/message]
[/then]
[else]
[fire_event]
name=bandits_and_lich_defeated
[/fire_event]
[/else]
[/if]
[fire_event]
name=bandits_and_lich_defeated
[/fire_event]
[/else]
[/if]
[/event]
@ -850,23 +848,21 @@
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/then]
[elseif]
[have_unit]
id=Urza Afalas
[/have_unit]
[then]
[message]
speaker=Sir Gerrick
message= _ "Now, on with those bandits!"
[/message]
[/then]
[/elseif]
[else]
[if]
[have_unit]
id=Urza Afalas
[/have_unit]
[then]
[message]
speaker=Sir Gerrick
message= _ "Now, on with those bandits!"
[/message]
[/then]
[else]
[fire_event]
name=bandits_and_lich_defeated
[/fire_event]
[/else]
[/if]
[fire_event]
name=bandits_and_lich_defeated
[/fire_event]
[/else]
[/if]
[/event]

View file

@ -206,22 +206,20 @@
{VARIABLE new_path_hex.y $new_road_branches.y}
[/then]
[else]
[if]
[variable]
name=new_road_branches.length
greater_than=1
[/variable]
[elseif]
[variable]
name=new_road_branches.length
greater_than=1
[/variable]
[then]
{RANDOM 1..$new_road_branches.length}
{VARIABLE_OP random sub 1}
[then]
{RANDOM 1..$new_road_branches.length}
{VARIABLE_OP random sub 1}
{VARIABLE new_path_hex.x $new_road_branches[$random].x}
{VARIABLE new_path_hex.y $new_road_branches[$random].y}
[/then]
[/if]
[/else]
{VARIABLE new_path_hex.x $new_road_branches[$random].x}
{VARIABLE new_path_hex.y $new_road_branches[$random].y}
[/then]
[/elseif]
[/if]
#[item]
@ -750,68 +748,60 @@ _f, _f, Re, _f
[/message]
[/then]
[else]
[if]
[variable]
name=secret_path_unrevealed.length
less_than=20
[/variable]
[elseif]
[variable]
name=secret_path_unrevealed.length
less_than=20
[/variable]
[variable]
name=urza_dialogue
equals=2
[/variable]
[variable]
name=urza_dialogue
equals=2
[/variable]
[then]
[message]
speaker=Urza Afalas
message= _ "Were almost there!"
[/message]
[/then]
[then]
[message]
speaker=Urza Afalas
message= _ "Were almost there!"
[/message]
[/then]
[/elseif]
[elseif]
[variable]
name=secret_path_unrevealed.length
less_than=30
[/variable]
[else]
[if]
[variable]
name=secret_path_unrevealed.length
less_than=30
[/variable]
[variable]
name=urza_dialogue
equals=1
[/variable]
[variable]
name=urza_dialogue
equals=1
[/variable]
[then]
[message]
speaker=Urza Afalas
message= _ "Come on! Hurry!"
[/message]
[/then]
[/elseif]
[elseif]
[variable]
name=secret_path_unrevealed.length
less_than=40
[/variable]
[then]
[message]
speaker=Urza Afalas
message= _ "Come on! Hurry!"
[/message]
[/then]
[variable]
name=urza_dialogue
equals=0
[/variable]
[else]
[if]
[variable]
name=secret_path_unrevealed.length
less_than=40
[/variable]
[variable]
name=urza_dialogue
equals=0
[/variable]
[then]
[message]
speaker=Urza Afalas
message= _ "Keep moving!"
[/message]
[/then]
[/if]
[/else]
[/if]
[/else]
[/if]
[/else]
[then]
[message]
speaker=Urza Afalas
message= _ "Keep moving!"
[/message]
[/then]
[/elseif]
[/if]
{VARIABLE_OP urza_dialogue add 1}

View file

@ -309,42 +309,38 @@
message= _ "But in the narrow window his valiant stand gave us, we have roused some of the provincial guard and reinforced our defenses!"
[/message]
[/then]
[else]
[if]
[variable]
name=provincial_guard
equals=full
[/variable]
[variable]
name=defenses
equals=some
[/variable]
[then]
[message]
speaker=Deoran
message= _ "But in the narrow window his valiant stand gave us, we have roused the whole provincial guard and reinforced our defenses!"
[/message]
[/then]
[else]
[if]
[variable]
name=provincial_guard
equals=full
[/variable]
[variable]
name=defenses
equals=full
[/variable]
[then]
[message]
speaker=Deoran
message= _ "But in the narrow window his valiant stand gave us, we have roused the whole provincial guard and fully embattled the city!"
[/message]
[/then]
[/if]
[/else]
[/if]
[/else]
[elseif]
[variable]
name=provincial_guard
equals=full
[/variable]
[variable]
name=defenses
equals=some
[/variable]
[then]
[message]
speaker=Deoran
message= _ "But in the narrow window his valiant stand gave us, we have roused the whole provincial guard and reinforced our defenses!"
[/message]
[/then]
[/elseif]
[elseif]
[variable]
name=provincial_guard
equals=full
[/variable]
[variable]
name=defenses
equals=full
[/variable]
[then]
[message]
speaker=Deoran
message= _ "But in the narrow window his valiant stand gave us, we have roused the whole provincial guard and fully embattled the city!"
[/message]
[/then]
[/elseif]
[/if]
[message]