Staredit Network

Staredit Network -> UMS Assistance -> Taking and Giving to Player 12
Report, edit, etc...Posted by Fallen(uF) on 2007-02-07 at 01:48:15

null
Trigger
Conditions:
¤ Neutral brings at least 1 Protoss Forge to 'Location 1'.
Actions:
¤ Give All Protoss Forge owned by Neutral at 'Location 1' to Current Player.
¤ Give All Protoss Pylon owned by Neutral at 'Location 1' to Current Player.
¤ Preserve trigger.



null
Trigger
Conditions:
¤ Current Player brings at most 0 Protoss Forge to 'Location 1'.
Actions:
¤ Give All Protoss Forge owned by Current Player at 'Anywhere' to Neutral.
¤ Give All Protoss Pylon owned by Current Player at 'Anywhere' to neutral.
¤ Preserve trigger.


I use the first trigger to take the forge from Player 12 and the second to give the forge back when you move away. Location 1 is following a unit. Instead of giving me the forge, then taking it back when I move away, it gives and takes instantly, causing the forge and pylon to turn to my color, but not to my possession. Why isn't this working?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-02-07 at 04:21:30
You should change the Protoss Force conditional value to the unit you're using to obtain the Forge in the second trigger, and add a Bring condition to the first trigger for the unit you want to activate the Protoss Forge give trigger.
Report, edit, etc...Posted by fritfrat(U) on 2007-02-07 at 16:02:04
Siegecop, Location 1 is following the unit.

Your triggers as presented here are correct, fallen. Give more details or post the map. The bottom trigger is for some reason able to fire again.
Report, edit, etc...Posted by Fallen(uF) on 2007-02-07 at 16:32:50
Oh wait... I know what I need to do. I need to add in a condtion to the first trigger that gives the forge to the player that requires the player owns no forges. In the second trigger i need a condition that requires ownership of a forge. Would that fix it? unsure.gif

EDIT:
I added in conditions checking if the player owned a forge or not. It works now.
Next Page (1)