• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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

Status
Not open for further replies.
Back
Top