- Joined
- May 17, 2007
- Messages
- 106
Bug with Unit Group Variable
Hi there
I want to ask you guys, my ability Blazing Helberd is DoT passive by trigger
but when playing trigger won't work somehow
from my thought it's come from 1 of my unit (other DoT work except this hero)
*Note*
Blazing Helberd base on Slow Poison, stackable Attack speed (well, it's won't stacking too even checked in Stack Flag)
-------------
when select this hero it's almost ruin all Unit Group Variable
or anyone know that custom scripts can make Unit Group Variable become buggy? or something that make it bug..
thank you very very much
Hi there
I want to ask you guys, my ability Blazing Helberd is DoT passive by trigger
but when playing trigger won't work somehow
from my thought it's come from 1 of my unit (other DoT work except this hero)
*Note*
Blazing Helberd base on Slow Poison, stackable Attack speed (well, it's won't stacking too even checked in Stack Flag)
-------------
-
Blazing Helberd Effect
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Blazing Helberd
-
Actions
- Unit - Add Blazing Helberd Effect to SamNogard
- Trigger - Turn on Blazing Helberd Start <gen>
- Trigger - Turn on Blazing Helberd Damage <gen>
- Trigger - Turn off (This trigger)
-
Events
-
Blazing Helberd Start
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Attacking unit) Equal to SamNogard
- (Level of Blazing Helberd for SamNogard) Greater than 0
-
Actions
- Unit Group - Add (Attacked unit) to ZAUnitGroup18
-
Events
-
Blazing Helberd Damage
-
Events
- Time - Every 0.90 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in ZAUnitGroup18 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ((Picked unit) has buff Blazing Helberd (Stacking)) Equal to True
- ((Picked unit) has buff Blazing Helberd (Non-stacking)) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit - Cause SamNogard to damage (Picked unit), dealing ((6.25 x (Real((Level of Blazing Helberd for SamNogard)))) + (((Real((Strength of SamNogard (Include bonuses)))) x (Random real number between 0.30 and 0.50)) x ((Real((Level of Blazing Helberd for SamNogard))) x 0.10))) damage of attack type Hero and damage type Normal
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in ZAUnitGroup18 and do (Actions)
-
Events
when select this hero it's almost ruin all Unit Group Variable
-
Dracomancer Guardian
-
Events
- Unit - A unit Sells a unit
-
Conditions
- (Unit-type of (Sold unit)) Equal to |cffFFCC00Dracomancer Guardian|r
-
Actions
- Set SamNogard = (Sold unit)
- Camera - Set the camera bounds for (Owner of (Buying unit)) to (Playable map area)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Buying unit)) Equal to Player 1 (Red)
- (Owner of (Buying unit)) Equal to Player 2 (Blue)
- (Owner of (Buying unit)) Equal to Player 4 (Purple)
- (Owner of (Buying unit)) Equal to Player 5 (Yellow)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set ABTempRevivePoint = (Random point in Hero Spawn T1 <gen>)
- Unit - Move (Buying unit) instantly to ABTempRevivePoint
- Unit - Move (Sold unit) instantly to ABTempRevivePoint, facing Default building facing degrees
- Unit - Create 1 |cff00ff00Faerie Dragon for (Owner of SamNogard) at ABTempRevivePoint facing Default building facing degrees
- Set DracomancerSummon = (Last created unit)
- Hero - Add 2600 experience to DracomancerSummon, Hide level-up graphics
- Unit - Hide DracomancerSummon
- Hero - Disable experience gain for DracomancerSummon
- Else - Actions
-
If - Conditions
- Trigger - Add to Mysterious Random Aura Buff <gen> the event (Time - Every (25.00 - ((Real((Level of Mysterious Random Aura for DracomancerSummon))) x 0.50)) seconds of game time)
- Set ABTempRevivePoint = (Position of (Sold unit))
- Unit Group - Add SamNogard to ItemPickerGroup
- Unit Group - Add DracomancerSummon to ItemPickerGroup
- Camera - Pan camera for (Owner of (Buying unit)) to ABTempRevivePoint over 0.00 seconds
- Selection - Select (Sold unit) for (Owner of (Buying unit))
- Custom script: call RemoveLocation(udg_ABTempRevivePoint)
- Trigger - Turn on Destinal died <gen>
-
Events
or anyone know that custom scripts can make Unit Group Variable become buggy? or something that make it bug..
thank you very very much
Last edited: