- Joined
- Jun 30, 2006
- Messages
- 230
For all of those familiar with Footmen vs Grunts, I'm properly redoing the map. The ones floating around right now have so many leaks after 30 mins of gameplay one or two players lag out. Not to mention the spawning...
They do the spawns for units is like this.
/* ::::: Rifles for Player One ::::: */
Detects if "Summon Rifle" is researched for Player One, then enables "Bring Rifle For Player1" trigger
/* ::::: Rifles for Player Two ::::: */
Detects if "Summon Rifle" is researched for Player Two, then enables "Bring Rifle For Player2" trigger
So, there are two triggers for every unit for each player. I'm not sure of how many units you can have spawning, but I think it is 24 for each player. So we have a potential of 480 triggers just to summon units on the map. Also there are TONS of timers on the map, plus a lot of triggers to edit if you want to change the time it takes for each unit to spawn. In the Footmen vs Grunts I looked at for the triggers, they never cleaned up points, either.
What I would like is to be able to have one trigger, maybe two for each type of unit. I'm very inexperienced in this kind of trigger, so I need help. I was thinking that it could loop through the players to see if they have the research required to bring the unit being spawned, and then spawn the rifles at the respective start locations for each player. This way you could eliminate four timers per unit, which would drastically reduce lag later in the game. But I don't have a clue how to do it.
And more than likely this will have to be done in JASS to do it the way I want to, but I was hoping not to....
They do the spawns for units is like this.
/* ::::: Rifles for Player One ::::: */
Detects if "Summon Rifle" is researched for Player One, then enables "Bring Rifle For Player1" trigger
/* ::::: Rifles for Player Two ::::: */
Detects if "Summon Rifle" is researched for Player Two, then enables "Bring Rifle For Player2" trigger
So, there are two triggers for every unit for each player. I'm not sure of how many units you can have spawning, but I think it is 24 for each player. So we have a potential of 480 triggers just to summon units on the map. Also there are TONS of timers on the map, plus a lot of triggers to edit if you want to change the time it takes for each unit to spawn. In the Footmen vs Grunts I looked at for the triggers, they never cleaned up points, either.
What I would like is to be able to have one trigger, maybe two for each type of unit. I'm very inexperienced in this kind of trigger, so I need help. I was thinking that it could loop through the players to see if they have the research required to bring the unit being spawned, and then spawn the rifles at the respective start locations for each player. This way you could eliminate four timers per unit, which would drastically reduce lag later in the game. But I don't have a clue how to do it.
And more than likely this will have to be done in JASS to do it the way I want to, but I was hoping not to....
Last edited: