• 🏆 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!

[Trigger] New to Hashtables, integer returning as 0

Status
Not open for further replies.
Level 1
Joined
Mar 31, 2018
Messages
1
RIyy6

Imgur

First post here, sorry about linking images from imgur, i'm sure there's a much better way to go about this.

Anyway, the 2 pictures above are from a simple trigger I made for a healing spell.
I have the hashtable working (It's created at initialization so that's not the problem) for some aspects of the spell, but I just can't seem to get this Integer to work.
Also, ignore the event "timed elapsed 5 seconds", that was just for show.

I set the variable Integer to be = Load 1 of Key: Picked Unit in the Hash.
That Key is clearly saved as 1. So shouldn't the Integer = 1? Why does it return as 0?

I've seen other threads on the forums with my exact same trigger that apparently worked, so I don't know.
 
Status
Not open for further replies.
Top