• 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.

Custom Script Text Variables

Status
Not open for further replies.
Level 1
Joined
Apr 10, 2007
Messages
4
I'm attempting to create a game and I've found that for my purposes, using the custom script would be a lot faster for creating items. However, I'm having trouble filling the itemName index for my item, I've tried:

Code:
gv_itemList[lv_category][lv_itemID].lv_itemName = "Cotton Shirt";

Where lv_itemName is a Text variable, and I get an "Implicit cast not allowed" syntax message.

I did edited the item manually through the editor, however it does this:

Code:
gv_itemList[lv_category][lv_itemID].lv_itemName = StringExternal("Param/Value/69248BF5");

And I'm not sure how (or rather where) it assigns the Param/Value/#### information. Does anyone know what syntax I should use when assigning a string to a text variable?

Thank you in advance for your help. -JJ
 
Level 1
Joined
Apr 10, 2007
Messages
4
Thank You

Thank you for your quick reply, it worked perfectly. Do you know of a place where there is a list of all these functions (and possibly definitions for what they do)?

Thanks -JJ
 
Status
Not open for further replies.
Top