• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

i need a response!!!

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2004
Messages
136
i allready posted a question about lagging and i got an answer but the answer was confusing. I was wondering how i can combine these triggers to make the game lag less. Here they are:

team 1 initialization
Events
Map initialization
Conditions
Actions
Trigger - Turn off make footmen gods red <gen>
Trigger - Turn off make footmen gods blue <gen>
Trigger - Turn off make footmen gods yellow <gen>


Make units Footmen red
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman for Player 1 (Red) at (Position of Dark Barracks 0018 <gen>) facing Default building facing degrees


Make units Footmen blue
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman for Player 2 (Blue) at (Position of Dark Barracks 0023 <gen>) facing Default building facing degrees


Make units Footmen yellow
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman for Player 5 (Yellow) at (Position of Dark Barracks 0024 <gen>) facing Default building facing degrees


footmen god upgrade red
Events
Unit - A unit Finishes research
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Researched tech-type) Equal to Footman God
Actions
Trigger - Turn off Make units Footmen red <gen>
Trigger - Turn on make footmen gods red <gen>


footmen god upgrade blue
Events
Unit - A unit Finishes research
Conditions
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Researched tech-type) Equal to Footman God
Actions
Trigger - Turn off Make units Footmen blue <gen>
Trigger - Turn on make footmen gods blue <gen>


footmen god upgrade yellow
Events
Unit - A unit Finishes research
Conditions
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
(Researched tech-type) Equal to Footman God
Actions
Trigger - Turn off Make units Footmen yellow <gen>
Trigger - Turn on make footmen gods yellow <gen>


make footmen gods red
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman General for Player 1 (Red) at (Position of Dark Barracks 0018 <gen>) facing Default building facing degrees


make footmen gods blue
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman General for Player 2 (Blue) at (Position of Dark Barracks 0023 <gen>) facing Default building facing degrees


make footmen gods yellow
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create 1 Footman General for Player 5 (Yellow) at (Position of Dark Barracks 0024 <gen>) facing Default building facing degrees


stop spawning red
Events
Unit - Dark Barracks 0018 <gen> Dies
Conditions
Actions
Trigger - Turn off Make units Footmen red <gen>
Trigger - Turn off make footmen gods red <gen>


stop spawning blue
Events
Unit - Dark Barracks 0023 <gen> Dies
Conditions
Actions
Trigger - Turn off Make units Footmen blue <gen>
Trigger - Turn off make footmen gods blue <gen>


stop spawning yellow
Events
Unit - Dark Barracks 0024 <gen> Dies
Conditions
Actions
Trigger - Turn off Make units Footmen yellow <gen>
Trigger - Turn off make footmen gods yellow <gen>

i could easily combine these but i want each one to work seperately for each player. if you looked at the trigger you will know what i mean. please help
 
Level 22
Joined
May 11, 2004
Messages
2,863
The only way I can think of right now is:

Event:
A unit dies
Action:
(if/then/do multiple actions) <--- (x1 per player)
-First action-
If dying unit is equal to (red barracks) then do action:
Trigger- turn off trigger red footman spawn trigger
Trigger- Turn off red knight spawn trigger
-Second action-
If dying unit is equal to (blue barracks) ect...(repeat previous action untill all players are covered)

I don't know if this will reduce lag, but it will certainly condense your destroy triggers dwon to a single trigger.
-VGsatomi
 
Level 5
Joined
Jun 18, 2004
Messages
136
yeah i thought so too but when i tried it didnt work so i used the one that was posted in my earlier question about selling that didnt work either.

thank you very much DarkSahadow
i really want to make a good map better then Waugriffs footmen Wars
 
Status
Not open for further replies.
Top