• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Item Type to Item Type as Integer from Hashtable

Status
Not open for further replies.
Level 10
Joined
Feb 22, 2008
Messages
619
Because item types are integers, I'm trying to use custom script to save variable "item_type" as "x" of "y" of "hashtable" (which is an item type saved as an integer).

This is my custom script:
  • Custom script: set udg_item_type = LoadInteger(udg_hashtable(udg_x,udg_y))
However, something is wrong with it, because I get the compile error "Expected a name"
All of those variables are saved, registered, whatever. "item_type" is an item type variable, "hashtable" is a hashtable, and "x" and "y" are integers.

Please help me locate the issue with my custom script. It's based on other custom scripts I've seen and used, but I'm not used to using them.
 
Status
Not open for further replies.
Top