Add persistent variable subnamespace usage into scenario-test, for testing persistent variable subnamespace behavior.
This commit is contained in:
parent
c6da4fcbd0
commit
8cd86671ac
1 changed files with 12 additions and 11 deletions
|
@ -1371,7 +1371,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
name=start
|
||||
[get_global_variable]
|
||||
side=global
|
||||
namespace="demo"
|
||||
namespace="demo.sub.name.space"
|
||||
from_global=saved_unit
|
||||
to_local=store
|
||||
[/get_global_variable]
|
||||
|
@ -1403,7 +1403,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[/if]
|
||||
[get_global_variable]
|
||||
side=global
|
||||
namespace="demo"
|
||||
namespace="demo.sub.name"
|
||||
from_global=savings
|
||||
to_local=estate
|
||||
[/get_global_variable]
|
||||
|
@ -1440,7 +1440,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[/if]
|
||||
[get_global_variable]
|
||||
side=global
|
||||
namespace=demo
|
||||
namespace=demo.sub
|
||||
from_global=greeting
|
||||
to_local=greeting
|
||||
[/get_global_variable]
|
||||
|
@ -1520,17 +1520,18 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
{CLEAR_VARIABLE greeting}
|
||||
{CLEAR_VARIABLE territory}
|
||||
[clear_global_variable]
|
||||
namespace=demo
|
||||
namespace=demo.sub.name.space
|
||||
side=global
|
||||
global=saved_unit
|
||||
immediate=yes
|
||||
[/clear_global_variable]
|
||||
[clear_global_variable]
|
||||
namespace=demo
|
||||
namespace=demo.sub.name
|
||||
side=global
|
||||
global=savings
|
||||
[/clear_global_variable]
|
||||
[clear_global_variable]
|
||||
namespace=demo
|
||||
namespace=demo.sub
|
||||
side=global
|
||||
global=greeting
|
||||
[/clear_global_variable]
|
||||
|
@ -1555,7 +1556,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[/filter]
|
||||
[get_global_variable]
|
||||
side=global
|
||||
namespace="demo"
|
||||
namespace="demo.sub"
|
||||
from_global=greeting
|
||||
to_local=greeting
|
||||
[/get_global_variable]
|
||||
|
@ -1597,7 +1598,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[then]
|
||||
[message]
|
||||
speaker=narrator
|
||||
message=Excellent! $greeting will appear as your failure condition next time you play this scenario.
|
||||
message="Excellent! ""$greeting|"" will appear as your failure condition next time you play this scenario."
|
||||
[/message]
|
||||
[/then]
|
||||
[/if]
|
||||
|
@ -1631,7 +1632,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[/if]
|
||||
[set_global_variable]
|
||||
side=global
|
||||
namespace="demo"
|
||||
namespace="demo.sub"
|
||||
from_local=greeting
|
||||
to_global=greeting
|
||||
immediate=yes
|
||||
|
@ -1662,7 +1663,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[/store_unit]
|
||||
[set_global_variable]
|
||||
side=global
|
||||
namespace="demo"
|
||||
namespace="demo.sub.name.space"
|
||||
from_local=store
|
||||
to_global=saved_unit
|
||||
immediate=yes
|
||||
|
@ -1697,7 +1698,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
|
|||
[/store_gold]
|
||||
[set_global_variable]
|
||||
side=global
|
||||
namespace="demo"
|
||||
namespace="demo.sub.name"
|
||||
from_local=account
|
||||
to_global=savings
|
||||
immediate=yes
|
||||
|
|
Loading…
Add table
Reference in a new issue