So. Vitality is kind of like an extension of Lifesteal, see here:How to Make Lifesteal in Gimkit [🟩]. Vitality is where the less lives you have, the more health you have. For example, if you have 10 lives left, you can be knocked out in a single hit. If you have 1 life left, you may have full health. So this is how you can do it in Gimkit…
List of Materials
Lifecycle x1
Checker x1
Team Switcher x1
Item Granter x1
Health Granter x1
Inventory Item Manager x1
Starting Inventory x1
Property x1
Wire Repeater x1
Trigger x1
Block Code x70 (if someone can concantate this, that would be nice. I’ve never read much into concantation.)
Computer x 1
Person x 1
Testing Only: Laser x1, Text x1
Laser is to knockout player, text is a debug screen.
List of Steps:
- Go into game settings, and configure your options of health like so. You can configure your settings later on, but you may have to change the rest of the things in the guide to comform with your custom settings.
- Place down a starting inventory. For this guide, golden seeds will be the amount of lives left. Set the amount of golden seeds to 10.
- Set down a lifecycle and a checker. Set the lifecycle to track players being knocked out, and set the checker to check if the amount of seeds =0. Wire the lifecycle to the chekcer:
On Player Knocked out---------Run Check. - Place down a team switcher and an item granter. Set the item granter to grant -1 golden seeds. Make the team switcher switch the player to spectator.
Wire the Checker to the Team Switcher: On Check Pass----------Switch Player
Wire the Checker to the item granter: On Check Failed-----------Grant Item.
Your device should now look like this:
- Next, place down an inventory item manager and a property. Set the property scope to player, and name it something (named mine goldenseed) After, set your inventory item manager to track golden seeds and have it update the property goldenseed.
- Place down a wire repeater and a trigger. Set your wire repeater to a delay of 0.5, and configure your trigger (player collision off, scope to player, not visible in game, all that stuff)
- Go into your trigger and copy this code
- Connect the lifecycle to the wire repeater, and the wire repeater to the trigger.
- The Last Step: Place down a health granter, set it to grant health when receiving on lifeleft, set it to grant health and shield, and set the amount of health it grants to the amount of maximum health in game divided by the amount of lives you are giving the player.
You should be done. Test it out!
Your entire device should look like this!
Thank you for reading through all of this, and have a nice day!
Please give me any feedback you have, thank you!