Add Goto Micro AI code to MAI switchboard scenario

This commit is contained in:
mattsc 2013-05-02 20:20:44 -07:00
parent d58fdfd410
commit e3b358cab4

View file

@ -79,6 +79,9 @@
{PLACE_IMAGE "scenery/signpost.png" 11 18}
{SET_LABEL 11 18 _"Healers"}
{PLACE_IMAGE "scenery/signpost.png" 12 18}
{SET_LABEL 12 18 _"Goto"}
{VARIABLE scenario_name micro_ai_test}
# Menu items explaining the different scenarios
@ -276,6 +279,21 @@
{MESSAGE Grnk "" _"Healer Support Micro AI demo" _"This scenario contains a simple demonstration of setting up the Healer Support Micro AI, which uses the healers of a side to back up injured or threatened units rather than having them participate in combat under all circumstances."}
[/command]
[/set_menu_item]
[set_menu_item]
id=m13_goto
description=_"Goto Micro AI demo"
image=units/human-loyalists/spearman.png~CROP(21,16,24,24)
[filter_location]
x,y=12,18
[/filter_location]
[show_if]
{VARIABLE_CONDITIONAL scenario_name equals micro_ai_test}
[/show_if]
[command]
{MESSAGE Grnk "" _"Goto Micro AI demo" _"This scenario contains several example usages of the Goto Micro AI, which is a highly configurable method of sending a unit (or units) to a location or set of locations. The units to be moved are defined using a Standard Unit Filter, while the goto locations are given in a Standard Location Filter."}
[/command]
[/set_menu_item]
[/event]
[event]
@ -519,4 +537,21 @@ Information about each demonstration can be accessed by right-clicking on the re
replay_save=no
[/endlevel]
[/event]
[event]
name=moveto
[filter]
x,y=12,18
[/filter]
[endlevel]
result=victory
next_scenario=goto
bonus=no
carryover_percentage=0
carryover_report=no
linger_mode=no
replay_save=no
[/endlevel]
[/event]
[/test]