No longer uses get_global_variable prior to side 1 turn 1.

This commit is contained in:
Jody Northup 2010-08-05 13:09:30 +00:00
parent a8ffb103ce
commit 9b610bf286

View file

@ -601,7 +601,7 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
[/show_objectives]
[/event]
[event]
name=start
name=side 1 turn 1
[get_global_variable]
side=global
namespace="demo"
@ -752,6 +752,26 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
{CLEAR_VARIABLE estate}
{CLEAR_VARIABLE greeting}
{CLEAR_VARIABLE territory}
[clear_global_variable]
namespace=demo
side=global
global=saved_unit
[/clear_global_variable]
[clear_global_variable]
namespace=demo
side=global
global=savings
[/clear_global_variable]
[clear_global_variable]
namespace=demo
side=global
global=greeting
[/clear_global_variable]
[clear_global_variable]
namespace=demo
side=global
global=villages
[/clear_global_variable]
[/event]
[label]
@ -929,32 +949,13 @@ Also, 0..9 = $below_ten, one,two,three = $ascii and the bonus answer is $mixed."
owner_side=1
variable=empire
[/store_villages]
[set_variable]
name=array_test[0]
value=0
[/set_variable]
[set_variable]
name=array_test[1]
value=1
[/set_variable]
[set_variable]
name=array_test[2]
value=2
[/set_variable]
[set_global_variable]
namespace=demo
side=global
from_local=empire
to_global=villages
[/set_global_variable]
[set_global_variable]
namespace=demo
side=global
from_local=array_test
to_global=array
[/set_global_variable]
{CLEAR_VARIABLE empire}
{CLEAR_VARIABLE array_test}
[/event]
[event]