Further rework of 'Capturing the Ogres'.

This commit is contained in:
ln-zookeeper 2014-02-18 17:26:05 +02:00
parent 521f449c2b
commit 5ef6980507
4 changed files with 130 additions and 98 deletions

View file

@ -43,9 +43,10 @@ function ca_ogres_flee:execution(ai, cfg, self)
-- First rating is distance from a map edge
local dist_left = r[1] - 1
local dist_right = width - r[1]
local dist_top = r[2] - 1
local dist_top_left = H.distance_between(r[1], r[2], 4, 1)
local dist_top_right = H.distance_between(r[1], r[2], 40, 1)
local dist_bottom = height - r[2]
local dist = math.min(dist_left, dist_right, dist_top, dist_bottom)
local dist = math.min(dist_left, dist_right, dist_top_left, dist_top_right, dist_bottom)
local rating = - dist

View file

@ -1,30 +1,29 @@
border_size=1
usage=map
Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fmf, Gll^Fmf, Gll^Fp, Gll^Fmf, Gll^Fmf, Gll^Fdf, Gll^Fdf, Gs, Gs, Gd, Gd, Gs, Gs, Gs, Gs, Gd, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gd, Gs, Gd, Gs, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh
Gll^Fmf, Gll^Fp, Gll^Fp, Gll^Fp, Gll^Fmf, Gll^Fp, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gd, Gs, Gs, Gd, Gd, Gs, Gd, Gd, Gd, Gs, Gd, Gd, Hh, Gd, Hh, Gs, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh, Hh
Gll^Fmf, Gd^Fmf, Gd^Fp, Gd^Fmf, Gd^Fmf, Gd, Gs, Gs, Gd, Gs, Gd, Gd, Gs, Gd, Gll^Fp, Gd, Gll^Fp, Gs, Gll^Fp, Gll^Fp, Gll^Fp, Gs, Gs, Gs, Gs, Gs, Gll^Fp, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gs, Gll^Fp, Gll^F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mm, Mm, Gs, Gs, Gs, Gs, Gd, Re, Gs, Gs, Gs, Gs, Gs, Mm, Mm, Gs, Mm, Gs, Gs, Gs, Gs, Gd, Gd, Gs, Gd, Gs, Gd, Gd, Gs, Wwg, Wwg
Gs, Gd, Gd, Gd, Gd, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gs, Gs, Gs, Gs, Gd, Gd, Gs, Gs, Gs, Re, Gd, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gd, Gd, Gd, Gd, Gd, Gs, Gd, Wwg, Wwg, Wwg, Wwg
Gd, Gd, Gd, Gs, Gd, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gd, Gd, Gs, Gs, Gd, Gd, Gd, Gs, Gs, Gs, Gs, Gd, Gd, Gs, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gd, Re, Re, Re, Re, Gs, Wwg, Wwg, Wwg, Wwg, Gd, Gd
Gs, Gs, Gd, Gs, Gs, Gd, Gs, Gs, Gd, Gd, Gs, Gs, Gd, Gs, Gd, Gd, Gs, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gs, Gd, Gd, Gs, Gd, Gd, Gd, Gd, Gs, Gs, Gd, Gd, Gs, Gs, Gd, Gd, Wwg^Bw\r, Wwg, Wwg, Gs, Gs, Gd
Gd, Gd, Gd, Gs, Gs, Gd, Gd, Gd, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gd, Gd, Gs, Gd, Gd, Gd, Gd, Gs, Gs, Gs, Gs, Gs, Gd, Gs, Gd, Gs, Gs, Gs, Gd, Gs, Gs, Gs, Gs, Wwg, Wwg, Wwg, Wwg^Bw\r, Gd, Gd, Gs, Gs

View file

