Hashtables

hgkjfhfdsj

Active Member
Reaction score
55
is it possible to acquire variable handles?? eg
Trigger:
  • Actions
    • Set a = (Load 0 of (Key Handle) from Hashtable)
    • Set b = (Load 1 of (Key (Picked unit)) from Hashtable)
    • Hashtable - Save (1) as 0 of (Key Handle) in Hashtalbe
    • Hashtable - Load 0 of (Key Handle) from hashtable


- can 'handles' be unit variables?.. i cant seem to find the drop list for unit variables
- is there anyway to convert units to handles?

Thanks
 

foodflare

You can change this now in User CP.
Reaction score
32
if you're trying to save a unit's handle into a hashtable save unit handle is between save item handle and save ability handle. if not then idk
 

Xbing

New Member
Reaction score
0
i have absolutely no idea how hashtables work... perhaps someone could shed some light?
 

Executor

I see you
Reaction score
57
To use hashtables is really simple.

Basically you save a variable with 2 keys. These keys are integers.

Code:
SaveInteger(Hashtable, Key1, Key2, someInteger)

You also load it again with the 2 keys
Code:
someInteger = LoadInteger(Hashtable, Key1, Key2)

A great usage of hashtables is attaching data.

Code:
SaveUnit(Hashtable, GetUnitId(someUnit), 0, someDummyUnit)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top