Stumped on items (complicated)

Before I describe the problems I can't find a way to navigate, I'll let you know that I'm using Falcao's ABS, I don't think this will have any impact on what I want to do.

Issue #1

Items that disappear over time, rather than with use. I want to create an oil lamp which uses lamp oil to create a light. I don't want players running around with 6 stacks of Lamp Oil x 99 in their backpacks. I want the lamp to consume oil when it is on at a static rate. What I've tried so far.
(Because I'm using Falcao's) I've created the lamp as a shield type item so it'll be accessible through the item hotbar. I've created a key item as well to act as the fuel source. With this key item I've tried using three variables to make it work.
Variable 1 is the overall amount of oil the player has
Variable 2 is an add variable when the player finds more oil it adds XYZ amount to variable 1
Variable 3 is a sub variable when the player has the lamp "on" to take away XYZ every 10-15 seconds from variable 1

It's all embedded in conditional branches. If Var 1 >= 0 then the light will come on if Var 1 == 0 then the light won't come on.
and If Switch: Lamp = on do Variable 3 / If Switch: Lamp = off do nothing.

It's kinda sorta working-ish... but not quite really at all. What I'd like is for the key item to tell the player (roughly) how long they can keep the lamp on, the description of the key item should say "You have enough oil for [XYZ] minutes"

I suppose it would be easier if 1 unit of Variable 1 was subtracted every 60 seconds, then all I'd have to do is call the value of Variable 1, if the player has 12 oil in the oil can then it should burn the lamp for 12 minutes, but that really doesn't appeal to me since it would require either limiting the amount of oil the player can find or requiring the lamp more often, both of those options have downsides. One makes the game more tedious, the other makes the game too predictable.



Issue #2:
Again, since I'm using Falcao's ABS I've added guns and ammo. Right now if I pick up x99 9mm ammunition it will say that I have 99 bullets in the item hotbox next to the gun. I want to limit this to something not ridiculous. No one's ever heard of a 9mm that holds 99 bullets,

Ideally what I'd like is for the player to be able to find and make magazines which can be loaded WITH the bullets which can then be used to make the gun work. This is somewhat similar to the first problem, but the main issue I'm facing is reloading.
Lets say the item stack maxes out at 12 instead of 99, and lets say each magazine holds 12 bullets. What ends up happening is the gun says it has 3 bullets which basically causes 9 bullets to vanish into the aether,.

I'm not even sure if this problem can be fixed tbh.
you're not going to achieve that by using game variables to account for what is essentially an item property.
simply redefine the item, add the new property in, and make it standard for all items (even if the item doesn't use it).

Original thread: https://forums.rpgmakerweb.com/threads/stumped-on-items-complicated.95917/