- Joined
- Sep 30, 2012
- Messages
- 31
I am using Bribe's DDS in order to perform damage modifications on incoming damage. However, I am running in to a problem where certain parts of the Damage Mod trigger are not running. In particular, the "Warrior Spirit" and "Damage Block" parts never run until the second trigger, "Piercing Taunt", is run for the first time (Arcane Barrier runs normally). After that trigger is run, the first trigger begins running normally for the rest of the game (as far as I can tell).
I have used Game Text Display to verify that the variables are exactly what they should be, but still the trigger does not run. Could there be something wrong with the local variables?
I have used Game Text Display to verify that the variables are exactly what they should be, but still the trigger does not run. Could there be something wrong with the local variables?
-
Damage Mods
-
Events
- Game - DamageModifierEvent becomes Equal to 1.00
- Conditions
-
Actions
- Custom script: local unit udg_unit = udg_DamageEventTarget
- Custom script: local unit udg_unit2 = udg_DamageEventSource
- Custom script: local integer udg_handle_num = GetUnitUserData(udg_unit)
- Custom script: local integer udg_handle_num2 = GetUnitUserData(udg_unit2)
- Custom script: local real udg_temp_real = 0
- -------- Multiplicative Mods First --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (unit has buff Arcane Barrier ) Equal to True
-
Then - Actions
- Set temp_real = ((0.05 + (0.05 x (Real((Level of Arcane Barrier for unit))))) x DamageEventPrevAmt)
- Set ArcaneBarrierStorage[handle_num] = (ArcaneBarrierStorage[handle_num] + temp_real)
- Set DamageEventAmount = (DamageEventPrevAmt - temp_real)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (unit has buff Warrior's Spirit ) Equal to True
-
Then - Actions
- Set DamageEventAmount = (DamageEventPrevAmt x (0.90 - (0.10 x (Real((Level of Warrior's Spirit for unit))))))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- -------- Additive Mods Last --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of unit) Equal to Royal Guard
- DamageEventType Equal to 0
- (Random real number between 0.00 and 1.00) Greater than or equal to 0.75
-
Then - Actions
- Set DamageEventAmount = (Max(0.00, (DamageEventPrevAmt - (Real((Strength of unit (Include bonuses)))))))
- Else - Actions
-
If - Conditions
-
Events
-
Piercing Taunt Init
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Piercing Taunt
-
Actions
- Set unit = (Triggering unit)
- Set handle_num = (Custom value of unit)
- Set PiercingTauntTimer[handle_num] = (2.00 + (0.50 x (Real((Level of Piercing Taunt for unit)))))
- Unit Group - Add unit to PiercingTauntGroup
-
Events