Possible For Classes to only affect a subset of player stats

Hello, I have a system where players pay to upgrade their health permanently, as well as a number of other stats. To do this, I was utilizing the fort_character.SetMaxHealth method to do so.

Another part of my project is using mutator zone’s to change classes to players so they can be invulnerable. The problem I have is that any class change fully resets the max health of the character.

Is it possible to have classes only update portions of a player’s stats? My current design isn’t conducive to having a class for each possible stat upgrade

Well you could try to store the Added Max Health into a variable and readd this everytime you swap classes.

Or you could replace your mutator method, instead of changing class it could just call fort_character.SetVulnerability(false) :person_shrugging:

Ah, thanks, having the mutator device instead also use fort_character methods as opposed to class changing is a suitable workaround.

I had originally planned to have the mutator force refreshes on player attributes, but avoiding classes entirely appears to be the solution for me.

1 Like