• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Custom Script Text Variables

Status
Not open for further replies.

SilentStriker

S

SilentStriker

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