menacephere-of-inverted-dreams/js/plugins/SkillTreeConfig.js
2024-12-05 03:37:04 +03:00

989 lines
37 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*:
@target MV MZ
@plugindesc スキルツリーコンフィグ v1.0.1
@author うなぎおおとろ
@url https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/SkillTreeConfig.js
@help
[概要]
スキルツリーを導入するプラグインです。
SPを使ってスキルを習得するスキルツリーを作成することができます。
[使用方法]
■ スキルツリーの設定
スキルツリーの設定は、「SkillTreeConfig.js」ファイルを編集することで行います。
基本的な設定としては、アクターごとにスキルツリーのタイプ(剣スキルや魔法スキルなど)を設定し、
そしてタイプごとにスキルツリーを構築します。
スキルツリーの構築は、スキルの派生設定(ファイアⅠを取得したらファイアⅡが取得可能になるなど)によって行います。
■ SPの入手設定
スキルの習得には、SPが必要となります。
SPの入手方法としては
・戦闘終了による獲得
・レベルアップによるSP獲得
の二通りの設定を行うことができます。
・戦闘終了時に得られるSPの設定方法
敵キャラのメモ欄に
<battleEndGainSp: SP>
の形式で記載します。
・レベルアップによるSP獲得方法の設定
コンフィグの「levelUpGainSp」によって設定を行います。
■ イベントでSPを獲得する方法
スクリプトで
skt_gainSp(アクターID, 獲得するSP値)
と記載することで、該当のアクターが指定したSPを獲得することができます。
例えば、アクターIDが1のアクターが5SPを獲得する場合、
skt_gainSp(1, 5);
と記載します。
■ 割り振った累計SPの取得
skt_totalSp(アクターID, 累計SP格納先変数ID)
と記載することで、該当のアクターが今までに割り振ったSPを指定した変数に代入することができます。
例えば、アクターIDが1のアクターの累計SPをID2の変数に代入する場合、
skt_totalSp(1, 2);
と記載します。
■ スキルリセット
スクリプトで
skt_skillReset(アクターID);
と記載することで、一度習得したスキルをリセットすることができます。
例えば、アクターIDが1のアクターのスキルリセットを行う場合、
skt_skillReset(1);
と記載します。
■ スキルツリータイプの有効/無効
スクリプトで
skt_enableType(アクターID, "タイプ名");
と記載することで、タイプを有効にします。
無効にする場合は、
skt_disableType(アクターID, "タイプ名")
と記載します。
無効にしたタイプは、スキルツリーのタイプ一覧には表示されません。
■ タイプの引継ぎ
特定の条件を満たすとスキルツリーに新たなスキルが追加されるようにしたい場合、「タイプの引継ぎ」を使用します。
例えば、タイプ「下位魔法」を「上位魔法」に変更したい場合、あらかじめ両方のタイプをコンフィグに登録した上で、
「上位魔法」は無効化しておきます。そして、タイプの引継ぎ機能を用いて、「下位魔法」を「上位魔法」に引き継がせます。
タイプの引継ぎを行う場合、スクリプトで
skt_migrationType(アクターID, "引継ぎ元タイプ名", "引継ぎ先タイプ名", リセット有無);
と記載します。リセット有無については、引継ぎ後、引継ぎ元のタイプのスキルツリーをリセットする場合、trueを、
リセットしない場合、falseを指定します。
例えば、アクターIDが1のアクターが、タイプ「下位魔法」を「上位魔法」に引き継がせ、さらにスキルリセットを行う場合、
skt_migrationType(アクターID, "下位魔法", "上位魔法", true);
と記載します。
■ マップからスキルツリーを読み込む
マップからスキルツリーの各スキルの配置座標を読み込むことで、ある程度自由なレイアウトのスキルツリーを
作成することができます。この機能によって設定可能なのはスキルの座標のみであり、スキル間の線はプラグイン側で描画します。
・スキル座標の設定
マップ上のイベントにて、設定を行います。
例えば、"ファイア"というスキルがある場合、スキルを配置したい座標に空のイベントを作成し、
イベントのメモ欄に
ファイア
と記載します。すると、"ファイア"とメモ欄に記載したイベントのXY座標がスキルのXY座標として使用されます。
■ スクリプトからスキルツリーを起動
スクリプトで
skt_open(アクターID);
と記載することで、指定したアクターのスキルツリーを起動することができます。
■ スクリプトからスキルツリーのスキルを取得する
スクリプトで
skt_learn(アクターID, "タイプ名", スキル名, 強制取得有無(省略可));
と記載することで、指定したスキルを取得することができます。
スキル名は「skillTreeInfo」で指定したものを使用してください。
強制取得有無にtrueを設定した場合、習得可能か否かの判定を無視して強制的にスキルを取得します。
また、この場合SPは消費されません。
強制取得有無にfalseを設定した場合は通常通りの方法でスキルを取得します。この場合はSPも消費されます。
なおこの項目については省略可能です。省略した場合はfalseが適用されます。
例: アクターID1のキャラクターで、タイプ「剣技」のスキルツリーの「強撃」を取得する場合
skt_learn(1, "剣技", "強撃", false);
*/
const loadSkillTreeConfig = () => {
return {
// =============================================================
// ●ここからは設定項目です。
// =============================================================
// スキルツリーのタイプの設定を行います。
// skillTreeTypes: [ ]の中にアクターの数だけタイプ設定を追加します。
// タイプ設定は、次の形式で設定します。
// { actorId: アクターのID, types: [タイプ情報1, タイプ情報2, ...] }
// タイプ情報は、次の形式で設定します。
// [タイプ種別, タイプ名, タイプの説明, タイプ有効/無効]
// タイプ種別...スキルの派生設定でタイプを識別するためのユニークな識別子を設定します。
// タイプ名...タイプ一覧のウィンドウに表示するタイプ名を設定します。
// タイプの説明...タイプ一覧のウィンドウに表示するタイプの説明を設定します。
// タイプ有効/無効...タイプを有効にする場合は、trueを、無効にする場合は、falseを指定します。
// この項目については、省略可能です。省略した場合、trueが指定されます。
skillTreeTypes: [
{
actorId: 1,
types: [
[
"回復術士の夢",
"Healer's Dream",
"Healer's Dream: A skill tree that utilizes high magic defense for pure healing\nroles or activates passives useful throughout the journey.",
],
[
"連鎖の夢",
"Chain's Dream",
"Chain's Dream: A skill tree specializing in critical hit magic pierce\nattributes or enhancing party status.",
],
[
"妹の夢",
"Sister's Dream",
"A skill tree for a cute sister who can do anything.",
false,
],
["汎用Ⅰ", "Misc. I", "Miscellaneous skills I"],
["汎用Ⅱ", "Misc. II", "Miscellaneous skills II"],
],
},
{
actorId: 2,
types: [
[
"宝石の夢",
"Gem's Dream",
"Gem's Dream: A skill tree that uses a large amount of MP to wield\npowerful blunt attribute magic or shields damage by using MP.",
],
[
"淫魔の夢",
"Succubus Dream",
"Succubus Dream: A skill tree able to assist the party's MP/TP and\ninduce status ailments.",
],
["汎用Ⅰ", "Misc. I", "Miscellaneous skills I"],
["汎用Ⅱ", "Misc. II", "Miscellaneous skills II"],
],
},
{
actorId: 3,
types: [
[
"不死の夢",
"Dream of Immortality",
"Dream of Immortality: A skill tree for special tanks using low HP\nand defense or uses physical blunt attributes for attack.",
],
[
"破壊の夢",
"Dream of Destruction",
"Dream of Destruction: A skill tree with physical slash attributes\nthat get strengthened by battle turns, excelling in debuffs and buffs to support party\nfirepower.",
],
["汎用Ⅰ", "Misc. I", "Miscellaneous skills I"],
["汎用Ⅱ", "Misc. II", "Miscellaneous skills II"],
],
},
{
actorId: 4,
types: [
[
"魔法剣士の夢",
"Magic Swordsman's Dream",
"Magic Swordsman's Dream: A skill tree that accumulates burst gauge\nand delivers explosive firepower with physical pierce/magic slash\nattributes.",
],
[
"逆境の夢",
"Dream of Adversity",
"Dream of Adversity: A skill tree that provides pure tank roles with\nhigh HP and enables healing by consuming TP.",
],
["汎用Ⅰ", "Misc. I", "Miscellaneous skills I"],
["汎用Ⅱ", "Misc. II", "Miscellaneous skills II"],
],
},
{
actorId: 9,
types: [
[
"メア覚醒スキル",
"Mea Awakening Skill",
"A skill tree that can be strengthened with Mea's bond level.",
],
],
},
{
actorId: 10,
types: [
[
"リリリ覚醒スキル",
"Lilili Awakening Skill",
"A skill tree that can be strengthened with Lilili's bond level.",
],
],
},
{
actorId: 11,
types: [
[
"デイ覚醒スキル",
"Dei Awakening Skill",
"A skill tree that can be strengthened with Dei's bond level.",
],
],
},
{
actorId: 12,
types: [
[
"ルーシィ覚醒スキル",
"Lucy Awakening Skill",
"A skill tree that can be strengthened with Lucy's bond level.",
],
],
},
],
// スキルツリーのマップ読み込み設定を行います。
// 読み込むマップは以下の形式で指定します。
// skillTreeMapId: { skillTreeName1: mapID1, skillTreeName2: mapID2, ... }
// skillTreeName...スキルツリーのタイプ名を指定します。
// mapID...読み込むマップIDを指定します。0の場合は読み込みを行いません。
skillTreeMapId: {
剣技: 0,
格闘技: 0,
不死の夢: 0,
破壊の夢: 0,
回復術士の夢: 0,
連鎖の夢: 0,
淫魔の夢: 0,
宝石の夢: 0,
魔法剣士の夢: 0,
逆境の夢: 0,
汎用Ⅰ: 0,
汎用Ⅱ: 0,
メア覚醒スキル: 0,
リリリ覚醒スキル: 0,
デイ覚醒スキル: 0,
ルーシィ覚醒スキル: 0,
妹の夢: 0,
},
// 各スキルの情報を登録します。
// skillTreeInfo: [ ]の中に登録するスキル数分のスキル情報の登録を行います。
// スキル情報の登録は次の形式で行います。
// [スキル名, スキルID, 必要SP, アイコン情報]
// スキル名...スキルツリーの派生設定でスキルを一意に識別するための識別子
// 識別子なので、実際のスキル名と一致していなくても問題はありません。
// スキルID...データベース上で該当するスキルのID
// 必要SP...スキルの習得に必要なSP
// アイコン情報については、アイコンを使用するか、任意の画像を使用するかに応じて次の形式で登録します。
// アイコンを使用する場合 ["icon", iconIndex]
// iconIndex...使用するアイコンのインデックス
// iconIndexは省略可能です。省略した場合、スキルに設定されているアイコンが使用されます。
// 画像を使用する場合 ["img", fileName]
// fileName...画像のファイル名。画像は、「img/pictures」フォルダにインポートしてください。
// なお、アイコン情報については省略可能です。省略した場合、["icon"]が適用されます。
skillTreeInfo: [
// Sword Technique
// ["Strong Strike", 172, 1, ["icon"]],
// Martial Arts
// Attack Magic
// ["Fire I", 99, 1, ["icon"]],
// Healing Magic
["Healer's Shine", 31, 1, ["icon"]],
["Heal Heal", 32, 2, ["icon"]],
["Heal Graze", 33, 3, ["icon"]],
["Heal Arise", 34, 5, ["icon"]],
["Recovery", 35, 2, ["icon"]],
["Return", 36, 2, ["icon"]],
["Recoverize", 37, 3, ["icon"]],
["Reset Out", 38, 3, ["icon"]],
["Will of Truth", 39, 5, ["icon"]],
["Best Move", 40, 3, ["icon"]],
["I'll Treat You", 41, 3, ["icon"]],
["Instant Potion", 42, 2, ["icon"]],
["Instant Potion II", 43, 4, ["icon"]],
["Probability of Success", 44, 5, ["icon"]],
["Lost Time", 45, 3, ["icon"]],
["Exploration Recommendation", 46, 2, ["icon"]],
["MP Recovery II", 47, 5, ["icon"]],
["Foreseeing Little Sister", 48, 4, ["icon"]],
["Magic Defense Boost I", 49, 2, ["icon"]],
["Magic Defense Boost II", 50, 6, ["icon"]],
["Attack Magic Dream", 51, 1, ["icon"]],
["Ray", 52, 2, ["icon"]],
["Nightmare", 53, 2, ["icon"]],
["Cat Trick", 54, 2, ["icon"]],
["Dreaming Mea", 55, 2, ["icon"]],
["Twisted Dream", 56, 3, ["icon"]],
["World That Doesn't Awaken", 57, 3, ["icon"]],
["That Dream is Inevitable", 58, 5, ["icon"]],
["Magic Rain", 59, 2, ["icon"]],
["Critical Geek", 60, 5, ["icon"]],
["Body Limit Break", 61, 4, ["icon"]],
["Magic Element Support", 62, 2, ["icon"]],
["Maintenance Time", 63, 4, ["icon"]],
["Chain Barrier", 64, 4, ["icon"]],
["After You", 65, 2, ["icon"]],
["Pursuit Command", 66, 2, ["icon"]],
["Proof of Dream", 67, 2, ["icon"]],
["Pre-Preparation", 68, 4, ["icon"]],
["Critical Rate Up I", 69, 2, ["icon"]],
["Critical Rate Up II", 70, 4, ["icon"]],
["Gem's Shine", 111, 1, ["icon"]],
["Dazzling Light", 112, 2, ["icon"]],
["Transparent Shine", 113, 2, ["icon"]],
["Path of Light", 114, 3, ["icon"]],
["Noble Radiance", 115, 4, ["icon"]],
["Initial Magic Bullet Increase III", 116, 2, ["icon"]],
["Complex Reflection", 117, 4, ["icon"]],
["Frost Shot", 118, 3, ["icon"]],
["Swallowing Light", 119, 3, ["icon"]],
["Cat Purr", 120, 2, ["icon"]],
["Spread", 121, 2, ["icon"]],
["Chain Destruction", 122, 2, ["icon"]],
["Full-Burst Volley", 123, 5, ["icon"]],
["Eternal Way", 124, 4, ["icon"]],
["Ending☆Star", 125, 4, ["icon"]],
["Ruina Ray", 126, 4, ["icon"]],
["Initial Magic Bullet Increase IV", 127, 2, ["icon"]],
["Devil of Bullets", 128, 5, ["icon"]],
["Magic Bullet Magazine Enhancement I", 129, 2, ["icon"]],
["Bad Deed", 130, 6, ["icon"]],
["Succubus Dream", 131, 1, ["icon"]],
["Important Place", 132, 2, ["icon"]],
["Offensive", 133, 2, ["icon"]],
["Finger-Counting Addiction", 134, 2, ["icon"]],
["Poison Thread", 135, 2, ["icon"]],
["Succubus Kiss", 136, 3, ["icon"]],
["Magic Shield", 137, 3, ["icon"]],
["The Present is Me", 138, 4, ["icon"]],
["Demonic Contract", 139, 6, ["icon"]],
["Brilliant Shadow", 140, 6, ["icon"]],
["One Shot", 141, 2, ["icon"]],
["P Shot", 142, 2, ["icon"]],
["Two Rain", 143, 3, ["icon"]],
["Three Blast", 144, 3, ["icon"]],
["Count Zero", 145, 5, ["icon"]],
["High-Speed Deployment", 146, 4, ["icon"]],
["Initial Magic Bullet Increase II", 147, 2, ["icon"]],
["Fifth Record", 148, 2, ["icon"]],
["Mana Limit Enhancement II", 149, 2, ["icon"]],
["Ending", 150, 5, ["icon"]],
["Immortal Shine", 191, 1, ["icon"]],
["Cover", 192, 2, ["icon"]],
["Self-Healing Technique", 193, 2, ["icon"]],
["Cut Guard", 194, 3, ["icon"]],
["Today's Dying Place", 195, 2, ["icon"]],
["Fit for a Zombie", 196, 2, ["icon"]],
["Fatal Hundred Strikes", 197, 3, ["icon"]],
["Heroic Defense... Hmm?", 198, 4, ["icon"]],
["Natural Respawn", 199, 5, ["icon"]],
["Curse of Immortality", 200, 6, ["icon"]],
["Handpicked Last Moment", 201, 4, ["icon"]],
["Endless Battle", 202, 2, ["icon"]],
["That Day's Oath", 203, 2, ["icon"]],
["Reckless Charge", 204, 3, ["icon"]],
["Unfading Scar", 205, 2, ["icon"]],
["Temporary Measure", 206, 2, ["icon"]],
["Slash Echo of Death", 207, 4, ["icon"]],
["Delicious Meat Cut", 208, 3, ["icon"]],
["Because of a Hero... Hmm", 209, 6, ["icon"]],
["Return Celebration", 210, 2, ["icon"]],
["Destruction Shine", 211, 1, ["icon"]],
["Whirlwind Slash", 212, 2, ["icon"]],
["Unlucky Day", 213, 2, ["icon"]],
["Direct Burial to the Underworld", 214, 4, ["icon"]],
["Finale", 215, 5, ["icon"]],
["Swing Wildly", 216, 2, ["icon"]],
["Reviving Blood", 217, 2, ["icon"]],
["Battle Opening Death", 218, 4, ["icon"]],
["Want to Die Once?", 219, 2, ["icon"]],
["Boundary of Death", 220, 5, ["icon"]],
["Agony of Life", 221, 2, ["icon"]],
["Is It There?", 222, 3, ["icon"]],
["Resist Down [Slash]", 223, 2, ["icon"]],
["Resist Down [Blunt]", 224, 2, ["icon"]],
["Resist Down [Pierce]", 225, 2, ["icon"]],
["Go for It!", 226, 4, ["icon"]],
["Some Level of Resolve", 227, 3, ["icon"]],
["Start Dash", 228, 3, ["icon"]],
["Seems Painful.", 229, 4, ["icon"]],
["Immortal Hero", 230, 6, ["icon"]],
["Magic Swordsman's Shine", 271, 1, ["icon"]],
["Aegis", 272, 2, ["icon"]],
["Sword of the Flame Emperor", 273, 2, ["icon"]],
["Will of the Magical Girl", 274, 3, ["icon"]],
["Impact", 275, 2, ["icon"]],
["All Blood All Blood", 276, 5, ["icon"]],
["Named Insurance", 277, 4, ["icon"]],
["Piercing Fang Thrust", 278, 3, ["icon"]],
["Slash Charger", 279, 3, ["icon"]],
["May Rain", 280, 5, ["icon"]],
["Lucy Impact", 281, 2, ["icon"]],
["Cue Crash", 282, 4, ["icon"]],
["Killing Demon Style: Slash Break Shock Formation", 283, 2, ["icon"]],
["Overheat", 284, 3, ["icon"]],
["Start Rampage", 285, 3, ["icon"]],
["Burst Enhancement I", 286, 2, ["icon"]],
["Burst Enhancement II", 287, 5, ["icon"]],
["Sense of Balance", 288, 3, ["icon"]],
["Might is Power", 289, 3, ["icon"]],
["Reckless Abandon", 290, 4, ["icon"]],
["Adversity Shine", 291, 1, ["icon"]],
["Provocation", 292, 2, ["icon"]],
["Reset", 293, 2, ["icon"]],
["AF: Substitute for Pain", 294, 2, ["icon"]],
["TP Increase", 295, 2, ["icon"]],
["Shield", 296, 3, ["icon"]],
["TP Acquisition Increase", 297, 4, ["icon"]],
["White Wall", 298, 3, ["icon"]],
["Knight's Pride", 299, 3, ["icon"]],
["300", 300, 5, ["icon"]],
["Defense Mechanism", 301, 2, ["icon"]],
["Return 2", 302, 2, ["icon"]],
["Regen II", 303, 2, ["icon"]],
["Resist", 304, 4, ["icon"]],
["Regen I", 305, 2, ["icon"]],
["Proof of Love", 306, 2, ["icon"]],
["Quick Stance IV", 307, 5, ["icon"]],
["Protect", 308, 4, ["icon"]],
["Yearning Childhood Friend", 309, 6, ["icon"]],
["All Reset", 310, 4, ["icon"]],
["Stun Resistance I", 701, 4, ["icon"]],
["Stun Resistance II", 702, 2, ["icon"]],
["Stun Immunity", 703, 2, ["icon"]],
["Poison Resistance I", 704, 1, ["icon"]],
["Poison Resistance II", 705, 2, ["icon"]],
["Poison Immunity", 706, 2, ["icon"]],
["Darkness Resistance I", 707, 1, ["icon"]],
["Darkness Resistance II", 708, 2, ["icon"]],
["Darkness Immunity", 709, 2, ["icon"]],
["Silence Resistance I", 710, 1, ["icon"]],
["Silence Resistance II", 711, 2, ["icon"]],
["Silence Immunity", 712, 2, ["icon"]],
["Miasma Resistance I", 713, 1, ["icon"]],
["Miasma Resistance II", 714, 2, ["icon"]],
["Miasma Immunity", 715, 2, ["icon"]],
["Paralysis Resistance I", 716, 1, ["icon"]],
["Paralysis Resistance II", 717, 2, ["icon"]],
["Paralysis Immunity", 718, 2, ["icon"]],
["MP Poison Resistance I", 719, 1, ["icon"]],
["MP Poison Resistance II", 720, 2, ["icon"]],
["MP Poison Immunity", 721, 2, ["icon"]],
["Pain Resistance I", 722, 1, ["icon"]],
["Pain Resistance II", 723, 2, ["icon"]],
["Pain Immunity", 724, 2, ["icon"]],
["Freeze Resistance I", 725, 1, ["icon"]],
["Freeze Resistance II", 726, 2, ["icon"]],
["Freeze Immunity", 727, 2, ["icon"]],
["Instant Death Resistance I", 728, 1, ["icon"]],
["Instant Death Resistance II", 729, 2, ["icon"]],
["Instant Death Immunity", 730, 2, ["icon"]],
["Attack Enhancement I", 731, 1, ["icon"]],
["Attack Enhancement II", 732, 4, ["icon"]],
["Defense Enhancement I", 733, 1, ["icon"]],
["Defense Enhancement II", 734, 4, ["icon"]],
["Magic Attack Enhancement I", 735, 1, ["icon"]],
["Magic Attack Enhancement II", 736, 4, ["icon"]],
["Magic Defense Enhancement I", 737, 1, ["icon"]],
["Magic Defense Enhancement II", 738, 4, ["icon"]],
["Agility Enhancement I", 739, 1, ["icon"]],
["Agility Enhancement II", 740, 4, ["icon"]],
["Luck Enhancement I", 741, 1, ["icon"]],
["Luck Enhancement II", 742, 4, ["icon"]],
["Max HP Enhancement I", 743, 1, ["icon"]],
["Max HP Enhancement II", 744, 4, ["icon"]],
["Max MP Enhancement I", 745, 1, ["icon"]],
["Max MP Enhancement II", 746, 4, ["icon"]],
["Third World of Demons", 891, 2, ["icon"]],
["Succubus Temptation", 892, 2, ["icon"]],
["Reminiscence", 893, 2, ["icon"]],
["Lilili Awakening I", 894, 2, ["icon"]],
["Lilili Awakening II", 895, 2, ["icon"]],
["Dei1", 901, 2, ["icon"]],
["Dei2", 902, 2, ["icon"]],
["Dei3", 903, 2, ["icon"]],
["Dei2_1", 904, 2, ["icon"]],
["Dei2_2", 905, 2, ["icon"]],
["Lucy1", 911, 2, ["icon"]],
["Lucy2", 912, 2, ["icon"]],
["Lucy3", 913, 2, ["icon"]],
["Lucy2_1", 914, 2, ["icon"]],
["Lucy2_2", 915, 2, ["icon"]],
["Mea1", 921, 2, ["icon"]],
["Mea2", 922, 2, ["icon"]],
["Mea3", 923, 2, ["icon"]],
["Mea2_1", 924, 2, ["icon"]],
["Mea2_2", 925, 2, ["icon"]],
["Mea101", 801, 1, ["icon"]],
["Mea102", 802, 2, ["icon"]],
["Mea103", 803, 3, ["icon"]],
["Mea104", 804, 4, ["icon"]],
["Mea105", 805, 3, ["icon"]],
["Mea106", 806, 3, ["icon"]],
["Mea107", 807, 3, ["icon"]],
["Mea108", 808, 3, ["icon"]],
["Mea109", 809, 3, ["icon"]],
["Mea110", 810, 3, ["icon"]],
],
// スキルツリーの派生設定を行います。
// skillTreeDerivative: { }の中にタイプ数分のスキルツリーの登録を行います。
// スキルツリーの派生設定は次のように行います。
// "タイプ名": [ [スキル1, [派生先スキル1, 派生先スキル2, ...]], [スキル2, [派生先スキル3, 派生先スキル4, ...] ]
// ※派生先スキルが存在しない終端スキルの場合、派生先スキルは省略可能です。
//
// 例えば、"様子を見る"と"連続攻撃"を取得すると、"2回攻撃"が取得できるようにするには、次の設定を行います。
// ["様子を見る", ["2回攻撃"]],
// ["連続攻撃", ["2回攻撃"]],
// ["2回攻撃"],
//
// また、"ヒール"を取得すると、"ファイア"と"スパーク"が取得できるようにするには、次の設定を行います。
// ["ヒール", ["ファイア"]],
// ["ヒール", ["スパーク"]],
// ["ファイア"],
// ["スパーク"],
skillTreeDerivative: {
剣技: [["Strong Strike"]],
格闘技: [["Trip"]],
下位攻撃魔法: [["Fire I"]],
回復術士の夢: [
["Healer's Shine", ["Heal Heal", "Magic Defense Boost I"]],
["Heal Heal", ["Heal Graze", "Return", "Recovery"]],
["Heal Graze", ["Heal Arise"]],
["Heal Arise", ["MP Recovery II"]],
["MP Recovery II"],
["Return", ["Best Move", "Foreseeing Little Sister"]],
["Best Move", ["Lost Time"]],
["Lost Time"],
["Foreseeing Little Sister"],
["Recovery", ["Recoverize"]],
["Recoverize", ["Reset Out"]],
["Reset Out"],
["Magic Defense Boost I", ["Instant Potion", "Proof of Dream"]],
["Instant Potion", ["Instant Potion II"]],
["Instant Potion II", ["Probability of Success", "Exploration Recommendation"]],
["Probability of Success"],
["Exploration Recommendation"],
["Proof of Dream", ["I'll Treat You"]],
["I'll Treat You", ["Magic Defense Boost II"]],
["Magic Defense Boost II"],
],
連鎖の夢: [
["Attack Magic Dream", ["Magic Rain", "Cat Trick"]],
["Magic Rain", ["Dreaming Mea", "Ray"]],
["Dreaming Mea", ["Twisted Dream", "Critical Rate Up I"]],
["Twisted Dream", ["That Dream is Inevitable"]],
["That Dream is Inevitable"],
["Critical Rate Up I", ["Critical Rate Up II", "Critical Geek"]],
["Critical Rate Up II"],
["Ray", ["World That Doesn't Awaken"]],
["World That Doesn't Awaken", ["Critical Geek"]],
["Critical Geek"],
["Cat Trick", ["Magic Element Support", "Nightmare", "Pursuit Command"]],
["Magic Element Support", ["Maintenance Time", "Chain Barrier"]],
["Maintenance Time", ["Body Limit Break"]],
["Chain Barrier", ["Body Limit Break"]],
["Body Limit Break"],
["Nightmare", ["Pre-Preparation"]],
["Pre-Preparation"],
["Pursuit Command", ["After You"]],
["After You", ["Will of Truth"]],
["Will of Truth"],
],
宝石の夢: [
["Gem's Shine", ["One Shot", "P Shot"]],
["P Shot", ["Chain Destruction", "Initial Magic Bullet Increase IV"]],
["Chain Destruction", ["Eternal Way", "Fifth Record"]],
["Eternal Way", ["Ruina Ray"]],
["Fifth Record", ["Full-Burst Volley", "Ending☆Star"]],
["Ruina Ray"],
["Full-Burst Volley"],
["Ending☆Star"],
["Initial Magic Bullet Increase IV", ["Magic Bullet Magazine Enhancement I"]],
["Magic Bullet Magazine Enhancement I", ["Bad Deed"]],
["Bad Deed"],
["One Shot", ["Two Rain", "Spread"]],
["Two Rain", ["Three Blast", "Finger-Counting Addiction"]],
["Three Blast", ["Count Zero"]],
["Count Zero"],
["Finger-Counting Addiction", ["Devil of Bullets"]],
["Devil of Bullets"],
["Spread", ["Mana Limit Enhancement II"]],
["Mana Limit Enhancement II", ["Ending"]],
["Ending"],
],
淫魔の夢: [
["Succubus Dream", ["Poison Thread", "Cat Purr"]],
["Poison Thread", ["Succubus Kiss", "Offensive"]],
["Succubus Kiss", ["The Present is Me"]],
["The Present is Me", ["High-Speed Deployment", "Magic Shield", "Important Place"]],
["High-Speed Deployment"],
["Magic Shield"],
["Important Place"],
["Offensive", ["Initial Magic Bullet Increase II", "Brilliant Shadow"]],
["Initial Magic Bullet Increase II", ["Demonic Contract"]],
["Demonic Contract"],
["Brilliant Shadow"],
["Cat Purr", ["Dazzling Light", "Transparent Shine"]],
["Dazzling Light", ["Path of Light"]],
["Path of Light"],
["Transparent Shine", ["Noble Radiance", "Complex Reflection", "Initial Magic Bullet Increase III"]],
["Noble Radiance"],
["Complex Reflection", ["Swallowing Light"]],
["Swallowing Light"],
["Initial Magic Bullet Increase III", ["Frost Shot"]],
["Frost Shot"],
],
不死の夢: [
["Immortal Shine", ["Cover", "Temporary Measure"]],
["Cover", ["Cut Guard", "Today's Dying Place", "Self-Healing Technique"]],
["Cut Guard", ["Fatal Hundred Strikes"]],
["Fatal Hundred Strikes", ["Curse of Immortality"]],
["Curse of Immortality"],
["Today's Dying Place", ["Fit for a Zombie"]],
["Fit for a Zombie", ["Heroic Defense... Hmm?"]],
["Heroic Defense... Hmm?"],
["Self-Healing Technique", ["Return Celebration"]],
["Return Celebration", ["Natural Respawn"]],
["Natural Respawn"],
["Temporary Measure", ["Endless Battle", "Slash Echo of Death"]],
["Endless Battle", ["Reckless Charge"]],
["Reckless Charge", ["Handpicked Last Moment"]],
["Handpicked Last Moment"],
["Slash Echo of Death"],
["Slash Echo of Death", ["That Day's Oath", "Delicious Meat Cut"]],
["That Day's Oath", ["Unfading Scar"]],
["Unfading Scar"],
["Delicious Meat Cut", ["Because of a Hero... Hmm"]],
["Because of a Hero... Hmm"],
],
破壊の夢: [
["Destruction Shine", ["Whirlwind Slash", "Agony of Life"]],
["Whirlwind Slash", ["Unlucky Day", "Reviving Blood", "Swing Wildly"]],
["Unlucky Day", ["Direct Burial to the Underworld"]],
["Direct Burial to the Underworld", ["Finale"]],
["Finale"],
["Reviving Blood", ["Want to Die Once?"]],
["Want to Die Once?", ["Battle Opening Death"]],
["Battle Opening Death"],
["Swing Wildly", ["Is It There?"]],
["Is It There?", ["Boundary of Death"]],
["Boundary of Death"],
[
"Agony of Life",
["Resist Down [Slash]", "Resist Down [Blunt]", "Resist Down [Pierce]"],
],
["Resist Down [Slash]", ["Go for It!"]],
["Go for It!", ["Immortal Hero"]],
["Immortal Hero"],
["Resist Down [Blunt]", ["Start Dash"]],
["Start Dash", ["Seems Painful."]],
["Seems Painful."],
["Resist Down [Pierce]", ["Some Level of Resolve"]],
["Some Level of Resolve"],
],
魔法剣士の夢: [
["Magic Swordsman's Shine", ["Aegis", "Lucy Impact"]],
["Aegis", ["Piercing Fang Thrust", "Sword of the Flame Emperor", "Start Rampage"]],
["Piercing Fang Thrust", ["Burst Enhancement I"]],
["Burst Enhancement I", ["Cue Crash"]],
["Cue Crash"],
["Sword of the Flame Emperor", ["Slash Charger"]],
["Slash Charger", ["May Rain"]],
["May Rain"],
["Start Rampage", ["Will of the Magical Girl"]],
["Will of the Magical Girl", ["Reckless Abandon"]],
["Reckless Abandon"],
["Lucy Impact", ["Impact", "Sense of Balance", "Overheat"]],
["Impact", ["Killing Demon Style: Slash Break Shock Formation"]],
["Killing Demon Style: Slash Break Shock Formation"],
["Sense of Balance", ["Named Insurance"]],
["Named Insurance", ["All Blood All Blood"]],
["All Blood All Blood"],
["Overheat", ["Might is Power"]],
["Might is Power", ["Burst Enhancement II"]],
["Burst Enhancement II"],
],
逆境の夢: [
["Adversity Shine", ["Provocation", "Reset"]],
["Provocation", ["AF: Substitute for Pain", "Defense Mechanism", "Regen I"]],
["AF: Substitute for Pain", ["Shield"]],
["Shield", ["TP Acquisition Increase"]],
["TP Acquisition Increase"],
["Defense Mechanism", ["White Wall"]],
["White Wall", ["300"]],
["300"],
["Regen I", ["Protect"]],
["Protect", ["Yearning Childhood Friend"]],
["Yearning Childhood Friend"],
["Reset", ["TP Increase", "Return 2", "Regen II"]],
["TP Increase", ["Knight's Pride"]],
["Knight's Pride", ["Proof of Love"]],
["Proof of Love"],
["Return 2", ["All Reset"]],
["All Reset", ["Quick Stance IV"]],
["Quick Stance IV"],
["Regen II", ["Resist"]],
["Resist"],
],
汎用Ⅰ: [
["Stun Resistance I"],
["Poison Resistance I", ["Poison Resistance II"]],
["Poison Resistance II", ["Poison Immunity"]],
["Poison Immunity"],
["Darkness Resistance I", ["Darkness Resistance II"]],
["Darkness Resistance II", ["Darkness Immunity"]],
["Darkness Immunity"],
["Silence Resistance I", ["Silence Resistance II"]],
["Silence Resistance II", ["Silence Immunity"]],
["Silence Immunity"],
["Miasma Resistance I", ["Miasma Resistance II"]],
["Miasma Resistance II", ["Miasma Immunity"]],
["Miasma Immunity"],
["Paralysis Resistance I", ["Paralysis Resistance II"]],
["Paralysis Resistance II", ["Paralysis Immunity"]],
["Paralysis Immunity"],
["MP Poison Resistance I", ["MP Poison Resistance II"]],
["MP Poison Resistance II", ["MP Poison Immunity"]],
["MP Poison Immunity"],
["Pain Resistance I", ["Pain Resistance II"]],
["Pain Resistance II", ["Pain Immunity"]],
["Pain Immunity"],
["Freeze Resistance I", ["Freeze Resistance II"]],
["Freeze Resistance II", ["Freeze Immunity"]],
["Freeze Immunity"],
["Instant Death Resistance I", ["Instant Death Resistance II"]],
["Instant Death Resistance II", ["Instant Death Immunity"]],
["Instant Death Immunity"],
],
汎用Ⅱ: [
["Max HP Enhancement I", ["Max HP Enhancement II"]],
["Max HP Enhancement II"],
["Max MP Enhancement I", ["Max MP Enhancement II"]],
["Max MP Enhancement II"],
["Attack Enhancement I", ["Attack Enhancement II"]],
["Attack Enhancement II"],
["Defense Enhancement I", ["Defense Enhancement II"]],
["Defense Enhancement II"],
["Magic Attack Enhancement I", ["Magic Attack Enhancement II"]],
["Magic Attack Enhancement II"],
["Magic Defense Enhancement I", ["Magic Defense Enhancement II"]],
["Magic Defense Enhancement II"],
["Agility Enhancement I", ["Agility Enhancement II"]],
["Agility Enhancement II"],
["Luck Enhancement I", ["Luck Enhancement II"]],
["Luck Enhancement II"],
],
リリリ覚醒スキル: [
["Third World of Demons", ["Lilili Awakening I", "Lilili Awakening II"]],
["Lilili Awakening I", ["Succubus Temptation"]],
["Succubus Temptation"],
["Lilili Awakening II", ["Reminiscence"]],
["Reminiscence"],
],
デイ覚醒スキル: [
["Dei1", ["Dei2_1", "Dei2_2"]],
["Dei2_1", ["Dei2"]],
["Dei2"],
["Dei2_2", ["Dei3"]],
["Dei3"],
],
ルーシィ覚醒スキル: [
["Lucy1", ["Lucy2_1", "Lucy2_2"]],
["Lucy2_1", ["Lucy2"]],
["Lucy2"],
["Lucy2_2", ["Lucy3"]],
["Lucy3"],
],
メア覚醒スキル: [
["Mea1", ["Mea2_1", "Mea2_2"]],
["Mea2_1", ["Mea2"]],
["Mea2"],
["Mea2_2", ["Mea3"]],
["Mea3"],
],
妹の夢: [
["Mea101", ["Mea102", "Mea106"]],
["Mea102", ["Mea103", "Mea104"]],
["Mea103", ["Mea105"]],
["Mea105"],
["Mea104"],
["Mea106", ["Mea107", "Mea108"]],
["Mea107", ["Mea109"]],
["Mea109"],
["Mea108", ["Mea110"]],
["Mea110"],
],
},
// レベルアップによってSPを獲得する場合、レベルごとに得られるSP値を以下の形式で設定します。
// classId: 職業ID, default: デフォルト値, レベル: SP値, レベル: SP値, ...
// 下記の設定例では、レベル2では3SP取得、レベル3では4SP取得、それ以外のレベルでは5SPを獲得します。
levelUpGainSp: [
{
classId: 1,
default: 1,
},
{
classId: 2,
default: 1,
},
{
classId: 3,
default: 1,
},
{
classId: 4,
default: 1,
},
{
classId: 5,
default: 5,
2: 3,
3: 4,
},
{
classId: 6,
default: 5,
2: 3,
3: 4,
},
{
classId: 7,
default: 5,
2: 3,
3: 4,
},
{
classId: 8,
default: 5,
2: 3,
3: 4,
},
],
// =============================================================
// ●設定項目はここまでです。
// =============================================================
};
};