ok that was indeed the situation.
I also had to make room in the executeTestSTring string in order to have it stop truncating there as well, and then i had to use the str_cpy for the first bit of text. if i tried using the str_cat, i got a bunch of beeping, and some freezing of the system.
here's my final code.
Code:
var itemMerchSlot1[13] = [4500, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
string executeTestString = "#40";
string item_num = "#5";
//panel for the merchant test
PANEL merch_slot1_pan
{
pos_x = 200;
pos_y = 200;
layer = 2;
bmap = empty_slot;
digits(205, 37, item_num, _a4font, 1, itemMerchSlot1[0] );
on_click = slot_click_func;
flags = refresh, d3d, VISIBLE;
}
////////////////////////////////////////
function makeSlot1()
{
str_cpy(executeTestString, "merch_slot1_pan.bmap = item");
str_for_num(item_num, itemMerchSlot1[0]);
str_cat(executeTestString, item_num);
str_cat(executeTestString, "_bmap;");
execute(executeTestString);
}
thanks for you help both of you.