- Joined
- Sep 24, 2014
- Messages
- 5
I am having trouble figuring out why this spell does not track the buff correctly, or increase the move speed of the unit. I dont really care about it being mui, but i did try to make it mui, and it didnt work so i tried this to make it simpler for me so i could figure out where i went wrong easier. Some of the triggers are done really oddly, like where I use if/then/else functions instead of just setting to level of UnstoppableBuffNumber and capping it at 5, but it doesnt work when done in a more logical sense, and this is just what im working with atm.
In conclusion, i really can't figure out why it doesnt work. I feel like it might be something really simple that I am glossing over, so im sorry if thats the case! The hero has all his negative buffs removed, and the always unstoppable (5) buff gets removed so the active trigger is working, but it doesnt do like half of the effects. The ability will have no overlap time and will only be used by one unit so mui doesnt really matter and i'll remove all the leaks when it works, but i just need to figure this out!
Thanks in advance!
-
Unstoppable Buff Tracker
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Level of Unstoppable for (Target unit of ability being cast)) Greater than 0
-
Actions
- Set UnstoppableCaster = (Target unit of ability being cast)
- Set UnstoppablePoint = (Position of UnstoppableCaster)
- Set UnstoppableBuffNumber = (UnstoppableBuffNumber + 1)
- Unit - Remove Unstoppable (1) buff from (Target unit of ability being cast)
- Unit - Remove Unstoppable (2) buff from (Target unit of ability being cast)
- Unit - Remove Unstoppable (3) buff from (Target unit of ability being cast)
- Unit - Remove Unstoppable (4) buff from (Target unit of ability being cast)
- Unit - Remove Unstoppable (5) buff from (Target unit of ability being cast)
- Unit - Create 1 DullahanDummy for (Owner of UnstoppableCaster) at UnstoppablePoint facing Default building facing degrees
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- UnstoppableBuffNumber Greater than or equal to 5
-
Then - Actions
- Unit - Set level of Unstoppable Buff for (Last created unit) to 5
-
Else - Actions
- Unit - Set level of Unstoppable Buff for (Last created unit) to UnstoppableBuffNumber
-
If - Conditions
- Unit - Order (Last created unit) to Orc Shaman - Bloodlust UnstoppableCaster
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation( udg_UnstoppablePoint )
-
Events
-
Unstoppable Active
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
- (Issued order) Equal to (Order(berserk))
-
Actions
- Unit - Remove Unstoppable (1) buff from (Triggering unit)
- Unit - Remove Unstoppable (2) buff from (Triggering unit)
- Unit - Remove Unstoppable (3) buff from (Triggering unit)
- Unit - Remove Unstoppable (4) buff from (Triggering unit)
- Unit - Remove Unstoppable (5) buff from (Triggering unit)
- Unit - Remove Negative buffs considered Magic or physical from (Triggering unit) (Include expiration timers, Exclude auras)
- Set UnstoppableCaster = (Triggering unit)
- Set UnstoppableLevel = (Level of Unstoppable for UnstoppableCaster)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- UnstoppableBuffNumber Greater than or equal to 5
-
Then - Actions
- Unit - Set UnstoppableCaster movement speed to ((Default movement speed of UnstoppableCaster) + 100.00)
-
Else - Actions
- Unit - Set UnstoppableCaster movement speed to ((Default movement speed of UnstoppableCaster) + (20.00 x (Real(UnstoppableBuffNumber))))
-
If - Conditions
- Set UnstoppableBuffNumber = 0
- Set UnstoppableDuration = (2.00 + (Real(UnstoppableLevel)))
- Trigger - Turn on Unstoppable Timer <gen>
-
Events
-
Unstoppable Timer
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Set UnstoppableDuration = (UnstoppableDuration - 0.10)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- UnstoppableDuration Less than or equal to 0.00
-
Then - Actions
- Unit - Set UnstoppableCaster movement speed to (Default movement speed of UnstoppableCaster)
- Trigger - Turn off (This trigger)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events
In conclusion, i really can't figure out why it doesnt work. I feel like it might be something really simple that I am glossing over, so im sorry if thats the case! The hero has all his negative buffs removed, and the always unstoppable (5) buff gets removed so the active trigger is working, but it doesnt do like half of the effects. The ability will have no overlap time and will only be used by one unit so mui doesnt really matter and i'll remove all the leaks when it works, but i just need to figure this out!
Thanks in advance!