This is hopefully the last issue of my map, before the final release… but it changes the gameplay…so i will start with a brief explanation of the situation…:
my map consists of 6 main objectives; they are:
// 1: SECONDARY: Destroy the main entrance
// 2: PRIMARY: Steal the secret information
// 3: PRIMARY: Transmit the secret information
// 4: Primary: Steal the Gold
// 5: Primary: Secure the Gold
// 6: Primary: Steal the Gold #2
// 7: Primary: Secure the Gold #2
the map should end when the 2 gold crates are secured and the secret docs are transmitted by pressing a button, created by building one radar tower…
i looked in my example map, and made some variables:
//vars
accum 3 set 0 // Allies have secured the gold ( 1= YES / 0=NO )
accum 4 set 0 // Allies have secured the gold #2 ( 1= YES / 0=NO )
accum 1 set 0 // Allies have secured the information ( 1= YES / 0=NO )
accum 2 set 0 // The Radar is constructed ( 1= YES / 0= NO )
accum 9 set 0 // check if button is pressed
then i made the map ending part:
trigger allies_win
{
accum 9 abort_if_equal 1
accum 1 abort_if_not_equal 1
accum 2 abort_if_not_equal 1
accum 3 abort_if_equal 1
accum 4 abort_if_equal 1
accum 9 set 1
accum 3 set 1
accum 4 set 1
wm_setwinner 1
wm_announce "Allied team has sent the secret information!"
wm_objective_status 3 0 2
wm_objective_status 3 1 1
wm_objective_status 5 1 1
wm_objective_status 5 0 2
wm_objective_status 7 1 1
wm_objective_status 7 0 2
wait 1500
wm_endround
}
when the secret info is secured, in the script appears to be:
trigger documents_secured
{
wm_objective_status 2 1 1
wm_objective_status 2 0 2
wm_set_main_objective 3 0
wm_set_main_objective 3 1
accum 1 set 1
wm_announce "Allies have secured the secret documents!"
wm_teamvoiceannounce 1 "islandfull_documents_secured"
wm_teamvoiceannounce 0 "islandfull_documents_securedaxis"
}
also for the 2 gold crates, i have:
....wm_announce "The Allied Team have secured the first gold crate!"
wm_objective_status 5 1 1
wm_objective_status 5 0 2
wm_set_main_objective 2 0
wm_set_main_objective 2 1
accum 3 set 1
analogically for the other but not
accum 3 set 1
but
accum 4 set 1
…
the whole problem is that no matter the gold chests, the game ends when ONLY the secret info is secured; no matter if the gold is… I think i need to change something in the script, but i dont know what exactly… therefore i need help from U!
