| 07-27-2003, 01:17 PM | #1 |
Hello How do you put a unit targeted by a spell into a unit variable? Why is it that this trigger doesnt always work? It sometimes picks no one but other times it just picks only a few units. Unit Group - Pick every unit in (Units in (Region centered at (Position of (Casting unit)) with size (500.00, 500.00)) matching ((((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to False) and (((Matching unit) is alive) Equal to True))) and do (Actions) Loop - Actions Unit - Pause (Picked unit) Thank you for your time. |
| 07-27-2003, 05:00 PM | #2 |
-blubber to set a target unit into variable you do something like this Variable - SpellTarget = Unit Trigger one: Events: A unit is Issued an order targeting an objective Conditions: (issued order) equal to (Order(hex)) Actions: Set SpellTarget = (Target of unit of issued order) Trigger 2: Events: A unit begins casting an ability Conditions: (Ability begin casted) equal to <Whatever you set your spell> Actions: <Your trigger with SpellTarget as your target> ^_^ The order(hex) in trigger 1 / conditions - you set to whatever the order string of your spell is. I just typed it out from top of my head but i hope it helps ya. You 2nd question i don't understand but i just woke up so =P <Having a life is boring but living it is fun...kinda> >.< |
| 07-28-2003, 11:09 AM | #3 |
1.Thanks I will try that 2. I want to pick all units within a region centered at a unit. The problem is the game sometimes does not pick any units at all. Other times it only picks some units. I need it to get all the units within a certain range of the unit. Any suggestions how I do that? |
| 07-28-2003, 02:42 PM | #4 |
Does anyone know the order string for lifedrain/siphon mana? Will changing the order string to a different one work? |
| 07-29-2003, 09:02 AM | #5 |
(bump) |
| 08-01-2003, 05:46 AM | #6 |
-blubber I'm sorry i can't help much because i've been sick for a week now. I'm knocking out left to right. =(** I've even postpone making my map for while and it was getting good =P Well... Maybe I'll try to see if it doesn't hurt so much to think. |
