RPGツクールMZ用 スキル再取得処理スクリプト
- Digital0 JPY
RPGツクールMZでゲーム制作中に、アクターのスキルの調整をすることってあると思います。 例えば、ヒーリングのスキルを習得するレベルを5→3に下げよう。とか ファイアのスキルをレベル7で取得できるように変更しよう。とか しかし、データベースをいじってもセーブされたゲームのデータは変更されていません。 ましてや、上記のような設定変更したときにアクターのレベルがすでに7を超えていた場合は、いったんレベルを下げるなどの操作をしてあげないと反映されません。 しかし!スクリプトを使うことで解消されます! このスクリプトは、アクターがすでに習得しているスキルを【再確認して追加する】ものであり、既に覚えているスキルを失うことはありません。
Skill Reacquisition Processing Script
Overview When developing a game in RPG Maker MZ, you may find yourself adjusting an actor’s skills. For example, lowering the level required to learn “Healing” from 5 to 3, or changing “Fire” so that it can be learned at level 7. However, even if you modify the database, those changes are not reflected in existing save data. Moreover, if an actor’s level has already exceeded the new requirement (e.g., already above level 7), you would normally need to temporarily lower their level or perform similar steps for the changes to take effect. However! This issue can be resolved by using a script. This script "re-checks and re-adds" the skills that actors should have already learned, and it will not cause them to lose any skills they currently possess.