@ -35,7 +35,7 @@
controller=human
team_name=wesnothians
user_team_name=_"Wesnothians"
gold=0
gold=100
{FLAG_VARIANT loyalist}
[/side]
@ -63,43 +63,9 @@
[event]
name=prestart
[set_variables]
name=ogre_escape_msgs
[literal]
message= _ "Waah! Run!"
[/literal]
[literal]
message= _ "Run for your lives!"
[/literal]
[literal]
message= _ "Help!"
[/literal]
[/set_variables]
{VARIABLE next_ogre_escape_msg 0}
[set_variables]
name=ogre_capture_msgs
[literal]
message= _ "$ogre_name surrender!"
[/literal]
[literal]
message= _ "Don't hurt $ogre_name|!"
[/literal]
[literal]
message= _ "$ogre_name will be good! Promise!"
[/literal]
[/set_variables]
{VARIABLE next_ogre_capture_msg 0}
{SCATTER_UNITS 8 "Ogre,Young Ogre" 1 (
x=13,15,16,17,19,20,22,24,24,27,27,31,31
y=12,14,18,11,16,13,17,12,15,12,14,14,16
{SCATTER_UNITS {ON_DIFFICULTY 8 7 6} "Ogre" 0 (
x=18-24
y=11-14
[not]
[filter]
[/filter]
@ -138,7 +104,7 @@
[/note]
[gold_carryover]
carryover_percentage=100
carryover_percentage=40
[/gold_carryover]
[/objectives]
[/event]
@ -148,11 +114,11 @@
[recall]
id=Dacyn
x,y=23,22
x,y=20,19
[/recall]
[recall]
id=Owaec
x,y=21,22
x,y=22,19
[/recall]
[message]
@ -173,6 +139,61 @@
[/message]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
race=ogre
[filter_location]
{MAP_EDGES_SLF}
[/filter_location]
[/filter]
[set_variables]
name=ogre_escape_msgs
[value]
message= _ "Waah! Run!"
[/value]
[value]
message= _ "Run for your lives!"
[/value]
[value]
message= _ "Help!"
[/value]
[/set_variables]
[if]
[variable]
name=next_ogre_escape_msg
equals=$empty
[/variable]
[then]
{VARIABLE next_ogre_escape_msg 0}
[/then]
[else]
{VARIABLE_OP next_ogre_escape_msg add 1}
{VARIABLE_OP next_ogre_escape_msg modulo $ogre_escape_msgs.length}
[/else]
[/if]
[message]
speaker=unit
message=$ogre_escape_msgs[$next_ogre_escape_msg].message
[/message]
[kill]
x,y=$x1,$y1
[/kill]
{CLEAR_VARIABLE ogre_escape_msgs}
[/event]
[event]
name=moveto
@ -189,30 +210,6 @@
[/message]
[/event]
[event]
name=moveto
first_time_only=no
[filter]
race=ogre
[filter_location]
{MAP_EDGES_SLF}
[/filter_location]
[/filter]
[message]
speaker=unit
message=$ogre_escape_msgs[$next_ogre_escape_msg].message
[/message]
{VARIABLE_OP next_ogre_escape_msg add 1}
{VARIABLE_OP next_ogre_escape_msg modulo $ogre_escape_msgs.length}
[kill]
x,y=$x1,$y1
[/kill]
[/event]
[event]
name=side 2 turn
first_time_only=no
@ -240,6 +237,10 @@
[/filter]
[/filter_adjacent_location]
[/not]
[not]
terrain=*^X*
[/not]
[/filter_adjacent_location]
[/not]
[/filter_location]
@ -252,14 +253,43 @@
{FOREACH ogres_to_capture i}
{VARIABLE ogre_name $ogres_to_capture[$i].name}
[set_variables]
name=ogre_capture_msgs
[value]
message= _ "$ogre_name surrender!"
[/value]
[value]
message= _ "Don't hurt $ogre_name|!"
[/value]
[value]
message= _ "$ogre_name will be good! Promise!"
[/value]
[/set_variables]
[if]
[variable]
name=next_ogre_capture_msg
equals=$empty
[/variable]
[then]
{VARIABLE next_ogre_capture_msg 0}
[/then]
[else]
{VARIABLE_OP next_ogre_capture_msg add 1}
{VARIABLE_OP next_ogre_capture_msg modulo $ogre_capture_msgs.length}
[/else]
[/if]
[message]
x,y=$ogres_to_capture[$i].x,$ogres_to_capture[$i].y
message=$ogre_capture_msgs[$next_ogre_capture_msg].message
[/message]
{VARIABLE_OP next_ogre_capture_msg add 1}
{VARIABLE_OP next_ogre_capture_msg modulo $ogre_capture_msgs.length}
[kill]
x,y=$ogres_to_capture[$i].x,$ogres_to_capture[$i].y
[/kill]
@ -272,7 +302,7 @@
[/unstore_unit]
{NEXT i}
{CLEAR_VARIABLE ogres_to_capture,ogre_name}
{CLEAR_VARIABLE ogres_to_capture,ogre_name,ogre_capture_msgs}
[/event]
[event]
@ -288,7 +318,7 @@
[endlevel]
result=victory
{NEW_GOLD_CARRYOVER 100}
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
@ -297,7 +327,7 @@
[endlevel]
result=victory
{NEW_GOLD_CARRYOVER 100}
{NEW_GOLD_CARRYOVER 40}
[/endlevel]
[/event]
@ -360,6 +390,8 @@
[/message]
[/else]
[/switch]
{CLEAR_VARIABLE ogres,next_ogre_escape_msg,next_ogre_capture_msg}
[/event]
{FOREIGN_DEFEAT}

View file

Before

Width:  |  Height:  |  Size: 291 KiB

After

Width:  |  Height:  |  Size: 291 KiB