# Possible For Classes to only affect a subset of player stats

**URL:** <https://forums.unrealengine.com/t/possible-for-classes-to-only-affect-a-subset-of-player-stats/1294342>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [September 13, 2023, 9:25pm UTC](https://forums.unrealengine.com/t/possible-for-classes-to-only-affect-a-subset-of-player-stats/1294342 "2023-09-13T21:25:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CGerritsSF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CGerritsSF](https://forums.unrealengine.com/u/CGerritsSF)\
**Post date:** [September 13, 2023, 9:25pm UTC](https://forums.unrealengine.com/t/possible-for-classes-to-only-affect-a-subset-of-player-stats/1294342/1 "2023-09-13T21:25:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 14, 2023, 9:52am UTC](https://forums.unrealengine.com/t/possible-for-classes-to-only-affect-a-subset-of-player-stats/1294342/2 "2023-09-14T09:52:09Z")

</div>

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)` 🤷

---

<div class="post-metadata">

**Author:** ![CGerritsSF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CGerritsSF](https://forums.unrealengine.com/u/CGerritsSF)\
**Post date:** [September 14, 2023, 3:50pm UTC](https://forums.unrealengine.com/t/possible-for-classes-to-only-affect-a-subset-of-player-stats/1294342/3 "2023-09-14T15:50:31Z")

</div>

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.
