hey. I’ve been mapping for some time now and i was wondering how you could make it so the team who has the most kills win the round. i’ve done some searching and saw that it was impossible to keep tracks of kills but only of spawns, via scriptblocks that run each time the spawn entity is being triggered. here is something i tought of…
game_manager
{
spawn
{
//stuff...
globalaccum 0 set 0 //allied spawn counter
globalaccum 1 set 0 //axis spawn counter
//other stuff...
}
trigger timelimit_hit
{
trigger self check_axiswin
trigger self check_allieswin
trigger self check_draw
}
trigger check_axiswin
{
globalaccum 1 abort_if_greater_than globalaccum 0
wm_setwinner 0
wait 500
wm_endround
}
trigger check_allieswin
{
globalaccum 0 abort_if_greater_than globalaccum 1
wm_setwinner 1
wait 500
wm_endround
}
trigger check_draw
{
globalaccum 0 abort_if_greater_than globalaccum 1
globalaccum 1 abort_if_greater_than globalaccum 0
wm_setwinner -1
wait 500
wm_endround
}
}
altough im pretty sure this is valid, i’m still unsure on the “globalaccum X abort_if_greater_than globalaccum Y” because i’ve always seen a number after the “abort_if…”. can someone tell me if this would work? i guess nothing prevents it to do but we never know.
also, i’d like to know how is it possible to record the number of spawns… i am guessing it is something like this?
trigger spawnscriptname
{
globalacum 0/1 inc 1
}
thanks for replying 
