test scenario [radius_filter] and find_in= example as requested by zookeeper

This commit is contained in:
Patrick Parker 2007-08-07 02:16:31 +00:00
parent faf815ae72
commit 1145829994

View file

@ -1,11 +1,10 @@
#textdomain wesnoth
[test]
name="Test scenario"
map_data="
Mm , Mm , Mm , Mm^Xm , Mm^Xm , Mm^Xm , Gg , Ww^Vm , Gg , Dd^Vda , Gg , Aa^Vea , Gg , Aa^Vha , Gg , Hh^Vhh , Gg , Mm^Vhh , Gg , Uu^Vu , Gg , Wo , Wo , Ch , Wo , Wo , Wo , Gg , Wo , Wo , Wo , Md , Wo , Wo , Wo , Rd , Wo
map_data="Mm , Mm , Mm , Mm^Xm , Mm^Xm , Mm^Xm , Gg , Ww^Vm , Gg , Dd^Vda , Gg , Aa^Vea , Gg , Aa^Vha , Gg , Hh^Vhh , Gg , Mm^Vhh , Gg , Uu^Vu , Gg , Wo , Wo , Ch , Wo , Wo , Wo , Gg , Wo , Wo , Wo , Md , Wo , Wo , Wo , Rd , Wo
Mm , Mm , Mm , Mm , Mm^Xm , Gg , Gg , Gg , Uu^Vud , Gg , Dd^Vdt , Gg , Gg^Ve , Gg , Gg^Vh , Gg , Ha^Vhha , Gg , Gs^Vht , Wo , Wo , Cud , Ch , Wo , Wo , Ds , Gg , Wo , Wo , Hd , Md , Wo , Wo , Re , Rd , Wo , Wo
Mm , Gg , Gg , Gg , Gg , Gg , Ch , Ch , Ch , Ch , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ss^Vhs , Gg , Cud , Wo , Wo , Dd , Ds , Wo , Wo , Ha , Hd , Wo , Wo , Ql , Re , Wo , Wo , Uu , Uu
Mm , Gg , Gg , Gg , Gg , Gg , Ch , 1 Kh , Ch , Ww , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Dd , Wo , Wo , Gs , Ha , Wo , Wo , Mm , Ql , Wo , Wo , Uh , Uh , Wo , Wo
Mm , Gg , Gg , Gg , Gg , Gg , Ch , 1 Kh , Ch , Ww , Gg , Gg , Mm^Vhh , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Dd , Wo , Wo , Gs , Ha , Wo , Wo , Mm , Ql , Wo , Wo , Uh , Uh , Wo , Wo
Mm , Gg , Gg , Gg , Gg , Gg , Ch , Ch , Ch , Gg , Ww , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Wo , Gs , Gs , Gg^Vh , Ww , Ww , Mm , Ww , Wo , Rr , Rr , Wo , Wo , Gg , Gg
Mm , Gg , Gg , Gg , Gg , Gg , Ch , Ch , Ch , Gg , Gg , Gg , Gg , Rr , Gg , Rr , Rr , Rr , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gs^Fp , Gg^Vh , Rr , Gg , Ww , Ww , Hh , Hh , Hh , Wo , Wo , Wo , Gg , Wo , Gg
Mm , Gg , Gg , Gg , Gg , Gg , Gg^Ve , Gg , Gg^Ve , Gg , Gg , Gg , Gg , Gg , Gg , Rr , Gg , Rr , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Gg , Ww , Ww , Ww , Ww , Gg , Wo , Mm^Xm , Wo , Gg , Wo , Ha
@ -81,7 +80,7 @@ Xu , Qxu , Qxu , Ql , Ql , Ql
{OBJ_RING_REGENERATION 10 4 OBJ1}
{OBJ_RING_SLOW 11 4 OBJ2}
{OBJ_POTION_HEALING 12 4 OBJ3}
{OBJ_POTION_POISON 13 4 OBJ4}
{OBJ_POTION_POISON 13 5 OBJ4}
{OBJ_POTION_HOLY 14 4 OBJ5}
{OBJ_POTION_STRONG 15 4 OBJ6}
{OBJ_POTION_DECAY 11 5 OBJ7}
@ -576,4 +575,44 @@ _s, _s, _s, _s, Aa, Aa, _s, _s, _s, _s
[/unstore_unit]
[/event]
#capture connected villages near 13,2 for team 2
[event]
name=prestart
[store_locations]
x,y=13,2
radius=2
[filter_radius]
terrain=*^V*
[/filter_radius]
variable=temp_villages_area
[/store_locations]
{FOREACH temp_villages_area i}
[capture_village]
side=2
x,y=$temp_villages_area[$i].x,$temp_villages_area[$i].y
[/capture_village]
{NEXT i}
#then put goblins on the northernmost ones
[store_locations]
find_in=temp_villages_area
y=1
variable=temp_villages_area
[/store_locations]
{FOREACH temp_villages_area i}
[unit]
type=Goblin Spearman
side=2
x,y=$temp_villages_area[$i].x,$temp_villages_area[$i].y
[/unit]
{NEXT i}
{CLEAR_VARIABLE temp_villages_area}
[/event]
[/test]