Simple Proof of Concept for “Usable/Clickable Item” giving the player items, using UI.Notify(str) and a second scroll giving the Player a buff.
As requested after the original post here
To try it out just run the mod and run to the corpse (that everyone knows from the Good Looking mod).
The heart of this is Lua to add a function to an empty variable that is being called once a monster, spawned by the item’s skill, dies.
I tried to add comments to most of the lua code, but dont consider them as a full “how to lua guide”… .
As a little bonus it also includes a function to give multiple (different) items to the player.
Use it as you like, I dont care if you change the variable/table/function names.
Let me know if I messed something up, removing it from the rest of my mods’ scripts. Ill probably add more to this post when I have more time for it.