Page 1 of 1

Call lua interfaces on game actions

Posted: Wed Feb 08, 2017 8:43 pm
by thislooksfun
I'm trying to make an inventory that requires keeping track of the items that were placed into it. Specifically, I need to add custom logic to the 'insert' and 'can_insert' methods of the LuaInventory instance, but as I just found out from the IRC, those are not actually called when the base game interacts with an inventory. Is there / would it be possible to add a way to track / override those base operations?a

If this already exists, I apologize, but I was unable to find it.

Thanks,
-tlf

Re: Call lua interfaces on game actions

Posted: Wed Feb 08, 2017 8:47 pm
by Klonan
thislooksfun wrote:I'm trying to make an inventory that requires keeping track of the items that were placed into it. Specifically, I need to add custom logic to the 'insert' and 'can_insert' methods of the LuaInventory instance, but as I just found out from the IRC, those are not actually called when the base game interacts with an inventory. Is there / would it be possible to add a way to track / override those base operations?a

If this already exists, I apologize, but I was unable to find it.

Thanks,
-tlf
Its not possible

Re: Call lua interfaces on game actions

Posted: Wed Feb 08, 2017 8:53 pm
by Rseding91
Klonan wrote:Its not possible
And is never going to be possible.