- Joined
- May 20, 2009
- Messages
- 822
I do have triggers already made for this spell, but they are INSANELY buggy. I need help completely rescripting them.
What this spell does:
When my hero attacks a unit, if this spell is used for that attack (Because it is autocast, but of course can be manually targeted) then I want mana to be taken away from that unit and deal damage equal to the amount of mana taken away.
The problem is, I'm having quite a lot of trouble because my triggers run very slowly. I will post the triggers I have in here, but do note that these need to be completely rewritten and that is why I am posting in these forums instead of the Trigger / Scripting forum.
There is also a very abusable bug on Blizzards behalf, and that is if an Autocast spell's Autocast is turned off as the spell is being performed, and then turned back on, the cooldown will be completely ignored every time.
I have a DDS, this one to be exact: GUI Friendly Damage Detection
I'd really appreciate some help. =)
(I don't really quite know where to start...AGAIN, do note I am meaning to COMPLETELY rescript this. I am not asking for it to be FIXED.)
EDIT: This version of the trigger is for the MANUAL casting, as you need a different trigger for the Autocasting and the Manual casting because you have to pick up on them with different events.
EDIT2: I say this needs to be completely rewritten because I may just have to do it in JASS so it's a lot faster.
What this spell does:
When my hero attacks a unit, if this spell is used for that attack (Because it is autocast, but of course can be manually targeted) then I want mana to be taken away from that unit and deal damage equal to the amount of mana taken away.
The problem is, I'm having quite a lot of trouble because my triggers run very slowly. I will post the triggers I have in here, but do note that these need to be completely rewritten and that is why I am posting in these forums instead of the Trigger / Scripting forum.
-
Feedback Arrow Level 1 Manual
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Ranger
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Set FeedbackCasterP1 = (Casting unit)
- Set FeedbackTargetP1 = (Target unit of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Level of Feedback Arrows (Ranger) for (Triggering unit)) Equal to 1
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
-
Then - Actions
- Wait until ((FeedbackTargetP1 has buff Feedback Arrows ) Equal to True), checking every 0.30 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Mana of FeedbackTargetP1) Greater than or equal to 22.00
-
Then - Actions
- Unit - Set mana of FeedbackTargetP1 to ((Mana of FeedbackTargetP1) - 22.00)
- Unit - Cause FeedbackCasterP1 to damage FeedbackTargetP1, dealing 22.00 damage of attack type Spells and damage type Normal
-
Else - Actions
- Set ManaOfSpellcasterP1 = (Mana of FeedbackTargetP1)
- Unit - Set mana of FeedbackTargetP1 to 0.00
- Unit - Cause FeedbackCasterP1 to damage FeedbackTargetP1, dealing ManaOfSpellcasterP1 damage of attack type Spells and damage type Normal
- Set ManaOfSpellcasterP1 = 0.00
-
If - Conditions
- Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
Events
There is also a very abusable bug on Blizzards behalf, and that is if an Autocast spell's Autocast is turned off as the spell is being performed, and then turned back on, the cooldown will be completely ignored every time.
I have a DDS, this one to be exact: GUI Friendly Damage Detection
I'd really appreciate some help. =)
(I don't really quite know where to start...AGAIN, do note I am meaning to COMPLETELY rescript this. I am not asking for it to be FIXED.)
EDIT: This version of the trigger is for the MANUAL casting, as you need a different trigger for the Autocasting and the Manual casting because you have to pick up on them with different events.
EDIT2: I say this needs to be completely rewritten because I may just have to do it in JASS so it's a lot faster.
Last edited: