Uszi
New Member
- Reaction score
- 5
Let me ask this first, and then read on if you think you can answer:
What I'm asking is: Does anyone have any experience with this sort of spawning system that can give me some pointers?
Second, I don't need a custom designed trigger, just a few suggestions as to where to begin. If you want to make the trigger, feel free, but I'm content to work it out.
Ok:
I'm trying to work out a spawning system that will take into consideration a difficulty level, the number of players playing, and the round number. There should be more zombies if there are more players, playing on a higher difficulty level, later on in the game.
I want to have lots and lots of rounds, on the order of 50-100, and to make it easier than triggering each round, I would like to do it systematically with a few triggers, so I'm looking to make a system where the value increases.
Right now, here's what I got:
NumPlayersPlaying is an integer = number of players in All Players slot status = user, and = playing.
GameDifficulty is an integer set at a selection screen:
Easy is 0
Normal is 1
Hard is 2
Insane is 3
RoundNumber is an integer set to RoundNumber+1 each round, so round 1 is 1, round 2 is 2, etc.
So far it would do what I want, though it makes the game really rough if you were trying to play it by yourself, 1 player. The math works out like this: 6 players playing on normal difficulty would face 22 zombies in the first round. 1 player playing on normal difficulty would face 4 zombies in the first round. 3 players playing on insane difficulty would face 19 zombies in the first round.
However, I'm trying to figure out how to use it now. I'm thinking that I would at the start of the round, take ZombiesToSpawn[0] and set ZombiesToSpawn[1] = ZombiesToSpawn[0], spawn a zombie, set ZombiesToSpawn[1] = ZombiesToSpawn[1]-1 and reroll like that till ZombiesToSpawn[1] is empty.
I think I can do that.
Problem is now I also want to have different "breed" of more difficult zombies (Zombies with auras, zombies with plague, etc). I'm trying to figure out a system of weighting these advanced zombie types, so that I could control when they spawn: how many rounds in, what the difficulty is, etc. Maybe on Insane mode, I want my players to have to deal with one or two immolation zombies by as early as round 3, but on Easy mode I wouldn't want one to show up until round 10.
The first step seems to be to be to make a unit type array for the types of zombies:
Then... I'm not sure where to go.
And a final consideration: I would like for the zombies to spawn over a period of time. So that those 6 players don't face all 22 zombies in the first 10 seconds of the round.
So...
What I'm asking is: Does anyone have any experience with this sort of spawning system that can give me some pointers?
What I'm asking is: Does anyone have any experience with this sort of spawning system that can give me some pointers?
Second, I don't need a custom designed trigger, just a few suggestions as to where to begin. If you want to make the trigger, feel free, but I'm content to work it out.
Ok:
I'm trying to work out a spawning system that will take into consideration a difficulty level, the number of players playing, and the round number. There should be more zombies if there are more players, playing on a higher difficulty level, later on in the game.
I want to have lots and lots of rounds, on the order of 50-100, and to make it easier than triggering each round, I would like to do it systematically with a few triggers, so I'm looking to make a system where the value increases.
Right now, here's what I got:
Trigger:
- Game Settings
- Events
- Map initialization
- Conditions
- Actions
- Set ZombiestoSpawn[0] = ((NumPlayersPlaying x 2) + ((NumPlayersPlaying x GameDifficulty) + (((RoundNumber x NumPlayersPlaying) + (GameDifficulty x 2)) / 2)))
- Events
NumPlayersPlaying is an integer = number of players in All Players slot status = user, and = playing.
GameDifficulty is an integer set at a selection screen:
Easy is 0
Normal is 1
Hard is 2
Insane is 3
RoundNumber is an integer set to RoundNumber+1 each round, so round 1 is 1, round 2 is 2, etc.
So far it would do what I want, though it makes the game really rough if you were trying to play it by yourself, 1 player. The math works out like this: 6 players playing on normal difficulty would face 22 zombies in the first round. 1 player playing on normal difficulty would face 4 zombies in the first round. 3 players playing on insane difficulty would face 19 zombies in the first round.
However, I'm trying to figure out how to use it now. I'm thinking that I would at the start of the round, take ZombiesToSpawn[0] and set ZombiesToSpawn[1] = ZombiesToSpawn[0], spawn a zombie, set ZombiesToSpawn[1] = ZombiesToSpawn[1]-1 and reroll like that till ZombiesToSpawn[1] is empty.
I think I can do that.
Problem is now I also want to have different "breed" of more difficult zombies (Zombies with auras, zombies with plague, etc). I'm trying to figure out a system of weighting these advanced zombie types, so that I could control when they spawn: how many rounds in, what the difficulty is, etc. Maybe on Insane mode, I want my players to have to deal with one or two immolation zombies by as early as round 3, but on Easy mode I wouldn't want one to show up until round 10.
The first step seems to be to be to make a unit type array for the types of zombies:
Trigger:
- Game Settings
- Events
- Conditions
- Actions
- Set UnitType[1] = Zombie
- Set UnitType[2] = Diseased Zombie
- Set UnitType[3] = Fiend
- Set UnitType[4] = Burning Zombie
- Set UnitType[5] = Ghoul
- Set UnitType[6] = Abomination
Then... I'm not sure where to go.
And a final consideration: I would like for the zombies to spawn over a period of time. So that those 6 players don't face all 22 zombies in the first 10 seconds of the round.
So...
What I'm asking is: Does anyone have any experience with this sort of spawning system that can give me some pointers?