removing items from player inventory?

Started by shinymans, Wed 20/02/2008 07:11:21

Previous topic - Next topic

shinymans

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?
Code: ags

{  
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

Gilbert



SMF spam blocked by CleanTalk