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

Variables in Hashtables

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
  • Actions
    • Hashtable - Save Handle Of Location as Value of (Key whatisthevariableforthis) in HashTable
Yeah, what variable should i use? I want to be able to increase the variable with one every time i run the trigger, but i can't figure out what variable i should use.
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
I dont get what s your exact question but hashtables go like this.
You chose what to save from the falling menu. The first value is what you save. Ofc you can't Save unit as Player etc.
The second value represents X dimension of the hashtable and the third represent the Y dimension of the hashtable. (You cam imagin this as rolls and columns) (It might be the oposite The first is Y second is X but that doesn't change much)

For location it should go like

  • Hashtable - Save Handle Of SOMEPOINT as 25 of 45 in SOMEHASHTABLE
Where SOMEPOINT is Point variable
25 and 45 are just random imtegers I typed
SOMEHASHTABLE is the hashtable to which you want to save the point
 
Status
Not open for further replies.
Top