Import existing players rather than crash the server (#1)
Don't cause a server crash if playedTime data isn't found (#1)
A server-side lua implementation of Natural Character Growth And Decay - MW by Greywander, for TES3MP.
Place this repo into your
Add the following to
... -- DataManager needs to before NCGD, like this DataManager = require("custom/DataManager/main") require("custom/ncgd-tes3mp/main")
DataManager loads before this mod as seen above.
Optionally configure NCGD by editing the
CoreScripts/data/custom/__config_ncgdTES3MP.json file (see below).
OnPlayerSkillfires (among other events used).
convertexisting players to NCGD since I can't know what their starting attributes are.
Several commands are offered for recalculating data on the fly:
/ncgd health: Recalculates health (shortcut:
/ncgd recalcattrs: Recalculates all attributes from skill values (shortcut:
/ncgd reloadskilldata: Reloads NCGD's internal skill numbers from player data (shortcut:
/ncgd all: All of the above, in one
All commands have a configurable cooldown (see below).
Each attribute modifier is fully configurable. Look for the
modifiers key in the config file and edit to suit your needs. Default: what's in mwscript NCGD
An array of strings. Indicates which attributes are affected by a particular skill's increase. Default: what's in mwscript NCGD
String. Message that's displayed to players when they reach the server's attribute cap. The string is passed to
string.format() with an attribute name as an argument. Default:
Your %s is being limited by otherworldly forces...
Integer. The number of seconds between commands. Default:
Boolean. Enables a period of accelerated decay after death. Default:
Integer. The number of in-game hours accelerated decay caused by death will last. Default:
Integer. The default decay rate is multipled by this value after death. Default:
Boolean. Controls whether decay acceleration increases will be stacked if multiple deaths occur before the duration expires. Default:
Integer. The minimum level a skill can decay to. Default:
String. Set the rate of skill decay:
Integer. Control the weight of each decay level. Default:
Boolean. Force load the related event hook for this mod in the event another one has disabled custom hooks. Default:
String. Set the rate of attribute growth:
Integers. Control the weight of each growth level. Default:
Boolean. Set whether or not health modifications should be applied. Default:
Integer. Set whether or not a level cap should be applied,
0 to disable. Default:
String. Message that's displayed to players when they reach the level cap. Default:
Your level is being held back by otherworldly forces...
String. Message that's displayed to players when they try to use a command but lack the required rank. Default:
This command requires admin privileges!
Integer. The player rank that's required to use commands. Default: