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.
oh and if it helps this is a top down not a platformer
Is it automatically refilled as soon as you use it?
yeah its automatic refilled
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.
see more about trigger loops in guide ↩︎
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.