• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

WE Error?

Status
Not open for further replies.
Level 19
Joined
Feb 4, 2009
Messages
1,313
but blizzard was to lazy to make many variable types work in gui hashtables
however you can use a line of custom script:
  • Custom Script: call SaveAbilityHandle(udg_hashtable, udg_integer, udg_integer2, udg_ability)
since abilities are integer values you could also save them as that (but not in GUI again)
  • Custom Script: udg_integer = udg_ability
  • Hashtable - Save Integer integer as 0 of 0 in hashtable
might work, too

or if you need a 2d array with fixed padding of x you could save your stuff like this:
array[i*x+n] = value
where n is x-1

indexing systems are just better x) (except for the 1-2 cases where you really need more than 8000 array values or dynamic 2d-arrays)
 
Status
Not open for further replies.
Top