whats wrong in this script cause i am not good at making victory script please help me
game_manager
{
wm_objective_status 1 1 0
wm_objective_status 1 0 0
wm_objective_status 2 1 0
wm_objective_status 2 0 0
wm_set_main_objective 3 1
wm_set_main_objective 3 1
{
//game rules
wm_axis_respawntime 15
wm_allies_respawntime 15
wm_number_of_objectives 2
wm_set_round_timelimit 15
}
}
//objectives
//1:Primary1 : Destroy the 1st tower
//2:Primary2 : Destroy the 2nd tower
//3:Secondary1 : destroy the towers passage
//3:Secondary2 : Destroy the axis passage to tower 2
game_manager
{
spawn
{
wm_mapdescription “Destroy the towers passages and the axis towers”
//we have 2 objectives, destroy the 1st and 2nd tower:
wm_set_objective_status 1 0
wm_set_objective_status 2 0
wm_set_objective_status 3 0
wm_set_defending_team 0
wm_setwinner 0
}
}
game_manager
{
spawn
{
}
trigger objective_counter
{
accum 1 inc 1
trigger game_manager checkgame
}
trigger checkgame
accum 1 abort_if_not_equal 2
wm_setwinner 0
wait 1500
wm_endround
}
}
tower1
{
spawn
wait 200
constructible_class 3
}
death
{
wm_announce “allies have destroyed the 1st tower”
sebstate tower invisible
trigger game_manager objective_counter
}
}
tower2
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce “Allies have the destroyed the 2nd tower”
sebstate tower2 invisible
trigger game_manager objective_counter
}
}
