define(win_trig_num,0)
define(lost_trig_num,1)

define(exo_center,b($1,0))
define(barracks,b($1,1))
define(robot_factory,b($1,2))
define(science_pod,b($1,3))
define(research_pod,b($1,4))

define(money_mined,s($1,1))
define(player_kills,s($1,2))
define(player_killed,s($1,3))
define(player_mines,s($1,5))
define(player_current_troops,s($1,6))
define(player_shots_fired,s($1,7))
define(player_points_healed,s($1,8))
define(is_day,s(0,9))
define(time_of_day,s(1,9))

define(p_zero,0)
define(p_one,1)
define(p_two,2)
define(p_three,2)
define(p_four,2)
define(p_five,2)
define(p_six,2)
define(p_seven,2)

define(set_attack_priority,aimsg $1 2 0 $2)
define(set_troop_building_priority,aimsg $1 2 1 $2)
define(set_robot_building_priority,aimsg $1 2 2 $2)
define(set_artil_building_priority,aimsg $1 2 3 $2)
define(set_cybor_building_priority,aimsg $1 2 4 $2)
define(set_scout_building_priority,aimsg $1 2 5 $2)
define(set_defense_point,aimsg $1 3 6 $2 $3)
define(delete_defense_point,aimsg $1 3 7 $2 $3)
define(set_build_goal,aimsg $1 3 8 $2 $3 $4)

define(g_exploiter,0)
define(g_troops,1)
define(g_building,2)

define(b_barracks,0)
define(b_robot1,1)
define(b_robot2,2)
define(b_science1,3)
define(b_science2,4)
define(b_mech_def_up,5)
define(b_mech_att_up,6)

define(time_trigger,$1 norm 1 (c>$2))

define(builder_ai,3)
define(passive_ai,4)
define(switch_ai,ai $1 $2)
define(builder_ai,3)
define(passive_ai,4)


define(captured,c($1))

define(spotted,v($1,$2,$3))

define(standard_scenario_win_trigger,
win_trig_num norm 1 (exo_center(1)==0 && exo_center(2)==0 && exo_center(3)==0 && exo_center(4)==0 && exo_center(5)==0 && exo_center(6)==0 && exo_center(7)==0)
bail 0
end
)

define(standard_scenario_lost_trigger,
lost_trig_num norm 1 (exo_center(0)==0)
bail 1
end
)


