Try this to initialize a STRING or a BMAP.

Code:
function make_items()
{
item_name[0] = str_create("Potion");
item_bmap[0] = bmap_create("items/drink/potion.tga");
}



Please start counting with 0. If you have an array with a length of 100 - the first variable is always 0 and the last one 99. Sounds a little bit strange but do it to prevent memory leaks.


You don't have to use the directory every time if you want to create a new bmap.

Use
Code:
#define PRAGMA_PATH ".\\items\\drink";


at the beginning of your script. Then you can use every file inside this folder by typing just the name of it.

Code:
item_bmap[0] = bmap_create("potion.tga");



Regards,
HellThunder


Create your own JRPG and join our community: https://www.yrpgtoolkit.com