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

Hashtable Problem in NewGen

Status
Not open for further replies.
Level 7
Joined
Jul 20, 2009
Messages
295
Hello,

For some reason, I cannot create this in NewGen:
Hashtable - Save 10.00 as 0 of (Key (Target unit of ability being cast)) in hashTable

Once picked 'Get Handle ID' and clicked on 'Handle' only the variable part appears. I opened the official wc3 editor and it showed both the variable part and the other non-variable part.

Why does this happen?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
You can do this in JNGP:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set unit = (Target unit of ability being cast)
      • Custom script: set udg_handle = udg_unit
      • Hashtable - Save 0.00 as 0 of (Key handle) in someHash
or
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set unit = (Target unit of ability being cast)
      • Custom script: set udg_integer = GetHandleId(udg_unit)
      • Hashtable - Save 0.00 as 0 of integer in someHash
 
Status
Not open for further replies.
Top