AddInventory(string folder name)
Adds an object to the Player inventory.
function GrandadUse()
{
if(ObjectToUse()=="BarrelWater")
{
if(!SearchParameter("WateronGrandad"))
{
RemoveInventoryObject();
AddInventory("Barrel");
CreateParameter("WateronGrandad");
Grandad.Say("Tea!... hmmm... tea!");
}
}else if(ObjectToUse()=="BarrelTea")
{
if(!SearchParameter("TalkedwithGrandad"))
{
RemoveInventoryObject();
AddInventory("Barrel");
CreateParameter("TalkedwithGrandad");
Grandad.status="weak";
Grandad.Say("Spells, ");
}
}else{
Player.Say("It doesn't work with him.");
}
}
Get the latest version here.