| 12-03-2002, 11:14 PM | #1 |
Guest | Sorry guys, another question :( So heres what I need. When player red's (player 1) Hero rescues a player 9 (neutral) unit, change unit to neutral passive and order the rescued unit to follow player red's hero. Any advice? This forum is a great help :). Heres what I've setup: Events: Unit - a unit owned by Player 9 (Gray) Is rescued Conditions: [[Unit-Type of [Triggering Unit]] Equal to Child] and [[Owner of [Triggering unit]] Equal to Player 1 [Red]] Actions: Unit - Change ownership of [Triggering unit] to Neutral Passive and Change color Unit - Order [Triggering unit] to Follow [Matching unit] I think I'm messing up around the Owner of Trigger unit for the condition (obviously I want this to equal hero, not player 1, but I can't find a suitable condition for that). I think that would solve the Unit-Order follow action which is looking for a condition of a specific unit other than child. |
| 12-04-2002, 05:07 PM | #2 |
Guest | Check the global unit IDs...I think there is "Event Response - Rescued Unit" and "Event Response - Rescuer" or something like that. Use those instead. And "Matching Unit" is only used with "All Units/Players/etc. Matching Condition" |
| 12-05-2002, 04:00 AM | #3 |
Read what generalmx said, and if you want a condition to test if a unit is a hero, it's under boolean comparison. Unit is a _____ (building, hero, whatever). |
| 12-05-2002, 12:40 PM | #4 | |
Quote:
Event: ----a unit owned by Player 9 (Gray) Is rescued Conditions: ----Unit-Type of (Rescued Unit)) Equal to Child ----(Owner of (Triggering unit)) Equal to Player 1 (Red)) Actions: ----Change ownership of (Rescued Unit) to Neutral Passive and Change color ----Unit - Order (Rescued Unit) to Follow (triggering unit) The way this one is set up (the one i just did) you rescue the child, and the rescuing player has to be player 1. I think thats what you wanted. |
