| 08-07-2003, 09:46 PM | #1 |
:bangH: :bangH: :bangH: :bangH: Trigger-1 Unstable Gravity Damage Events Unit - A unit owned by (Owner of Astral 0006 <gen>) Begins channeling an ability Unit - A unit comes within 800.00 of Astral 0006 <gen> Conditions (Ability being cast) Equal to Unstable Gravity1 ((Owner of (Triggering unit)) controller) Equal to Hostile Actions Unit Group - Add all units of (Units within 800.00 of (Position of Astral 0006 <gen>)) to UnstableGravity Trigger-2 Unstable Gravity Damage1 Events Time - Every 1.00 seconds of game time Conditions Actions Unit Group - Pick every unit in UnstableGravity and do (Unit - Set life of (Triggering unit) to -5.00) Any help... thnx =) |
| 08-07-2003, 10:05 PM | #2 |
because in conditions you have "triggering player owned by hostile" but im guessing astral is owned by player 1 and hes part of the triggering units so the condition is false |
| 08-07-2003, 10:10 PM | #3 |
Do you have any suggestions then on how i can fix this? I cant add the player that enters is.. because the opposing team has 6 players... any idea? |
| 08-07-2003, 10:17 PM | #4 |
Don't you use casting an ability not channeling. Or is it a channeling spell? |
| 08-07-2003, 10:17 PM | #5 |
insted of making it a event try making it another condition?? |
| 08-07-2003, 10:57 PM | #6 |
Ok it damages the people.. but it doesnt damage all enemies of that Player... it only works if i put for like player 12 or something.. can anyone explain what Hostile is in preset? Edit- One more question.. is there a way to find out when a unit leaves the specified range of another unit.. there is "Unit within range of another unit" i want the opposite ;) Ok,thnx.. |
| 08-07-2003, 11:06 PM | #7 |
send the map to my e-mail if you want a i will try fix it i pm you my address |
| 08-07-2003, 11:12 PM | #8 |
I got it mostly fixed.. i just have to find out how to make the person leave the group when he gets out of range of Astral. |
| 08-07-2003, 11:19 PM | #9 |
event every 1 sec cond unit in range (800) of unit = to false action remove unit from unit group "X" |
| 08-07-2003, 11:24 PM | #10 | |
Quote:
this is what i would do off the top of my head Code:
Untitled Trigger 001
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to UnstableGravity
Actions
Set bIsCasting = True
Untitled Trigger 002
Events
Unit - A unit comes within 800.00 of X Unit
Conditions
(bIsCasting) Equal to True
Actions
Player Group - Pick every player in (All enemies of (Owner of (Entering unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked player) Equal to (Owner of (Entering unit))
Then - Actions
Unit Group - Add (Entering unit) to (X Unit Group)
Trigger - Turn on (Trig3)
Else - Actions
Do nothing
Untitled Trigger 003
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in (X Unit Group))) Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Do nothing
Unit Group - Pick every unit in (Units in (X Unit Group)) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 5.00)
If - Conditions
(Distance between (Hero Casting Unit) and (Picked unit)) Greater than 800
Then - Actions
Unit - Remove (Picked unit) from (X Unit Group)
Else - Actions
Do nothing
Untitled Trigger 004
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to UnstableGravity
Actions
Set bIsCasting = FalseNote, i did do this off the top of my head so something may have been overlooked |
| 08-07-2003, 11:33 PM | #11 |
hs ratpter off the top of your head??? you must have a huge head;) you seen my problem yet? you mite be able to think of something no-one else has http://www.wc3campaigns.com/forums/s...threadid=24795 |
| 08-07-2003, 11:58 PM | #12 |
i answered it (hopefully correctly) in ur thread |
| 08-08-2003, 01:01 AM | #13 |
thnx,that worked :D |
