• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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.
Back
Top