So I've implemented several different items to serve as light sources: candle, torch, and lantern. Each has a different light radius. Pressing the lantern on/off key specified in the script, I can cycle between all 3 if I have one of each in my inventory.
I'm trying to implement a common event that decrements a counter so the active light source item will burn out after a period of time. So if the torch is active for example, and it burns out, I want to remove it from the player's inventory. Is there some way to get the item or item id for the active light source?
I'm trying to implement a common event that decrements a counter so the active light source item will burn out after a period of time. So if the torch is active for example, and it burns out, I want to remove it from the player's inventory. Is there some way to get the item or item id for the active light source?