- Joined
- Apr 7, 2012
- Messages
- 201
- Reaction score
- 38
- First Language
- German
SGS Stats v1.2
by MagicMagor
Features
This plugin allows you to define additional stats for your actors and enemies. These stats can be then used in damage formulas or elsewhere. Stats are influenced by states, equipment and classes. They automaticly increase when an actor levels up.
How to Use
A complete explanation of all parameters and notetags can be found in the plugins help. This is just a small explanation to get you started.
You define the stats by entering a list of stat-names in the plugin parameter "Names". Seperate names with a comma. These names are case-sensitive.
Afterwards you can use the following notetag on Actors, Classes, Enemies, Weapons, Armors and States
This defines the base-value of the stat 'name' to be value. The value must be a number and name must be one of stat-names defined in the parameters.
To retrieve the stat-value of an actor or enemy the following javascript function can be used
'battler' is a Game_Actor or Game_Enemy object, 'name' is the name of the stat. Please note that the name has to be enclosed in ''. For example:
This would return the strength-value of an actor or enemy.
A simpler way is to use the stat as a property (requires v. 1.2):
The value of a stat on an actor or enemie is further modified by active states, the actors class and equipment. The exact formula can be changed in the plugin parameters. It is also possible to use a different formula for enemies.
To change the value of a stat you can use
This will increase the stat 'name' of the battler by 'value'. Use negative values to decrease the stat.
A stat can automaticly increase when an actor levels up. The amount it increases can be defined by this notetag:
Like with the normal value, states, class and equipment affect the level-increase of the stat.
Additional features
Other things to note
The defined stats do nothing on their own. How they are used are up to you. They can be used inside damage formulas, can affect other stats/parameter using other plugins or simply used inside events.
In particular the stats are not displayed anywhere on the normal GUI. You would have to use another plugin, to display them on the status menu.
License:
Free for all games in MV (free and commercial). Credit to MagicMagor must be given inside the game or a credits-file. Modification to the script is allowed, but the modified script can not be distributed. Distributing the script via the game, that uses it is the only exception for this.
Download
SGS Stats (v1.2)
Changelog
1.0 - Initial Release
1.1 - Fixed invisible enemies
1.2 - Adapted to new plugin manager and added simple properties for new stats
by MagicMagor
Features
This plugin allows you to define additional stats for your actors and enemies. These stats can be then used in damage formulas or elsewhere. Stats are influenced by states, equipment and classes. They automaticly increase when an actor levels up.
How to Use
A complete explanation of all parameters and notetags can be found in the plugins help. This is just a small explanation to get you started.
You define the stats by entering a list of stat-names in the plugin parameter "Names". Seperate names with a comma. These names are case-sensitive.
Afterwards you can use the following notetag on Actors, Classes, Enemies, Weapons, Armors and States
Code:
<SGS Stat: name=value>
This defines the base-value of the stat 'name' to be value. The value must be a number and name must be one of stat-names defined in the parameters.
To retrieve the stat-value of an actor or enemy the following javascript function can be used
Code:
battler.sgsStat(name)
'battler' is a Game_Actor or Game_Enemy object, 'name' is the name of the stat. Please note that the name has to be enclosed in ''. For example:
Code:
battler.sgsStat('strength')
This would return the strength-value of an actor or enemy.
A simpler way is to use the stat as a property (requires v. 1.2):
Code:
battler.strength
The value of a stat on an actor or enemie is further modified by active states, the actors class and equipment. The exact formula can be changed in the plugin parameters. It is also possible to use a different formula for enemies.
To change the value of a stat you can use
Code:
battler.incSGSStat(name, value)
This will increase the stat 'name' of the battler by 'value'. Use negative values to decrease the stat.
A stat can automaticly increase when an actor levels up. The amount it increases can be defined by this notetag:
Code:
<SGS Stat Level: name=value>
Like with the normal value, states, class and equipment affect the level-increase of the stat.
Additional features
- Advanced versions of the Base- and Level-Notetag to evaluate javascript
- Define global maximum/minimum stats, or specific limits by notetags
Other things to note
The defined stats do nothing on their own. How they are used are up to you. They can be used inside damage formulas, can affect other stats/parameter using other plugins or simply used inside events.
In particular the stats are not displayed anywhere on the normal GUI. You would have to use another plugin, to display them on the status menu.
License:
Free for all games in MV (free and commercial). Credit to MagicMagor must be given inside the game or a credits-file. Modification to the script is allowed, but the modified script can not be distributed. Distributing the script via the game, that uses it is the only exception for this.
Download
SGS Stats (v1.2)
Changelog
1.0 - Initial Release
1.1 - Fixed invisible enemies
1.2 - Adapted to new plugin manager and added simple properties for new stats
Last edited: