Item manager help

I want to make it so that the player always has 50 dynamic stone on them, and not more than 50 at a time, so whenever you use your 50 stone, you get another 50 stone.

1 Like

oh and if it helps this is a top down not a platformer

1 Like

Is it automatically refilled as soon as you use it?

1 Like

yeah its automatic refilled

1 Like

Let me get this straight, when you use even 1 dynamic stone you automatically get one back?

when you use all 50 then it gets refilled

let me do some experiment
Edit: do you get 50 dynamic stones when you start the game?

using inventory item manager, update a property called stoneAmount.
Create a property device named stoneAmount and make sure it’s a number-type property with starting value of 50 and player-scoped. Get a starting inventory device and set it to 50 dynamic stone.


Now, get a lifecycle for game start. Connect it to a trigger [event occurs → trigger trigger]. This trigger is in a trigger loop.[1]

Connect one of the triggers in the trigger loop to a checker[trigger triggered → check].
There will only be one check in the checker which is: does the property stoneAmount = 0. Connect the checker to a item granter [check passes → grant items]. Finally, make the item granter grant 50 dynamic stone.


One last thing, if this doesn’t work (bc im too lazy to test it) then a relay may be required, it being that lifecycle’s broadcast for the host.


  1. see more about trigger loops in guide ↩︎

5 Likes

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