Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
Skill Tree Config en - SkillTreeConfig_en.js
Plugin desc : Skill tree config v1.0.0
License : MIT License
Author : unagi ootoro
Website : https://github.com/unagiootoro/RPGMZ/blob/master/SkillTreeConfig_en.js
Desc page : https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/SkillTreeConfig.js
Download Page : https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/SkillTreeConfig_en.js
File name : SkillTreeConfig_en.js
Help of plugin :
@target MV MZ @plugindesc Skill tree config v1.0.0 @author unagi ootoro @url https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/SkillTreeConfig.js @help [Overview] A plugin that introduces a skill tree. You can create a skill tree to learn skills using SP. [how to use] ■ Skill tree settings Skill tree settings are made by editing the "SkillTreeConfig.js" file. As a basic setting, set the type of skill tree (sword skill, magic skill, etc.) for each actor, Then build a skill tree for each type. The skill tree is constructed by skill derivation settings (Fire II can be acquired after acquiring Fire I, etc.). ■ SP acquisition settings SP is required to acquire skills. How to get SP ・Acquisition by end of battle ・SP acquisition by leveling up You can make two settings. ・How to set SP obtained at the end of battle In the memo field of the enemy character <battleEndGainSp: SP> It is described in the format of. ・Set SP acquisition method by leveling up It is set by "levelUpGainSp" in the config. ■ How to get SP at an event In the script skt_gainSp(Actor ID, SP value to acquire) By describing as, you can get the SP specified by the relevant actor. For example, if an actor with an actor ID of 1 wins 5SP, skt_gainSp(1, 5); Is described. ■ Skill reset In the script skt_skillReset(Actor ID); By describing, you can reset the skill once learned. For example, when performing skill reset for an actor with an actor ID of 1, skt_skillReset(1); Is described. ■ Skill tree type enabled/disabled In the script skt_enableType(Actor ID, "type name"); Type to enable the type. If you want to disable skt_disableType(Actor ID, "type name") Is described. Disabled types do not appear in the skill tree type list. ■Type takeover If you want a new skill to be added to the skill tree when certain conditions are met, use "type takeover". For example, if you want to change the type "Lower Magic" to "Higher Magic", after registering both types in the config beforehand, "Higher magic" is invalidated. Then, using the type transfer function, you can transfer "lower magic" to "upper magic". If you want to take over the type, skt_migrationType(Actor ID, "Takeover source type name", "Takeover destination type name", Reset required); Is described. Regarding reset presence/absence, if you want to reset the skill tree of the source type after the takeover, set true If you do not want to reset, specify false. For example, if an actor with an actor ID of 1 has the type "Lower level magic" taken over by "Higher level magic" and resets the skill, skt_migrationType(Actor ID, "Lower Magic", "Higher Magic", true); Is described. ■ Read the skill tree from the map By reading the placement coordinates of each skill in the skill tree from the map, you can create a skill tree with a somewhat free layout. Can be created Only the coordinates of skills can be set by this function, and the lines between skills are drawn on the plugin side. ・Setting of skill coordinates The settings will be made at the event on the map. For example, if you have a "fire" skill, create an empty event at the coordinates where you want to place the skill, In the memo field of the event fire Is described. Then, the XY coordinates of the event described in "Fire" and the memo column are used as the XY coordinates of the skill. ・Map loading First, use the event command to "move" to the map where the skill tree will be loaded. And the script skt_loadMap (target actor ID of skill tree, target type name of skill tree) Run. For example, if you want to read a skill tree of type "attack magic" with an actor with actor ID 1, skt_loadMap(1, "attack magic"); Is described. ■ Launch the skill tree from the script In script skt_open (actor ID); By writing, you can start the skill tree of the specified actor. ■ Acquire skills in the skill tree from a script With a script skt_learn (actor ID, "type name", skill name, forced acquisition (optional)); By stating, you can acquire the specified skill. Use the skill name specified in "skillTreeInfo". If true is set for the presence / absence of forced acquisition, the skill will be forcibly acquired regardless of the judgment of whether or not it can be learned. Also, in this case SP is not consumed. If false is set for forced acquisition, the skill will be acquired in the usual way. In this case, SP is also consumed. This item can be omitted. If omitted, false is applied. For example: If you are a character with actor ID 1 and want to acquire "Strong Attack" in the skill tree of type "Sword skill" skt_learn(1, "Sword skill", "Strong Attack", false);