Start by adding an Inventory Item Manager and choosing an item that gives you regen. Make sure that it does not show an alert when someone collects the item.
It should look like this.
Then, create a new block and copy the code shown here.
What this does is it sets a property Regen to true if a player has the item. But right now that property is in the global scope, which will make it so that the region affects everyone. To fix this, add a Property device with property name Regen, and set the scope to player, and the type to true/false(Boolean for those with programming expertise). It should look like this.
Next, add a repeater. Set the interval to however long you want between heals(1.0 is good), and the stop strategy to when receiving on a channel. Do not set the channel, this way it will not stop. It should look like this.
Then add a lifecycle device. We will be using the default settings, so don’t bother modifying it. Connect a wire from it to the repeater, like so:
Now create a trigger device and make it not visible in game, not triggerable by collisions, and set the active scope to player. Connect the repeater to the trigger, like this:
Next, create a new block in the trigger and copy this code:
Finally, add a Health Granter, set “Grant health when receiving on” to Heal, and set the other settings to your liking. The finished device should look like this:
[poll type=regular results=always chartType=bar]
How difficult was this guide?
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10