Skip to content

CombatLib Extra 03: Custom Attributes

ThePix edited this page Feb 2, 2018 · 1 revision

You need version 2.1, release 02/Feb/18 for this.

You can use your own stats with CombatLib, but within certain constraints. You can add new stats and you can rename the existing ones. You cannot readily change what the existing ones actually do (obviously you are free to go into the code, and change it around how youlike, but that is way outside the scope of this tutorial).

Go to the Attributes tab of the Game object, and add a new attribute, "statnames". Set it to be a string dictionary. You can now add an entry for each stat. The first bit, the key, should be the name of the attribute Quest uses, the second bit, the value, should be the name you want to give it.

You could set it up like this:

charisma      Charisma
stamina       Toughness
intelligence  Magic prowess

This will add a new stat called "charisma", and will rename "stamina" and "intelligence". It will leave "strength" and "agility" as they are. Note that "Magic prowess" will do exactly the same as "intelligence" did.

CombatLib will set any new stat to zero unless you give a different value on the player object.

Clone this wiki locally