Why doesn't my item combining script work?
It always says 'This cannot be combined.'
Sierra-Style Environment
Please advise how to solve the problem.
Thank you
Code: ags
It always says 'This cannot be combined.'
Sierra-Style Environment
Please advise how to solve the problem.
Thank you
function iVetev_UseInv(InventoryItem *usedItem, CursorMode mode)
{
if (usedItem == iGumicka)
{
player.Say("I conennected a gumicka and a vetev. Now I have a prak.");
player.InventoryQuantity[iVetev.ID]--;
player.InventoryQuantity[iGumicka.ID]--;
player.AddInventory(iPrak);
}
else
{
player.Say("This cannot be combined.");
}
}
function iGumicka_UseInv(InventoryItem *usedItem, CursorMode mode)
{
if (usedItem == iVetev)
{
player.Say("I conennected a gumicka and a vetev. Now I have a prak.");
player.InventoryQuantity[iVetev.ID]--;
player.InventoryQuantity[iGumicka.ID]--;
player.AddInventory(iPrak);
}
else
{
player.Say("This cannot be combined.");
}
}