I was wondering where I could find the stats for players and modify how they start.
When players spawn in (or even those who have already been on the server),
I would like to make it so that I can modify a ‘default’ stat such as their weight carry capacity, and add to it something like 20 or 30 points.
Can it be done so that it’d be a variable which adds to the default number, and also reads how many levels the player has added points into that stat.
That way it’d give them default + my variable + their added points, and everyone would benefit from this change.
Yes, what you’d want to do is duplicate the PlayerPawns blueprints (and reparent Male/Female PlayerPawns to your new base PlayerPawn). Then in your new base PlayerPawn blueprint, modify the Character Status Component values as you see fit! And in your mod’s PrimalGameData, set the male and female character blueprints to your new male/female character blueprints
There should be an array that uses the vanilla character status component inside of the playerpawn blueprint. Just replace the vanilla one with your new one
Yes, but…under what category is it in? For instance, searching for ‘health’ within the playerpawn blueprint doesn’t give me any value to modify. ‘Status’ doesn’t give me any character status component to override.
Edit: nevermind, stats can be modified within the Components section under PlayerCharacterStatus.
The problem with this method is that it overrides core data. So the mod has to be loaded in first priority or it won’t work. If the mod is deactivated or disabled, the player’s character will also disappear. Then you will hear a lot of grief from players on the server. It is a very dangerous way of modding.