- Joined
- May 29, 2007
- Messages
- 2
alright, i have two triggers for spells i got from this site, Blade Beam and Dark Slash or Dark Sword i forgot its original name, in the world editor they're exact copies of the original spells with only a few minor changes that are irrelevant to the problem. i have them set to specific spots button wise, yet in-game they seem to switch places every time i cast one, such as, say i casted Blade Beam it'd work fine the first time, but then if i go to cast it again (even during cooldown, it lets me for some reason) it'll cast the other spell. ill post the triggers:
Blade Beam
according to my leak checker, the first one is OK with 5 leaks, and the second one is Excellent with 0 leaks. (i couldnt fix the first leaks because its suggestions were exactly what i had...)
if anyone can help it'd be much appreciated, if you need anymore information i'd be glad to provide it thank you
Pwnacles.exe
Blade Beam
-
Blade Impact
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Blade Impact
-
Actions
- Set Warrior = (Casting unit)
- Set Victim = (Target unit of ability being cast)
- Set WarriorLoc = (Position of Warrior)
- Set VictimLoc = (Position of Victim)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between WarriorLoc and VictimLoc) Greater than or equal to 399.00
-
Then - Actions
- Wait 0.50 seconds
-
Else - Actions
-
Unit Group - Pick every unit in (Units within 512.00 of VictimLoc matching ((Picked unit) Not equal to Victim)) and do (Actions)
-
Loop - Actions
- Unit - Create 1 minicaster for (Owner of Warrior) at VictimLoc facing (Position of Victim)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Custom script: bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of VictimLoc matching ((Picked unit) Not equal to Victim)) and do (Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between WarriorLoc and VictimLoc) Less than 400.00
-
Then - Actions
- Wait 0.45 seconds
-
Else - Actions
-
Unit Group - Pick every unit in (Units within 512.00 of (Position of Victim) matching ((Picked unit) Not equal to Victim)) and do (Actions)
-
Loop - Actions
- Unit - Create 1 minicaster for (Owner of Warrior) at VictimLoc facing (Position of Victim)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Custom script: bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of (Position of Victim) matching ((Picked unit) Not equal to Victim)) and do (Actions)
-
If - Conditions
- Custom script: Call RemoveLocation(udg_WarriorLoc)
- Custom script: Call RemoveLocation(udg_VictimLoc)
-
Events
-
Dark Blade
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Dark Blade
-
Actions
- Set Warrior = (Casting unit)
- Set Victim = (Target unit of ability being cast)
- Unit - Make Victim Explode on death
- Unit - Pause Victim
- Wait 0.05 seconds
- Special Effect - Create a special effect attached to the left hand of Warrior using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- Set DB_Effects[1] = (Last created special effect)
- Special Effect - Create a special effect attached to the right hand of Warrior using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- Set DB_Effects[2] = (Last created special effect)
- Special Effect - Create a special effect attached to the left foot of Warrior using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- Set DB_Effects[3] = (Last created special effect)
- Special Effect - Create a special effect attached to the right foot of Warrior using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- Set DB_Effects[4] = (Last created special effect)
- Special Effect - Create a special effect attached to the head of Warrior using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
- Set DB_Effects[5] = (Last created special effect)
- Wait 0.05 seconds
- Unit - Pause Warrior
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Play Warrior's attack animation
- Wait 0.05 seconds
- Animation - Reset Victim's animation
- Animation - Reset Warrior's animation
- Unit - Make Victim Die normally on death
- Unit - Unpause Warrior
- Unit - Unpause Victim
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
- Special Effect - Destroy DB_Effects[(Integer A)]
-
Loop - Actions
-
Events
according to my leak checker, the first one is OK with 5 leaks, and the second one is Excellent with 0 leaks. (i couldnt fix the first leaks because its suggestions were exactly what i had...)
if anyone can help it'd be much appreciated, if you need anymore information i'd be glad to provide it thank you
Pwnacles.exe
Last edited: