Sorry for the late reply. Here's one of the functions. I have this section with personality cartridges which can be switched between a couple robots which makes the robots go through the same speeches based on the cartridge. This is the shortest such function. Commenting all of these out fixed the unknown character error, but still gave me the zero content file. I've already got what I need out of that add-on, but I hope this helps!
Code: ags
function cartclose(GUI* closeme, CartLocations ct, Character* bot)
{
if (!chk_flag(l4tracker, l4botboom) && (which_cart(ct) == 0))
{
bot.Say("Personality cartridge[not found![ [ ");
bot.Say("Defaulting to[self-destruct mode in...[ [ ");
bot.SayBackground("10...");
cyclecount2 = 10;
l4tracker = add_flag(l4tracker, l4botboom);
cyclecount = 0;
return;
}
if (chk_flag(l4tracker, l4botboom))
{
cOva.Say("I better just put this back first,[rather than try to outrun an explosion[in heels.");
cOva.ActiveInventory = carts[carttaken].inv;
closeme.Visible = true;
mouse.Mode = eModeUseinv;
closeme.ProcessClick(closeme.X+1, closeme.Y+1, eMouseLeft);
}
closeme.Visible = false;
}