• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Damage system problem

Status
Not open for further replies.
Level 5
Joined
Feb 18, 2016
Messages
96
Well this is actually weird but i cannot modify a variable properly and i cannot find the reason

This is a custom spell i made from the damage engine system
The trigger should make more damage as far as 2 units go from each other

  • Dmg
    • Events
      • Game - DamageModifierEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Set APOINTTEMP = (Position of Peasant 0001 <gen>)
      • Set TempLoc = (Position of Priest 0019 <gen>)
      • Set QCatMeleDMG[81] = ((Distance between APOINTTEMP and TempLoc) / 10.00)
      • Game - Display to (All players) the text: (String(QCatMeleDMG[81]))
      • Set DamageEventAmount = (DamageEventAmount + (QCatMeleDMG[81] x DamageEventAmount))
      • Game - Display to (All players) the text: (String(DamageEventAmount))
As you can see it is very simple but ,for some reason, incompatible with the system

Could someone help me with this?



Both maps are in the attachments file
 

Attachments

  • Damage Engine v3.6.w3x
    44.9 KB · Views: 35
  • Damage Engine v3.6 -Spell.w3x
    45.2 KB · Views: 33
Status
Not open for further replies.
Top