how to make a spawn fight


(twt_thunder) #1

with spawn fight i mean that all spawn would be capturable and when one team catched them all they would win… how do i script something like that?


(stealth6) #2

rough guess but just make a capable spawn and then attach script_trigger? That triggers an accum.


(twt_thunder) #3

well…it was that accum stuff…i need it in with an teaspoon you know…lol
(map starts to look great btw)


(-SSF-Sage) #4

You mean something like having 5 flags and once your team has all of them the team wins? Add this to your game_manager:

trigger check_flags_allied
{
accum 1 inc 1  //+1 flag captured
accum 0 inc -1 //Remove one flag from axis

accum 1 abort_if_less_than 5  //Check that 5 flags are captured
wm_setwinner 1
wm_endround
}

trigger check_flags_axis
{
accum 0 inc 1  //+1 flag captured
accum 1 inc -1 //Remove one flag from allies

accum 0 abort_if_less_than 5  //Check that 5 flags are captured
wm_setwinner 0
wm_endround
}

And trigger these from allied_capture/axis_capture event of each flag. And don’t forget to set the accums to zero in the game_manager’s spawn just to be safe.

edit I did not test it, just wrote it from the top of my head but it should do it.


(nUllSkillZ) #5

There’s already a map.
As far as I remember “town” by drakir.


(twt_thunder) #6

@{SSF}Sage thanx,think this is what i was looking for:D :smiley:

@nUllSkillZ never seen that map… if Sage’s solution don’t work


(nUllSkillZ) #7

My mistake:
The map is called “Alleys”.


(twt_thunder) #8

[QUOTE=nUllSkillZ;214682]My mistake:
The map is called “Alleys”.[/QUOTE]

ah…yes that one i’ve tried :D… trying to make a battle map where both teams can win ground … so when all 5 or six spawns is take they win…