Valheim
0 of 0

File information

Last updated

Original upload

Created by

MofoMojo

Uploaded by

MofoMojo

Virus scan

Safe to use

Tags for this mod

About this mod

PlayerStats will show health data for all nearby players within a given range of you.

Requirements
Permissions and credits
Changelogs
PlayerStats will show health data for all nearby players within a given range of you. It allows you to configure various health and healthpercentage levels with customizable levels of criticality.

As for coloring, the most critical level wins. In other words, if your health is considered critical, but your health percentage is Medium, then stats are colored with critical coloring.

if your health percentage is critical, but your health level indicates it should be normal then the coloring will be critical.

Default color levels are from Normal to Critical:
* Green
* White
* Yellow
* Red

Various settings available

ShowPlayerStatsInRange 
Disables/Enables the mod

ShowPlayerStatsRadius
Sets the radius for showing players

PlayerStatLocation
Location on the screen to show the player stats (x,y) or (x%,y%).
Once in active session, you can also use the mouse cursor to drag and drop the stats wherever you want. 

PlayerStatToggleKey
Define a  toggle key to show/hide the stats

PlayerStatHealthPercentageMediumValue
HealthPercentage to be considered medium. Anything higher is normal

PlayerStatHealthPercentageWarningValue
HealthPercentage to be considered warning. Anything higher is medium

PlayerStatHealthPercentageCriticalValue
HealthPercentage to be considered critical.Anything higher is warning

PlayerStatHealthMediumValue
Health value to be considered medium. Anything higher is normal

PlayerStatHealthWarningValue
Health value to be considered warning . Anything higher is medium

PlayerStatHealthCriticalValue
Health value to be considered critical . Anything higher is warning

PlayerStatHealthNormalColor
Sets the color for playerstatus at Normal Level, https://docs.unity3d.com/Packages/[email protected]/manual/StyledText.html. Supported color names: aqua,black,blue,brown,cyan,darkblue,fuchsia,green,grey,lightblu,lime,magenta,maroon,navy,olive,orange,purple,red,silver,teal,white,yellow

PlayerStatHealthMediumColor
Sets the color for playerstatus at medium Level, can also use color hex tags, like FFFFFF, FF0000, etc,.

PlayerStatHealthWarningColor
Sets the color for playerstatus at warning Level

PlayerStatHealthCriticalColor
Sets the color for playerstatus at critical Level

PlayerStatUpdateInterval
How often to update. This value represents frames, so if you're getting 30 FPS and the value is 30, you'll update every second. The higher your FPS, the more often this will update. I.E. 90 FPS = 3 updates by default (90/30 = 3). You can reduce overhead by increasing the value, but if your value is 90 and you're getting 30FPS you'll get an update ever 3 seconds. Trade off between performance and quick updates. 

showingPlayerStats
Used by mod, don't modify

Many thanks to Aedenthorn's Clock Mod which inspired and assisted me in creating this mod and figuring out how to render to the gui as well as move the stats around and use fonts. 

Sample Config File
## Settings file was created by plugin Show PlayerStats In Range v1.0
## Plugin GUID: MofoMojo.MMShowPlayerStatsInRange
[LoggingLevel]
## Supported values are None, Normal, Verbose
# Setting type: LoggingLevel
# Default value: None
# Acceptable values: None, Normal, Verbose
PluginLoggingLevel = None
[PlayerStats]
## When enabled, shows Player Stats in UI in range. Criticality wins. I.e. if your health percentage is 100, but your health is 25 then health level is medium
# Setting type: Boolean
# Default value: true
ShowPlayerStatsInRange = true
## Sets the radius for finding players
# Setting type: Single
# Default value: 64
ShowPlayerStatsRadius = 64
## Location on the screen to show the player stats (x,y) or (x%,y%). Also, Use mouse cursor to change position in game
# Setting type: String
# Default value: 50%,3%
PlayerStatLocation = 2000,304
## Name of the font to use, possible values Norsebold, AveriaSerifLibre-Bold
# Setting type: String
# Default value: Norsebold
PlayerStatFontName = Norsebold
## Size of the font to use
# Setting type: Int32
# Default value: 24
PlayerStatFontSize = 24
## Key to use for toggling player stats. https://docs.unity3d.com/ScriptReference/KeyCode.html
# Setting type: String
# Default value: [
PlayerStatToggleKey = [
## HealthPercentage to be considered medium. Anything higher is normal
# Setting type: Single
# Default value: 75
PlayerStatHealthPercentageMediumValue = 75
## HealthPercentage to be considered warning. Anything higher is medium
# Setting type: Single
# Default value: 50
PlayerStatHealthPercentageWarningValue = 50
## HealthPercentage to be considered critical.Anything higher is warning
# Setting type: Single
# Default value: 25
PlayerStatHealthPercentageCriticalValue = 25
## Health value to be considered medium. Anything higher is normal
# Setting type: Single
# Default value: 30
PlayerStatHealthMediumValue = 30
## Health value to be considered warning . Anything higher is medium
# Setting type: Single
# Default value: 20
PlayerStatHealthWarningValue = 20
## Health value to be considered critical . Anything higher is warning
# Setting type: Single
# Default value: 10
PlayerStatHealthCriticalValue = 10
## Sets the color for playerstatus at Normal Level, https://docs.unity3d.com/Packages/[email protected]/manual/StyledText.html. Supported color names: aqua,black,blue,brown,cyan,darkblue,fuchsia,green,grey,lightblu,lime,magenta,maroon,navy,olive,orange,purple,red,silver,teal,white,yellow
# Setting type: Color
# Default value: 00FF00FF
PlayerStatHealthNormalColor = 00FF00FF
## Sets the color for playerstatus at medium Level, can also use color hex tags, like FFFFFF, FF0000, etc,.
# Setting type: Color
# Default value: FFFFFFFF
PlayerStatHealthMediumColor = FFFFFFFF
## Sets the color for playerstatus at warning Level
# Setting type: Color
# Default value: FFEB04FF
PlayerStatHealthWarningColor = FFEB04FF
## Sets the color for playerstatus at critical Level
# Setting type: Color
# Default value: FF0000FF
PlayerStatHealthCriticalColor = FF0000FF
## How often to update. This value represents frames, so if you're getting 30 FPS and the value is 30, you'll update every second.
# Setting type: Single
# Default value: 30
PlayerStatUpdateInterval = 30
## Used by mod, don't modify
# Setting type: Boolean
# Default value: true
showingPlayerStats = true


My mods and source, as well as personal mods not published, are available here:
MofoMojoValheimMods - Repos (visualstudio.com)