Author Topic: Trash Barrel (Cursed Items)  (Read 362 times)

Legacy_Kellogz

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Trash Barrel (Cursed Items)
« on: June 18, 2015, 11:50:49 am »


               

Just wondering if there's a way to script a simple trash barrel which will allow cursed items to be put in and destroyed. Was hoping it could be controlled more with tags of items so certain items that are marked cursed can be destroyed if a player wishes.



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Trash Barrel (Cursed Items)
« Reply #1 on: June 18, 2015, 02:34:43 pm »


               

Cursed items are unable to leave the inventory period. So a trash barrel really isn't going to work far as I can tell.


 


However you could probably create a widget in the player inventory that can be used to destroy items in their own inventory. For a PW it would need some restrictions to prevent people from destroying other widgets or important system items in player inventory, but its certainly viable.



               
               

               
            

Legacy_Tchos

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +0/-0
Trash Barrel (Cursed Items)
« Reply #2 on: June 18, 2015, 03:48:16 pm »


               

Since you mention controlling it with tags, yes.  You can have a list of tags that a usable trash barrel can check on use, and destroy any items on that list found in the player's inventory.  The barrel should just be a usable placeable in that case, not one with an inventory that you'd actually put the items into.  Instead it would fire a script on use that would either do the check/delete automatically, or fire a conversation that would do so.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Trash Barrel (Cursed Items)
« Reply #3 on: June 18, 2015, 10:21:11 pm »


               If for some reason you need to put the item in the trash container, you can use SetItemCursedFlag to remove the curse before moving it.