Aller au contenu

Photo

Trash Barrel (Cursed Items)


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Kellogz

Kellogz
  • Members
  • 1 messages

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.



#2
The Mad Poet

The Mad Poet
  • Members
  • 425 messages

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.



#3
Tchos

Tchos
  • Members
  • 5 079 messages

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.



#4
Proleric

Proleric
  • Members
  • 2 356 messages
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.