• 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.

[Trigger] Hashtables not working

Status
Not open for further replies.
Level 1
Joined
Nov 21, 2010
Messages
6
The init
  • Frosty Death Init
    • Evénements
      • Map initialization
    • Conditions
    • Actions
      • Table de hachage - Create a hashtable
      • Set SpellHash = (Last created hashtable)
The start.
  • Lich Frosty Death Start
    • Evénements
      • Unité - A unit Initie l'effet d'une compétence
    • Conditions
      • (Ability being cast) Egal Ã* (Q) Frosty Death (Neutre Hostile)
    • Actions
      • Table de hachage - Save (15.00 x (Real((Level of (Ability being cast) for (Triggering unit))))) as 1 of (Key (Target unit of ability being cast)) in SpellHash
      • Table de hachage - Save (5.00 x (Real((Level of (Ability being cast) for (Triggering unit))))) as 0 of (Key (Target unit of ability being cast)) in SpellHash
      • Table de hachage - Save Handle Of(Triggering unit) as 2 of (Key (Target unit of ability being cast)) in SpellHash
      • Groupe unité - Add (Target unit of ability being cast) to DamageOverTimeUnits
      • Déclencheur - Turn on FD Damage <gen>
  • FD Damage
    • Evénements
      • Temps - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si - Conditions
          • (Number of units in DamageOverTimeUnits) Supérieur Ã* 0
        • Alors - Actions
          • Groupe unité - Pick every unit in DamageOverTimeUnits and do (Actions)
            • Boucle - Actions
              • Set RemainingTime = (Load 0 of (Key (Picked unit)) from SpellHash)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Si - Conditions
                  • RemainingTime Supérieur Ã* 0
                • Alors - Actions
                  • Partie - Display to (All players) the text: Error 1
                  • Unité - Cause (Load 2 of (Key (Picked unit)) in SpellHash) to damage (Picked unit), dealing (Load 1 of (Key (Picked unit)) from SpellHash) damage of attack type Chaos and damage type Normal
                  • Table de hachage - Save (RemainingTime - 1) as 0 of (Key (Picked unit)) in SpellHash
                • Sinon - Actions
                  • Partie - Display to (All players) the text: Error 2
                  • Groupe unité - Remove (Picked unit) from DamageOverTimeUnits
                  • Table de hachage - Clear all child hashtables of child (Key (Picked unit)) in SpellHash
        • Sinon - Actions
          • Déclencheur - Turn off (This trigger)
So the error is that when my "fireball" based spell hits an enemy, it doesn't do the damage per second it's supposed to do. Any help?
 
Level 1
Joined
Nov 21, 2010
Messages
6
It doesn't work, but as you may see, I made it so it tells me error 1 or error 2 whether which is an error. It told me error 2, meaning there is no reason in the "If" part, only in the "else". Now, do I send you the map?
 
Status
Not open for further replies.
Top