On my new game I would like to know the script so that I can check multiple items with if (player.ActiveInventory ==). This is the script i've used but I need some help.
function iSouthernwood_UseInv()
{
if (player.ActiveInventory == iSouthernwood){
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iVial)
player.LoseInventory(iSouthernwood);
player.LoseInventory(iVial);
player.AddInventory(iAConcoct);
Display ("Mixed the Southernwood in the Vial to create an Appleringie Concoction");
}
else Display ("You need 10 Southernwood herbs to produce an Appleringie Concoction!")
}
Thanks in advance
function iSouthernwood_UseInv()
{
if (player.ActiveInventory == iSouthernwood){
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iSouthernwood)
(player.ActiveInventory == iVial)
player.LoseInventory(iSouthernwood);
player.LoseInventory(iVial);
player.AddInventory(iAConcoct);
Display ("Mixed the Southernwood in the Vial to create an Appleringie Concoction");
}
else Display ("You need 10 Southernwood herbs to produce an Appleringie Concoction!")
}
Thanks in advance