Hello AGS community,
I would to know if there is any way to modify and customize a core function such as AddInventory()
I am currently working on a GUI that displays the inventory status bar for a few second every time an item is received and that would help me greatly if I could customize this function.
Cheers !
No there is not, but for AddInventory you are in luck.
There is a special event triggered each time inventory is added are lost.
function on_event (EventType event)
{
if (event == eEventAddIneventory)
{
// ...
}
else if (event == eEventLoseInventory)
{
// ...
}
}
Cool, thank you very much, I'll try that right away :)