- Joined
- Feb 17, 2008
- Messages
- 67
Hello these past few days i have been trying to understand the basic mechanics of making MUI spells.I have read the hashtable guide provieded by wyrmlord and Jazztastic and i have a few basic questions.
I have read that every variable declared via trigger editor > variables is a global variable thus using 2 variables declared in this way in 2 basic functions can cause 1 set to be overwritten.
My questions are :
- how dose one solve this problem with overwriting variables for example in a MUI function that picks all units in a group and for every picked unit data is imported from an hashtable and saved in variables (global variables)... won't this cause just 1 set of information,probably latest added in the group, to be used for all of the picked units from the group?
I'd like to know how most people deal with this problem..
-and about hashtables when saving an handle key ...if one saves a handle as a key in one hashtable(1) will the key be the same if the same handle be saved in a diffrent hashtable(2)? ..like key_handle (hash1) == key_handle (hash2)
-i presume when saving variables under key handles in hashtables in order to retrieve them latter the point of the key is to be unique.. if units can be identified uniquely (key (event..triggering unit)) are positions/points unique enough?
Hope i was clear enough ..thanks for reply in advance
I have read that every variable declared via trigger editor > variables is a global variable thus using 2 variables declared in this way in 2 basic functions can cause 1 set to be overwritten.
My questions are :
- how dose one solve this problem with overwriting variables for example in a MUI function that picks all units in a group and for every picked unit data is imported from an hashtable and saved in variables (global variables)... won't this cause just 1 set of information,probably latest added in the group, to be used for all of the picked units from the group?
I'd like to know how most people deal with this problem..
-and about hashtables when saving an handle key ...if one saves a handle as a key in one hashtable(1) will the key be the same if the same handle be saved in a diffrent hashtable(2)? ..like key_handle (hash1) == key_handle (hash2)
-i presume when saving variables under key handles in hashtables in order to retrieve them latter the point of the key is to be unique.. if units can be identified uniquely (key (event..triggering unit)) are positions/points unique enough?
Hope i was clear enough ..thanks for reply in advance