[BUG?] The party hook "onPickUpItem" does not trigger...

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Lilltiger
Posts: 95
Joined: Sun Sep 16, 2012 1:12 am

[BUG?] The party hook "onPickUpItem" does not trigger...

Post by Lilltiger »

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?
User avatar
Edsploration
Posts: 104
Joined: Wed Sep 19, 2012 4:32 pm

Re: [BUG?] The party hook "onPickUpItem" does not trigger...

Post by Edsploration »

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.
Open Project -> Community FrankenDungeon: viewtopic.php?f=14&t=4276
Lilltiger
Posts: 95
Joined: Sun Sep 16, 2012 1:12 am

Re: [BUG?] The party hook "onPickUpItem" does not trigger...

Post by Lilltiger »

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 :)
Post Reply