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