• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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,243
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