Re: Next problem
Originally posted by DecoY
again thx icedevil it worked.
Now this should be my last problem.....
Like a mention before my map is simalar to footman wars.
So i want to make and upgrade which do that you get 2 units every 10 seconds istead of 1.
fx. normally you get one unit.
Trigger.
event: time periodic 10 sec
condition: none
action: create 1 unit for ply bla bla bla.....
but if you get this upgrade you should get:
event: time periodic 10 sec
condition: none
action: create 2 unit for ply bla bla bla.....
how do i do this...
simple really. Have 2 triggers, one for 1 unit/10 seconds and another for 2/10 seconds. (take note if you do this EVERYONE will get the 2/10 secs upgrade) if u wanted it for just one person, you would need 2 triggers for each player playing.
to enable for everyone:
lets call this upgrade "DoubleUnit"
and lets make it a unit for simplicity sake.
Event A unit finishes training.
condition trained unit = to DoubleUnit
Action remove trained unit from game.
Trigger turn off (the name of ure 1unit/10second trigger)
Trigger Turn on (the name of ure 2unit/10second trigger)
In order for it to work for one person (which i think is what you want) you will need alot more triggers.
lets call ure 1/10 second trigger for red
1/10red and ure 2/10 second trigger for red 2/10red
Event Player 1(Red) Finishes training a unit
condition trained unit = to DoubleUnit
Action remove trained unit from game.
Trigger turn off 1/10red
Trigger Turn on 2/10 red
You will need one of those for each person you intend to have playing. If anyone has a way to do it using like 3 triggers, lol feel free to jump in.
Edit: i just looked at what ice said, and by doing what he said half the work is done for you. You probably have 1 trigger with periodically every 10 seconds it does if player red is playing then create 1 footmen for red at (your region) else do nothing several times over for each player. You can break this down into many different triggers just by using copy and paste. Copy ure original trigger for each player u intend to have playing and set it so each trigger only creates units for that player. like ure 2nd copy would only make units for player 2 blue. etc. if u have split up the one trigger into many different ones now u have to make many triggers that make TWO units per 10 secs and are initially off.
Wen player 1 finishes training a unit it turns off the corresponding 1/10 trigger and turns on the corresponding 2/10 trigger. confusing, huh?