- Joined
- Sep 9, 2009
- Messages
- 658
Hi. I wanted to enhance a bolt spell for a boss and made this trigger.
Without the wait, it works fine. But I want the bolt to hit before it does the custom damage so I searched around and found some similar problems. I tried adding a wait, having a separate periodic trigger check for the buff and still no dice.
It worked fine as it is when I first tested the map but after doing edits to the map in general, it stopped working altogether. I also checked out the projectile systems in here and none of them really suited my needs. Anyone got any ideas on how to fix this?
-
Banefire
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Banefire
-
-
Actions
-
Custom script: local unit udg_C
-
Custom script: local unit udg_T
-
Custom script: local location udg_L
-
Custom script: local real udg_D
-
Set C = (Triggering unit)
-
Set T = (Target unit of ability being cast)
-
Set D = (3000.00 x (Real((Level of Banefire for C))))
-
Wait until ((T has buff Dummy Buff ) Equal to True), checking every 0.10 seconds
-
Set L = (Position of T)
-
Special Effect - Create a special effect attached to the origin of T using Flame Burst.mdx
-
Special Effect - Destroy (Last created special effect)
-
Unit - Create 1 Dummy for (Owner of C) at L facing Default building facing degrees
-
Unit - Add Soul Burn (Banefire) to (Last created unit)
-
Unit - Set level of Soul Burn (Banefire) for (Last created unit) to (Level of Banefire for C)
-
Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn T
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Cause C to damage T, dealing D damage of attack type Chaos and damage type Universal
-
Custom script: call RemoveLocation (udg_L)
-
-
It worked fine as it is when I first tested the map but after doing edits to the map in general, it stopped working altogether. I also checked out the projectile systems in here and none of them really suited my needs. Anyone got any ideas on how to fix this?