mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 20:10:38 +00:00
[switch] within [part] doesn't work.
This commit is contained in:
parent
2e8aab7de5
commit
074670ceab
@ -321,32 +321,34 @@
|
||||
#define TO_NORTHERN_OUTPOST
|
||||
background="eastern-invasion-map.png"
|
||||
{JOURNEY1_COMPLETE}
|
||||
[switch]
|
||||
variable=first_fork
|
||||
[case]
|
||||
value=west
|
||||
{JOURNEY2_STAGE2}
|
||||
[/case]
|
||||
[case]
|
||||
value=east
|
||||
[if]
|
||||
[variable]
|
||||
name=first_fork
|
||||
equals=east
|
||||
[/variable]
|
||||
[then]
|
||||
{JOURNEY3_STAGE3}
|
||||
[/case]
|
||||
[/switch]
|
||||
[/then]
|
||||
[else]
|
||||
{JOURNEY2_STAGE2}
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
#define FROM_NORTHERN_OUTPOST
|
||||
{JOURNEY1_COMPLETE}
|
||||
[switch]
|
||||
variable=first_fork
|
||||
[case]
|
||||
value=west
|
||||
{JOURNEY2_COMPLETE}
|
||||
[/case]
|
||||
[case]
|
||||
value=east
|
||||
[if]
|
||||
[variable]
|
||||
name=first_fork
|
||||
equals=east
|
||||
[/variable]
|
||||
[then]
|
||||
{JOURNEY3_COMPLETE}
|
||||
[/case]
|
||||
[/switch]
|
||||
[/then]
|
||||
[else]
|
||||
{JOURNEY2_COMPLETE}
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
#define TO_TWO_PATHS
|
||||
@ -373,33 +375,35 @@
|
||||
background="eastern-invasion-map.png"
|
||||
{FROM_NORTHERN_OUTPOST}
|
||||
{JOURNEY4_COMPLETE}
|
||||
[switch]
|
||||
variable=second_fork
|
||||
[case]
|
||||
value=west
|
||||
[if]
|
||||
[variable]
|
||||
name=second_fork
|
||||
equals=west
|
||||
[/variable]
|
||||
[then]
|
||||
{JOURNEY5_STAGE2}
|
||||
[/case]
|
||||
[case]
|
||||
value=north
|
||||
[/then]
|
||||
[else]
|
||||
{JOURNEY6_STAGE2}
|
||||
[/case]
|
||||
[/switch]
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
#define FROM_TRAINING_THE_OGRES
|
||||
{FROM_NORTHERN_OUTPOST}
|
||||
{JOURNEY4_COMPLETE}
|
||||
[switch]
|
||||
variable=second_fork
|
||||
[case]
|
||||
value=west
|
||||
[if]
|
||||
[variable]
|
||||
name=second_fork
|
||||
equals=west
|
||||
[/variable]
|
||||
[then]
|
||||
{JOURNEY5_COMPLETE}
|
||||
[/case]
|
||||
[case]
|
||||
value=east
|
||||
[/then]
|
||||
[else]
|
||||
{JOURNEY6_COMPLETE}
|
||||
[/case]
|
||||
[/switch]
|
||||
[/else]
|
||||
[/if]
|
||||
#enddef
|
||||
|
||||
#define TO_XENOPHOBIA
|
||||
|
Loading…
x
Reference in New Issue
Block a user