hey i wrote a script to a map with a wall to breach and gold to capture. Wall is destroyable, gold captureable, but when allied secures the gold, the gam doesnt end, but it should i think. here is the script:
game_manager
{
spawn
{
}
}
//Wall
wall_script
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce "Allies breached the wall!"
setstate wall invisible
}
}
//Gold
axis_gold
{
spawn
{
wait 200
setstate axis_gold_captured invisible
}
trigger stolen
{
wm_announce 0 "Return the Axis gold to the getaway truck"
wm_announce 1 "The Allied have stolen the Axis gold"
}
trigger returned
{
wm_announce 1 "The Axis have retrieved the gold"
wm_announce 0 "Gold returned! Protect the gold"
}
trigger captured
{
wm_announce "The Allied have secured the Axis gold"
setstate axis_gold_red invisible
setstate axis_gold_captured default
}
}
axis_objectives //enter this as the scriptname value for the single trigger_flagonly_multiples entity
{
death
{
trigger game_manager objectuve_counter
}
}
trigger objective_counter //Counts allied objectives completed
{
accum 1 inc 1
trigger game_manager checkgame
trigger checkgame
{
accum 1 abort_if_not_equal 1
wm_setwinner 1
wait 1500
wm_endround
}
}
is my script wrong or whats the problem?
thanks for all the answers
this will work with my new idea for a map - Warsaw 1939
hehe thanks