How to grant stuff when you consume a consumable?

so basically I have an energy based system and I want it so if you consume a energy can it reduces the time you lose energy
ex. Losing 25 energy per 0.25 seconds but after upgrade, you lose 25 per 0.50 seconds.
Anyway on how to do this?

(Game Overlay) Button Pressed —> (Checker) Run Check

(Checker) Check Passes —> (Item Granter) Grant Item (it should take away tho)

(Checker) Check Passes —> (Counter) Increment Counter

(Counter) Target Value Reached —> (Movement Meter) Activate/Deactivate Movement Meter

You’ll have to do this multiple times but it’ll cost a fair amount of memory.

I know this isn’t exactly consumables but you can use an infinite-checking repeater system with some properties and blocks combining the system above.

I can give you pictures if you want but it might be a little complicated so I made an easier version.

Basically this guide but instead of the vending machine use checkers

Is the game overlay always active?

Set the “Active On Game Start” setting to yes.

Also, the resolved tag is unused because we have solutions now.

(Don’t ask me how I got the post)

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.