• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] Damage Engine simple triggers have stopped working

Status
Not open for further replies.

KPC

KPC

Level 7
Joined
Jun 15, 2018
Messages
178
So far I have used damage engine 5.7.2. I changed it to 5.9.0. I noticed my triggers stopped working. Can someone please tell me why? Or say how to do it right now?
  • DH Splash Damage
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • IsDamageAttack Equal to True
      • (Unit-type of DamageEventSource) Equal to Demon Hunter (Demon Form)
      • (DamageEventTarget belongs to an enemy of (Owner of DamageEventSource).) Equal to True
    • Actions
      • Set VariableSet FullDamage = (DamageEventAmount x 0.50)
      • Set VariableSet MediumDamage = (DamageEventAmount x 0.25)
      • Set VariableSet SmallDamage = (DamageEventAmount x 0.25)
      • Set VariableSet TempPoint8 = (Position of DamageEventTarget)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 250.00 of TempPoint8.) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
              • (Picked unit) Not equal to DamageEventTarget
              • ((Picked unit) belongs to an enemy of (Owner of DamageEventSource).) Equal to True
            • Then - Actions
              • Unit - Cause DamageEventSource to damage (Picked unit), dealing SmallDamage damage of attack type Chaos and damage type Normal
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 150.00 of TempPoint8.) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
              • (Picked unit) Not equal to DamageEventTarget
              • ((Picked unit) belongs to an enemy of (Owner of DamageEventSource).) Equal to True
            • Then - Actions
              • Unit - Cause DamageEventSource to damage (Picked unit), dealing MediumDamage damage of attack type Chaos and damage type Normal
            • Else - Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 50.00 of TempPoint8.) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
              • (Picked unit) Not equal to DamageEventTarget
              • ((Picked unit) belongs to an enemy of (Owner of DamageEventSource).) Equal to True
            • Then - Actions
              • Unit - Cause DamageEventSource to damage (Picked unit), dealing FullDamage damage of attack type Chaos and damage type Normal
            • Else - Actions
      • Custom script: call RemoveLocation(udg_TempPoint8)
  • Killmaim
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • IsDamageAttack Equal to True
          • (DamageEventTarget belongs to an enemy of (Owner of DamageEventSource).) Equal to True
          • (DamageEventTarget is A structure) Equal to False
          • (DamageEventSource is A Hero) Equal to True
          • (DamageEventSource has an item of type Killmaim) Equal to True
        • Then - Actions
          • Set VariableSet HPStealAmount = (DamageEventAmount x 0.50)
          • Set VariableSet HPStealAmountInt = (Integer(HPStealAmount))
          • Set VariableSet HPStealAmount = (Real(HPStealAmountInt))
          • Unit - Set life of DamageEventSource to ((Life of DamageEventSource) + HPStealAmount)
          • Special Effect - Create a special effect attached to the origin of DamageEventSource using Abilities\Spells\Undead\VampiricAura\VampiricAuraTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
 

Uncle

Warcraft Moderator
Level 63
Joined
Aug 10, 2018
Messages
6,457
Maybe some of the Variables have lost their Types during the change. When you scroll through your list of Variables you may find some with blank Variable Types that need to be reset.

It's a nasty bug because normally if you change the Type of a Variable that's in use it will warn you beforehand and disable all of the triggers using that Variable, but in this case everything appears to be fine until you actually check yourself.
 
Status
Not open for further replies.
Top