0WN3D
New Member
- Reaction score
- 15
I jus installed GDD(Weep's GUI Damage Detection System)in my map.... I remade two skill that i previously use unit is attacked event.... Now the skill bugs up when any unit is being damage....
1st trigger:
This problem is that the effect happens on any unit being damaged...
2nd:
Same Prbolem as the 1st... It happens when any unit attacks the hero instead...
1st trigger:
Trigger:
- Heavy Blows
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (Life of GDD_DamageSource) Greater than or equal to (Life of GDD_DamagedUnit)
- (Level of Heavy Blows for GDD_DamageSource) Greater than or equal to 1
- Actions
- Trigger - Turn off (This trigger)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (GDD_DamageSource has buff Rage ) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing ((Real((Agility of GDD_DamageSource (Include bonuses)))) x (((Real((Level of Heavy Blows for GDD_DamageSource))) + 1.00) x 0.25)) 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)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (GDD_DamageSource has buff Rage ) Equal to False
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing ((Real((Agility of GDD_DamageSource (Include bonuses)))) x ((Real((Level of Heavy Blows for GDD_DamageSource))) x 0.25)) damage of attack type Hero and damage type Normal
- Else - Actions
- If - Conditions
- Special Effect - Create a special effect attached to the origin of GDD_DamagedUnit using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
- Special Effect - Destroy (Last created special effect)
- Trigger - Turn on (This trigger)
- Events
This problem is that the effect happens on any unit being damaged...
2nd:
Trigger:
- Shadow Strike
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (Level of Shadow Strike for GDD_DamageSource) Greater than or equal to 1
- Actions
- Trigger - Turn off (This trigger)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (GDD_DamageSource has buff Rage ) Equal to True
- Then - Actions
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing ((Real((Level of Shadow Strike for GDD_DamageSource))) x 10.00) damage of attack type Hero and damage type Normal
- Set Temp_Point = (Position of GDD_DamagedUnit)
- Set ShadowStrikeLoc = (Temp_Point offset by 50.00 towards ((Facing of GDD_DamagedUnit) + 180.00) degrees)
- Set ShadowStrikeLocIllu = (Position of GDD_DamageSource)
- Special Effect - Create a special effect at ShadowStrikeLocIllu using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move GDD_DamageSource instantly to ShadowStrikeLoc
- Unit - Order GDD_DamageSource to Attack GDD_DamagedUnit
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call RemoveLocation(udg_ShadowStrikeLocIllu)
- Custom script: call RemoveLocation(udg_ShadowStrikeLoc)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (GDD_DamageSource has buff Rage ) Equal to False
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 10) Less than or equal to (Level of Shadow Strike for GDD_DamageSource)
- Then - Actions
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing ((Real((Level of Shadow Strike for GDD_DamageSource))) x 10.00) damage of attack type Hero and damage type Normal
- Set Temp_Point = (Position of GDD_DamagedUnit)
- Set ShadowStrikeLoc = (Temp_Point offset by 50.00 towards ((Facing of GDD_DamagedUnit) + 180.00) degrees)
- Set ShadowStrikeLocIllu = (Position of GDD_DamageSource)
- Special Effect - Create a special effect at ShadowStrikeLocIllu using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move GDD_DamageSource instantly to ShadowStrikeLoc
- Unit - Order GDD_DamageSource to Attack GDD_DamagedUnit
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call RemoveLocation(udg_ShadowStrikeLocIllu)
- Custom script: call RemoveLocation(udg_ShadowStrikeLoc)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- Trigger - Turn on (This trigger)
- Events
Same Prbolem as the 1st... It happens when any unit attacks the hero instead...