Staredit Network

Staredit Network -> UMS Assistance -> Creating Units with Triggers
Report, edit, etc...Posted by RyanEdwardLee on 2004-10-08 at 15:37:07
on a current map i am making, i have teams, and when a team holds a certain area, they get units
the current trigger is like this:
Team Roseblood brings at least 1 men to location X
Foes bring 0 men to location x
Player 8 brings 0 men to location x

create 4 melee troops at location x spawn for Team Roseblood
create 2 ranged unit at location x spawn for Team Roseblood

the problem is it makes 8 melee and 2 ranged for each player of Team Roseblood, so i am wondering, should i change the trigger to current player insted of Team Roseblood?
Report, edit, etc...Posted by Omega_Ninja on 2004-10-08 at 15:59:25
well if you set it for current player, for every player on Roseblood, that goes there, they get 4 melee and 2 ranged.
Report, edit, etc...Posted by Halphonse]B on 2004-10-08 at 16:04:39
exemple: if the team is composed of player 1 and player 2.
Trigger
Players:
¤ remplace team by player 1 and player 2
Conditions:
¤ same condition
Actions:
¤ same action
Report, edit, etc...Posted by PCFredZ on 2004-10-08 at 16:26:34
Both Current Player and Team Roseblood will result in the same thing: try it.

However, if your condition is "CURRENT player", the trigger will only create units for ONE player.

Therefore, stick with Team Roseblood.
Report, edit, etc...Posted by RyanEdwardLee on 2004-10-10 at 01:41:41
i ment like this folks, i think you are all confused, so here:

Player: Team Roseblood
Condtions: Same Condtions
Actions: Create 4 melee and 2 ranged for Current Player
Report, edit, etc...Posted by animaljr on 2004-10-10 at 12:29:14
can you attach a copy of the map so i can take a look at what you are trying to do?
Report, edit, etc...Posted by PCFredZ on 2004-10-10 at 16:26:22
We aren't confused.

Using Current Player and Team Roseblood inside your Action will do the same thing so long as the Player section is Team Roseblood.
Report, edit, etc...Posted by SaLaCiouS(U) on 2004-10-10 at 17:06:39
If you have a force selected, it will run the trigger for every player in that force. So if there are two people in the game in that force, it will run twice. Hence you get more units then you wanted.
Report, edit, etc...Posted by Zergling[SK] on 2004-10-10 at 20:19:00
the create trigger makes that many units times the amount of people the trigger is working for. so if u have a force as a player, and that force has like 3 ppl then it multiplies the amount of units created (lets say 4) by the number of players in that force ,3 players (12 uints).

ADDITION:
Trigger
Description:
To many units for create trigger
Players:
¤ Team Roseblood (3 players)
Conditions:
¤ Team Roseblood brings atleast 1 men to x
¤ enemies bring exactly 0 to x
¤ player 8 brings exactly 0 to x
Actions:
¤ create 4 melee at x
¤ create 2 range at x


That means that u will create 12 melee, and 6 ranged for each person on team roseblood but if u do this:

Trigger
Description:
Right amount of units
Players:
¤ Player 1
¤ Player 2
¤ Player 3
Conditions:
¤ Current player brings atleast 1 men to x
¤ enemies bring exactly 0 to x
¤ player 8 brings exactly 0 men to x
Actions:
¤ creates 4 melee at x for current player
¤ creates 2 range at x for current player


then you will get the right amount of people for those players
Report, edit, etc...Posted by PCFredZ on 2004-10-10 at 20:28:46
Ryan, just stick with the trigger you had at the VERY beginning of this thread. Try it if you don't believe me.
Report, edit, etc...Posted by RyanEdwardLee on 2004-10-10 at 20:33:39
Zergling put it into terms i could understand, thank you very much zergling, it is working fine now
Next Page (1)