Fix a [foreach] which still used the runtime variable into [for].
This commit is contained in:
parent
4776823128
commit
18ec4a1507
1 changed files with 9 additions and 9 deletions
|
@ -181,11 +181,11 @@
|
|||
|
||||
{VARIABLE_OP paladin_i rand "0..$($prison_locations.length - 1)"}
|
||||
|
||||
[foreach]
|
||||
[for]
|
||||
array=prison_locations
|
||||
[do]
|
||||
[item]
|
||||
x,y=$this_item.x,$this_item.y
|
||||
x,y=$prison_locations[$i].x,$prison_locations[$i].y
|
||||
halo=items/horse-cage.png
|
||||
[/item]
|
||||
|
||||
|
@ -195,7 +195,7 @@
|
|||
[/not]
|
||||
|
||||
[filter_adjacent_location]
|
||||
x,y=$this_item.x,$this_item.y
|
||||
x,y=$prison_locations[$i].x,$prison_locations[$i].y
|
||||
[/filter_adjacent_location]
|
||||
|
||||
include_borders=no
|
||||
|
@ -210,9 +210,9 @@
|
|||
max_moves=0
|
||||
ai_special=guardian
|
||||
role=prison guard
|
||||
[variables]
|
||||
prison_x=$this_item.x
|
||||
prison_y=$this_item.y
|
||||
[variables]
|
||||
prison_x=$prison_locations[$i].x
|
||||
prison_y=$prison_locations[$i].y
|
||||
[/variables]
|
||||
[/unit]
|
||||
|
||||
|
@ -226,7 +226,7 @@
|
|||
id=Terraent
|
||||
name= _ "Terraent"
|
||||
unrenamable=yes
|
||||
x,y=$this_item.x,$this_item.y
|
||||
x,y=$prison_locations[$i].x,$prison_locations[$i].y
|
||||
random_traits=no
|
||||
facing=sw
|
||||
{IS_LOYAL}
|
||||
|
@ -238,7 +238,7 @@
|
|||
[/then]
|
||||
|
||||
[else]
|
||||
{GENERIC_UNIT 6 Knight $this_item.x $this_item.y}
|
||||
{GENERIC_UNIT 6 Knight $prison_locations[$i].x $prison_locations[$i].y}
|
||||
[+unit]
|
||||
facing=sw
|
||||
[modifications]
|
||||
|
@ -248,7 +248,7 @@
|
|||
[/else]
|
||||
[/if]
|
||||
[/do]
|
||||
[/foreach]
|
||||
[/for]
|
||||
|
||||
{CLEAR_VARIABLE prison_locations,guard_location,paladin_i,guard_i}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue