- Joined
- Apr 9, 2015
- Messages
- 1,797
- Reaction score
- 863
- First Language
- German
- Primarily Uses
Description
Adds equipment sets to the game, that provide bonuses depending on the number of items equipped.
Author
Iavra
Parameters
@param Configuration@desc File path to the configuration file, that's used to load set bonuses.@default sets.json@param Stackable Bonuses@desc If set to true, all set bonuses stack. If false, only the highest applicable one gets applied.@default trueHow to UseTo register one or more equipment sets, put a JSON file in your project folder and set the parameter "Configuration" to its file path. Following is a sample file containing 1 set:
[ { "name": "Testset", "description": "This is a test set.", "icon": 1, "items": [ ["weapon", 1], ["armor", 2] ], "traits": { "2": [ {"code": 21, "dataId": 2, "value": 2.0} ] } }]The sample set contains of the weapon #1 and armor #2 and doubles the "atk" parameter of an actor, if he has both equipped (equipping the weapon twice does NOT count). Set name, description and icon are not directly used by this plugin, but can be utilized by others.You can add all traits, that are available in the database (actors/classes/weapons/armors -> traits). Following is a table containing all codes:
11 Element Rate12 Debuff Rate13 State Rate14 State Resist20 Param Plus21 Param Rate22 XParam Plus23 SParam Rate31 Attack Element32 Attack State33 Attack Speed34 Attack Times41 Add Skill Type42 Seal Skill Type43 Add Skill44 Seal Skill62 Special FlagThere are more trait codes, but i'm not sure, if and how they are working, but feel free to tinker around with them.Following is a table containing the dataIds for all params:
0 Max HP1 Max MP2 Attack Power3 Defense Power4 Magic Attack Power5 Magic Defense Power6 Agility7 LuckFollowing is a table containing the dataIds for all xparams:
Following is a table containing the dataIds for all sparams:
Following is a table containing the dataIds for special flags:
The plugin provides some script calls to interact with sets:
Furthermore, each set has the following functions to interact with:
Terms of UseFree to use for both commercial and non-commercial games. Please give credit.
Download
http://pastebin.com/1CktUzrH
Adds equipment sets to the game, that provide bonuses depending on the number of items equipped.
Author
Iavra
Parameters
@param Configuration@desc File path to the configuration file, that's used to load set bonuses.@default sets.json@param Stackable Bonuses@desc If set to true, all set bonuses stack. If false, only the highest applicable one gets applied.@default trueHow to UseTo register one or more equipment sets, put a JSON file in your project folder and set the parameter "Configuration" to its file path. Following is a sample file containing 1 set:
[ { "name": "Testset", "description": "This is a test set.", "icon": 1, "items": [ ["weapon", 1], ["armor", 2] ], "traits": { "2": [ {"code": 21, "dataId": 2, "value": 2.0} ] } }]The sample set contains of the weapon #1 and armor #2 and doubles the "atk" parameter of an actor, if he has both equipped (equipping the weapon twice does NOT count). Set name, description and icon are not directly used by this plugin, but can be utilized by others.You can add all traits, that are available in the database (actors/classes/weapons/armors -> traits). Following is a table containing all codes:
11 Element Rate12 Debuff Rate13 State Rate14 State Resist20 Param Plus21 Param Rate22 XParam Plus23 SParam Rate31 Attack Element32 Attack State33 Attack Speed34 Attack Times41 Add Skill Type42 Seal Skill Type43 Add Skill44 Seal Skill62 Special FlagThere are more trait codes, but i'm not sure, if and how they are working, but feel free to tinker around with them.Following is a table containing the dataIds for all params:
0 Max HP1 Max MP2 Attack Power3 Defense Power4 Magic Attack Power5 Magic Defense Power6 Agility7 LuckFollowing is a table containing the dataIds for all xparams:
Code:
0 Hit Rate1 Evasion Rate2 Critical Rate3 Critical Evasion Rate4 Magic Evasion Rate5 Magic Reflection Rate6 Counter Attack Rate7 HP Regeneration Rate8 MP Regeneration Rate9 TP Regeneration Rate
Code:
0 Target Rate1 Guard Effect Rate2 Recovery Effect Rate3 Pharmacology4 MP Cost Rate5 TP Charge Rate6 Physical Damage Rate7 Magical Damage Rate8 Floor Damage Rate9 Experience Rate
Code:
0 Auto Battle1 Guard2 Substitute3 Preserve TP
Code:
IAVRA.SETS.sets(); Returns all registered sets.IAVRA.SETS.setsForItem(item); Returns all sets containing the given armor or weapon.IAVRA.SETS.setsForActor(actor); Returns all sets containing at least 1 item currently equipped to the given actor.
Code:
set.numItemsEquipped(actor); Returns the number of items belonging to this set currently equipped to the actor.set.applicableTraits(actor); Returns all traits of the set, that are currently applied to the actor.set.name; The name of the set.set.description; The description of the set.set.icon; The icon index of the set.set.items; All items belonging to the set.
Download
http://pastebin.com/1CktUzrH

