i am trying to make the bmap property of my panel be something different depending on the number at index[0] of an array. So i'm trying to create the string
bmap = item4500_bmap;
and make it execute inside of the panel definition.
Code:
var itemMerchSlot1[13] = [6200, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
string executeTestString = "bmap = item";
string item_num;
str_for_num(item_num,itemMerchSlot1[0]);
str_cat(executeTestString, item_num);
str_cat(executeTestString, "_bmap;");
PANEL merch_slot1_pan
{
pos_x = 200;
pos_y = 200;
layer = 2;
execute(executeTestString);
digits (30, 35, 2, _a4font, 1, slot2_var[1]);
on_click = slot_click_func;
flags = refresh, d3d;
}
the errors i get are...
< str_for_num(item_num,itemMerchSlot1[0]);>
merchant.wdl 9:0 Error(29): Keyword unknown str_for_num
< str_cat(executeTestString, item_num);>
merchant.wdl 10:0 Error(29): Keyword unknown str_cat
< str_cat(executeTestString, "_bmap;");>
merchant.wdl 11:0 Error(29): Keyword unknown str_cat
< execute(executeTestString);>
merchant.wdl 19:0 Error(212): Keyword unknown merch_slot1_pan execute
< }>
merchant.wdl 23:-1 Error(0): Syntax error - merch_slot1_pan