The announcement for the TNT blowing up the door works fine, but when I grab the Secret Document… I get this instead of the proper announcement:
0
1
The Allies have stolen !
Here is my script:
game_manager
{
spawn
{
accum 1 set 0 // State of objective 1
// Game rules
wm_axis_respawntime 30
wm_allied_respawntime 20
wm_number_of_objectives 3
wm_set_round_timelimit 30
// Objectives
// 1: Primary1 : Destroy the Secret Office Door
// 2: Primary2 : Steal and transmit the Secret Document
// 3: Secondary1 : Capture forward spawn point
// Current main objectives for each team (0=Axis, 1=Allies)
wm_set_main_objective 2 0
wm_set_main_objective 2 0
wm_set_main_objective 2 1
// Objective overview status indicators
//wm_objective_status <objective> <team (0=Axis, 1=Allies)> <status (0=neutral 1=complete 2=failed)>
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_objective_status 3 1 0
wm_objective_status 3 0 0
// Stopwatch mode defending team (0=Axis, 1=Allies)
wm_set_defending_team 0
wm_setwinner 0
}
trigger objective_counter //Counts allied objectives completed
{
accum 1 inc 1
trigger game_manager checkgame
}
trigger checkgame
{
accum 1 abort_if_not_equal 2
wm_setwinner 0
wait 1500
wm_endround
}
}
// The Secret Door TNT objective
dynadoor
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce "The Allies have destroyed the Secret Office Door!"
setstate dynadoor invisible
trigger game_manager objective_counter
}
}
//the Secret Document capture objective
axis_document
{
spawn
{
wait 200
setstate axis_document invisible
}
trigger stolen
{
wm_announce 0 "Return the Secret Document!"
wm_announce 1 "The Allies have stolen the Secret Document!"
setstate axis_document_cm_marker invisible
}
trigger returned
{
wm_announce 0 "The Axis have retrieved the Secret Document!"
wm_announce 1 "Secret Document returned! Defend the Objective!"
setstate axis_document_cm_marker default
}
trigger captured
{
wm_announce "The Allies have transmitted the Secret Document!"
setstate axis_document_captured default
trigger game_manager objective_counter
}
}
it’s very usefull!