I posted this in my Global Script
function Arcus_UseInv()
{
if (player.ActiveInventory == iCcupfull)
if (player.HasInventory(iCcupfull))
player.Say("I thought you'd never ask.");
player.LoseInventory(iCcupfull);
player.AddInventory(iCcup);
}
but it does not matter which inventory item I use on him, it activates the script.
Try this?
function Arcus_UseInv()
{
if (player.ActiveInventory == iCcupfull) {
if (player.HasInventory(iCcupfull)) {
player.Say("I thought you'd never ask.");
player.LoseInventory(iCcupfull);
player.AddInventory(iCcup);
}
}
}
You shouldn't need both, since for it to be active inventory, you should already have it? but it should work if both conditions are met
perfect! thank you
Jojowl80, you do not need to test if player HasInventory if ActiveInventory is same item, because ActiveInventory can be only one of the items player has.