| 09-07-2003, 08:53 PM | #1 |
Is there a condition that is like "Unit" in range of "unit" Equal to "234" or something similar to that I do not want to use an Event I want to use a condition hence the subject just so you know. Help is really appriciated thanks. |
| 09-07-2003, 09:12 PM | #2 |
im looking for a condition too... Is there a condition thats like : player does not own unit of unit type |
| 09-07-2003, 09:13 PM | #3 |
It's under Real comparison. To get the distance, use "Distance between two points." |
| 09-07-2003, 09:15 PM | #4 | |
Quote:
well does any one know how to do this condition? |
| 09-07-2003, 09:16 PM | #5 |
Use integer comparison: Number of unit in unit group (Units owned by YourPlayer matching condition (Unit type of matching unit is equal to YourUnitType)) is equal to 0 |
| 09-07-2003, 09:17 PM | #6 | |
Quote:
dude if this freeking worx... u have answerd my million dollar question! |
| 09-07-2003, 09:26 PM | #7 |
HELL YEAH IT WORX.. WOOOOOOHOOOO |
| 09-08-2003, 12:52 AM | #8 | |
Quote:
Hey dude I tried and then the trigger didnt work at all. I dont want it to go into effect unless the unit is in range but if I put the unit - is in range of - unit in the Events it totally by passes that and makes it happen NE ways. Here are the triggers maybe u can figure it out. E) Unit - A unit Is issued an order targeting an object C) (Unit-type of (Ordered unit)) Equal to (Unit-type of Elemental Mage 0072 <gen>) C) (Issued order) Equal to Undead Lich - Frost Nova C) (Distance between (Position of Elemental Mage 0072 <gen>) and (Position of (Targeted unit))) Less than or equal to 700.00 A) Set Ice_Spiral = (Target unit of issued order) A) Unit - Create 1 IceSpirals for (Owner of Elemental Mage 0072 <gen>) at ((Position of Ice_Spiral) offset by (100.00, 20.00)) facing (Position of (Triggering unit)) A) Unit - Create 1 IceSpirals for (Owner of Elemental Mage 0072 <gen>) at ((Position of Ice_Spiral) offset by (-100.00, -20.00)) facing (Position of (Triggering unit)) Thank you for the help |
| 09-09-2003, 04:10 AM | #9 |
Your problem is that your event needs to be "A unit finishes casting an ability." However, then you can't find the target. The solution is as follows. You'll need two variables. Type: Unit. Yes to array. Set the size to whatever you think the max number of these spells being cast at a time is. Name is target. The other variable is of type integer, not an array. Name it counter and set the initial value to 0. Events: A unit is issued an order target an object Conditions: (Unit-type of (Ordered unit)) Equal to (Elemental Mage) (Issued order) Equal to Undead Lich - Frost Nova Actions: Set counter = counter + 1 If counter > TheLengthOfTheCasterArray then set counter = 1 else do nothing Set custom value of triggering unit = counter Set target[counter] = target of issued order Events: A unit finishes casting an ability Conditions: (Ability comparison) Ability being cast is equal to Undead Lich - Frost Nova (Unit-type of (Triggering unit)) Equal to (Elemental Mage ) Actions: A) Set Ice_Spiral = target[custom value of triggering unit) A) Unit - Create 1 IceSpirals for (Owner of Triggering Unit ) at ((Position of Ice_Spiral) offset by (100.00, 20.00)) facing (Position of (Triggering unit)) A) Unit - Create 1 IceSpirals for (Owner of Elemental Mage 0072 <gen> ) at ((Position of Ice_Spiral) offset by (-100.00, -20.00)) facing (Position of (Triggering unit)) |
| 09-09-2003, 04:12 AM | #10 | |
Quote:
no thats not my prob... i fixed it though ;) its up there some where in one of the post (how i did it) btw ... i wouldnt work the way u set it up ;) |
| 09-09-2003, 02:07 PM | #11 |
I was saying that to Progniss, |
| 09-09-2003, 07:54 PM | #12 | |
Quote:
lol ok sorry |
