/*============================================================================= SkillFunctionTemplate.js =============================================================================*/ /*: @target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/SkillFunctionTemplate.js @plugindesc Skill Function Template @author Triacontane @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/triacontane-MZ-plugins ). Original plugin by Triacontane. Please check the latest official version at: https://triacontane.blogspot.com ----- SkillFunctionTemplate.js This is a template for turning skill damage calculation formulas into plugins. Calling the following in a calculation formula will call the sample function: this.funcSample(b) JavaScript knowledge is required to use this plugin. Terms of Use: You may modify and redistribute this plugin without permission from the author, and there are no restrictions on its use (commercial, R18+, etc.). This plugin is now yours. */ /*:ja @plugindesc スキル関数テンプレート @target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/SkillFunctionTemplate.js @help SkillFunctionTemplate.js スキルのダメージ計算式をプラグイン化するためのテンプレートです。 計算式で以下を呼ぶとサンプルの関数が呼ばれます。 this.funcSample(b) 利用にはJavaScriptの知識が必要です。 利用規約: 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) についても制限はありません。 このプラグインはもうあなたのものです。 */ (() => { 'use strict'; Game_Action.prototype.funcSample = function(b) { const item = this.item(); const a = this.subject(); const v = $gameVariables._data; // FIXME 計算結果を返すよう修正してください。 console.log('funcSample called!'); return 100; }; })();