Warcraft III resources & community, 2003–2006 · archived

i need a response!!!

7 posts
#1

i need a response!!!

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
#2
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
#3
Got the PM. I'll combine the triggers for you, and will do the sell-trigger for the footmans. But it will take some time.
#4
A sell trigger for footman is very easy isn't it? All you do is a dummy ability and use triggers to detect it and kill the footman who used it and give the gold to the owner of the footman
#5
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
#6
The last time I played Waugriff's Footman War it didn't have a kill leaderboard maybe you can beat it by adding one of those
#7
ok i will
thx for the tip