ISSUES MAKING A GAMEMOD/WORKSHOP

Hey there my problem is that i can not add max health when damage is done as i tried it on my other account, i can send my gamecode Z8D40. Any help is appreciated. Z8D40

So, you want to increase a players max health when they deal damage?

Here’s a code: 1S1CS

Feel free to ask any question about how it works if needed :slight_smile:
(The health increase in the Base game settings are kinda important, as it stops players current health from resetting every time their max health is modified)

1 Like

@BuyBoomStick Thank you very much! Didnt figur out the thing with base health until you explained it:) I guess there isnt a way to change it through workshop
but
is it possible to make the health reset to normal after dying? It would make it more balanced

Edit: I tried using a when dead condition and set maxhealth action but as soon as i damage the enemy it resets to the health before i died

Make a rule that triggers when player died (first drop down menu in the rule)
Then have it run an action to set max health of event player to what you want it reset to.

@BuyBoomStick Yes i tried to set maxhealth to 100 and divided it by five to make the normal base health of the player when they die, and as assumed it works.
But unfortunately it resets to the health before the death as soon as i shoot on an enemy. I am almost done with the making of the gamemod. I got the code. If you have time to check it look under “reset when dies” rule. The code is VVCHN

The health resets because the variable we use to control the health is still modified.

In the player died rule.
First set player variable A to 20, then set max health to player variable A.