Returnable Objectives with accums


(Higgins) #1

This is the script I have for a single returnable objective:

axis_gold1 
{ 
spawn 
{ 
wait 200 
setstate axis_gold1_captured invisible 
} 

trigger stolen 
{ 
wm_announce "The Axis have stolen the gold" 
setstate axis_gold1_cm_marker invisible 
} 


trigger returned 
{ 
wm_announce "The Allies have retrieved the gold" 
setstate axis_gold1_cm_marker default 
} 

trigger captured 
{ 
wm_announce "The Axis have secured the gold" 
setstate axis_gold1_red invisible 
setstate axis_gold1_captured default 
} 
} 


axis_gold1_objective
{ 
death 
{ 
trigger game_manager objective1
} 
}

How would I use accums to link them all together, so that once they have all be secured by a team, the game ends and a team wins?


(DerSaidin) #2

Link what together?

The triggers in axis_gold1 are activated automatically when those things happen (assuming axis_gold1 is the scriptname of the objective, I believe you can also put these triggers in the game_manager scriptblock).

The other one is the capture point’s script…

If your asking how to make it so you need to capture more then one, have the capture point’s death function increase a accum by 1, then trigger a check. The check will see if the value of the accum is more than X. If it is, set winner and end the round.

Check out the radar script.


(Loffy) #3

Yup, check out radar script or gold rush script, since they have stuff that one team must steal and deliver.

Also, you can post your entire script as it is right now, if you want to. It would make it much easier for us to come up with recommendations and give you additional hints and tricks.

Keep on mapping!

//Loffy