hi, I'm sure this question has popped up an untold number of times before, but for some reason searching the forums and the manual produce no results. :-[
anyway, how do I remove an item from the player inventory? I am trying to make it so that when the player uses an item on another item (I figured that out, atleast) a new item is created as a result,
for the exact part I have this script, this happens when the player uses an anti-rust solution on a rusty chainsaw to make it work again, what would I need to add to this script to make it work?
{
if (player.ActiveInventory==antirusti){
Display("alright, here goes nothing");
player.AddInventory(chainsaw);
Display("awesome, a clean chainsaw!");
}
else player.Say("I don't think I can de-rust that");
}
thanks
Look for Character.LoseInventory() (http://www.adventuregamestudio.co.uk/manual/Character.LoseInventory.htm) from the manual.
Quote from: Gilbot V7000a on Wed 20/02/2008 07:41:20
Look for Character.LoseInventory() (http://www.adventuregamestudio.co.uk/manual/Character.LoseInventory.htm) from the manual.
thanks, I knew it must be somewhere :)