Jump to content

removeitem problems


ZEAL0TWARRIOR

Recommended Posts

So im making a spell that costs a certain item to cast. I have everything i want to do working mostly except for the removeitem fucntion in my script. Right now i can remove the item using game.getForm() but i would rather pass the information through using a form variable i create. problem is i dont know how to attach a property to a form object which tells it what item in the inventory to remove. Can anybody help?
Link to comment
Share on other sites

You only have to make a form property and then fill it with the item type you want to remove:

 

 

Form Property ItemTORemove auto

 

Then, you can call it in the RemoveItem function:

 

 

Game.GetPlayer().RemoveItem(ItemToRemove, 1)

 

 

Edit: Scratch the above, Form property will not work. Instead use a property depending on Item type, i.e. MiscObject or Weapon.

Edited by Ghaunadaur
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...