Hashtable tutorial somewhere?

krainert

Member
Reaction score
10
I've been pointed to the Table library, and I've stumbled upon gamecashe, but what I really need is a hashtable. The thing is, without auto-completion and a function list (this issue) it's really tedious to figure out how to get things done. Anybody know any tutorials?
 

krainert

Member
Reaction score
10
Yeah, but that's GUI. I need something that can act as a reference for the JASS hashtable functions.
 

krainert

Member
Reaction score
10
Thanks. Which data types are supported ("Save"/"Load"+DataType)? Also how do I use a non-integer as key? As I recall, GUI handled that using handle ID's.
 

Romek

Super Moderator
Reaction score
963
> Which data types are supported ("Save"/"Load"+DataType)?
Hashtable API

Just to clarify on TTE's answer, you must use an integer as the key. However, all handles (though you should only use agents) can be converted to integers using [ljass]GetHandleId[/ljass].
 

tooltiperror

Super Moderator
Reaction score
231
>Hashtable API
You can do stuff not supported here with typecasting. i.e. you can save a [LJASS]gamestate[/LJASS] I believe.
 

krainert

Member
Reaction score
10
Thanks. GetHandleID and the API should do.
One last question: Is there a way to check whether a parent key exists within a hashtable?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top