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