[BUG?] The party hook "onPickUpItem" does not trigger...
[BUG?] The party hook "onPickUpItem" does not trigger...
The party hook "onPickUpItem" does not trigger on items in the inventory, is there another hook to use for when picking up items from the inventory?
- Edsploration
- Posts: 104
- Joined: Wed Sep 19, 2012 4:32 pm
Re: [BUG?] The party hook "onPickUpItem" does not trigger...
I was just facing a similar problem myself. I'm trying to create a cursed item which cannot be removed from an inventory spot. So far my only option is to continuously check all inventory spots and the mouse to catch the player in the act of removing it, delete the one moved by the player, and spawn a new one into the inventory spot. In the end this method looks more like a bug than intended behavior.
Hooks that tie into inventory would be extremely nice for custom gameplay type mods. Same for the map screen... if any lua could access it that is. I'm still learning what's possible so I could be wrong about these limitations.
Hooks that tie into inventory would be extremely nice for custom gameplay type mods. Same for the map screen... if any lua could access it that is. I'm still learning what's possible so I could be wrong about these limitations.
Open Project -> Community FrankenDungeon: viewtopic.php?f=14&t=4276
Re: [BUG?] The party hook "onPickUpItem" does not trigger...
Indeed, cursed items, usable items that one shouldn't be able to put away etc..
A lot more uses for items that cant be removed from the inventory, then items that cant be picked up at all..
And checking if the player is trying to remove it all the time is a very costly and ugly workaround that shouldn't be necessary.
I hope they will fix this soon
A lot more uses for items that cant be removed from the inventory, then items that cant be picked up at all..
And checking if the player is trying to remove it all the time is a very costly and ugly workaround that shouldn't be necessary.
I hope they will fix this soon