Staredit Network

Staredit Network -> UMS Assistance -> Civ unit buying
Report, edit, etc...Posted by Mp)Excalibur on 2006-03-02 at 16:22:55
Ok all,
Im experianced with triggs but in my entire history of using them, i did it specificly aka:
P1 bring civ to X remove civ at X create unit for p1 at Y.
Now i understand that by using current player i can do this for an entire force. I tried it but effd up cuasing it to build a unit for everyone in that force. Anyone care to share how to do it correctly?
Thanks
-Legacy smile.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-03-02 at 16:28:43
If it is creating a unit for the entire force, it means that the entire force having the trigger run. Just make sure you trigger looks like this.


Trigger
Description:
Choose Unit
Players:
¤ Force 1
Conditions:
¤ Current player brings atleast 1 Civilian to (Location with unit).
Actions:
¤ Remove 1 Civilian for current player at (Location with unit).
¤ Create 1 Unit for current player at (spawning location)

Report, edit, etc...Posted by Urmom(U) on 2006-03-02 at 18:31:39
If the spawn points are at different places for each player, I create them in one place and have another trigger to sort them to the players.
Report, edit, etc...Posted by Mp)Excalibur on 2006-03-02 at 20:42:40
QUOTE(fritfrat @ Mar 2 2006, 04:28 PM)
If it is creating a unit for the entire force, it means that the entire force having the trigger run. Just make sure you trigger looks like this.





Trigger
Description:
Choose Unit
Players:
¤ Force 1
Conditions:
¤ Current player brings atleast 1 Civilian to (Location with unit).
Actions:
¤ Remove 1 Civilian for current player at (Location with unit).
¤ Create 1 Unit for current player at (spawning location)

[right][snapback]437735[/snapback][/right]


Thanks Bro, appreciate it. And yea i am doing them in diffrent places with the sorting at one location. Im currently going to implament this on DD2 so it runs smooth.
-Legacy
Report, edit, etc...Posted by (U)Bolt_Head on 2006-03-02 at 23:19:34
Imagine your triggers that are owned by a force as individual copies of that trigger for each of the players. (because it is exactly that in every way)

After this come to realize that individual triggers do not fire at the same time, thus actions in the first players will be compleat before the second player starts (excludeing special cirumstances with waits).

Last as a hint: If a trigger is owned by player 2 and the conditions read "Player 1 brings at least one unit to 'PickHero'" Then the trigger will still fire even though it has nothing to do with player 2's units. Keep in mind that triggers do not have to effect the player who runs them at all.

Also you might want to read the last quote section in this post it is directly related to your question.
http://www.staredit.net/index.php?showtopi...ndpost&p=436794
Next Page (1)