個人向筆記整理,僅供有一定程式碼修改經驗的愛好者參考;
effect & buff 是英雄、怪物、飾品、奇物等修改的基礎;
公開分享個人向修改作品,請詢允原作者
effect 程式碼地址
苦修者
dlc crimson_court features flagellant effects flagellant.effects.darkest
原版
effects base.effects.darkest
effect 相關程式碼描述:
effect:
基礎條目:
.name (效果名)
.target(效果指向)
PS:”target” 目標;”target_group” 目標所在隊伍;”target_group_other” 目標同伴;
PS:”performer” 自己;”performer_group” 己方隊伍;”performer_group_other” 己方同伴;
.swap_source_and_target true(互換目標與釋放者:配合.target “target” )
.curio_result_type (效果屬性)
PS:”positive” 正面收益;”negative” 負面影響;”neutral” 中立影響;不是很嚴格;
.chance(概率,X%)
··································· 新增主體條目 ···································
.on_hit true .on_miss true (必生效)
.on_hit true .on_miss false(命中生效)
.on_hit false .on_miss true(未命中生效)
.apply_once true(無論命中幾個目標,均只生效一次,預設為 false)
.can_apply_on_death true(對屍體生效,用於DOT或位移,預設為 false)
.queue true(最後結算,用於眩暈、減壓、增益、治療,預設為 false)
.has_description false(隱藏描述,用於自定義詞條的情況,預設為 true)
.source_heal_type hero_skill(治療來源,用於自療技能,預設為 空)
.source_heal_type curio(治療來源,用於奇物的治療)
主體條目:
[DOT]
.dotBleed X .duration Y(流血 X 持續 Y 回合)
.dotPoison X .duration Y(腐蝕 X 持續 Y 回合)
.dotStress X .duration Y(加壓 X 持續 Y 回合)
.dotHpHeal X .duration Y(治療 X 持續 Y 回合)
.steal_buff_stat_type hp_dot_poison (轉移腐蝕)
.steal_buff_stat_type hp_dot_bleed (轉移流血)
[基礎效果]
.push X(後推 X)
.pull X (前拉 X)
.shuffletarget(擾亂單體)
.shuffleparty (擾亂群體)
.heal X (治療 X)
.heal_percent X (按生命百分比治療 X,小數)
.health_damage X(造成傷害 X)
.health_damage_blocks X(護體格擋 X,X 表示格擋次數)
.stress X (加壓 X)
.healstress X(解壓 X)
.torch_increase X (火把明亮 X)
.torch_decrease X (火把暗淡 X)( 搭配 .target “global” )
.initiative_change X(額外增減回合數 X,可負)(搭配:.queue true .apply_once true)
.cure 1 (雙治癒)
.cure_bleed 1 (治癒流血)
.cure_poison 1 (治癒腐蝕)
.clear_debuff 1 (清除減益)
.clearDotStress 1(治癒驚恐)
.tag 1(標記)
.untag 1(解除標記)
.stun 1(眩暈)
.unstun 1(解除眩暈)
.stealth 1(潛行)
.unstealth 1(解除潛行)
.guard 1(守護)
.clearguarding 1(解除守護)
.clearguarded 1(解除被守護)
.kill 1(秒殺)
秒殺提示:
(1)將 .kill 1 單獨包含在一個 effect 中。
(2)將 .kill_enemy_types corpse .queue true .can_apply_on_death true 包含在另一個 effect 中,並把兩個 effect 配合使用。
.riposte 1(啟用反擊,一般不省略以下子條目,不可混用)
.riposte_on_hit_chance_add 100% (對命中反擊)
.riposte_on_miss_chance_add 100% (對失誤反擊)
.duration X (反擊持續回合)
.damage_low_multiply -40%
.damage_high_multiply -40% (反擊傷害修正)
.crit_chance_add 0% (反擊暴擊率修正)
.riposte_effect “effect_01” (反擊效果,沒有可省略)
.apply_once true (防止反擊修正疊加)
反擊提示:
(1)確保英雄程式碼檔案 info.darkest 中包含反擊技能條目:
riposte_skill:
.id “hero_riposte” .level 0 .type “melee”
.atk 100%
.dmg 0% (未修正前反擊傷害)
.crit 5% (未修正前反擊暴擊)
.launch 1234 .target 1234
.is_crit_valid True
(2)確保英雄動畫檔案 art.darkest 中包含反擊技能條目:
riposte_skill:
.id “hero_riposte”
.anim “attack_XXX” (音效:去 anim 資料夾下找同一技能的音效詞條)
.fx “opened_vein” (動畫:去 fx 資料夾下找同一技能的動畫詞條)
.targchestfx “blood_splatter” (動畫:去 總fx 資料夾下找一個合適的特效)
(3)確保引用反擊的 effect 子條目齊全:
大功告成!
.disease any(觸發隨機疾病)
.disease XXX(觸發疾病 “XXX” )( 搭配:.crit_doesnt_apply_to_roll true )
.remove_vampire 1(治癒猩紅詛咒)
[ 特殊效果 ]
.set_mode XXX(變身為模式XXX)
.skill_instant true(輔助說明專用語句)
.bark str_XXX_XXX(觸發語言視窗)(搭配:.queue true .apply_once true)
.actor_dot XXX(觸發動畫特效)
( 召喚類、魅惑類、固定類 effect 的樣本都是怪物,不予研究 )
[ 嵌入 buff —— 觸發機制 ]
.monsterType (怪物型別)
邪穢:”unholy”;人類:”man”;野獸:”beast”;異魔:”eldritch”;
.keyStatus(目標狀態)
標記:”tagged”;眩暈:”stunned”;流血:”bleeding”;腐蝕:”poisoned”
[ 嵌入 buff —— 持續時間 ]
.duration X(持續時間,預設下 -1 表示持續至紮營)
.buff_duration_type round(單位為 (個) 回合,預設為回合,可省略)
.buff_duration_type combat_end(單位為 (場) 戰鬥)
.buff_duration_type quest_end(單位為 (次) 任務)
[ 嵌入 buff —— 主體 ]
.buff_ids “XXX”(引用 buff “XXX”)
部分簡單 buff 可採用以下方式直接在 effect 中宣告:
.combat_stat_buff 1 +(Ⅰ類 buff,不可省略)
.speed_rating_add X(速度加成,可負)
.crit_chance_add X%(暴擊加成,可負)
.attack_rating_add X%(精準加成,可負)
.defense_rating_add X%(閃避加成,可負)
.protection_rating_add X%(防禦加成,可負)
.damage_low_multiply X%
.damage_high_multiply X%(攻擊加成,可負)
.buff_type +(Ⅱ類 buff,不可省略)+ .buff_amount X%(可負)
hp_heal_received_percent(被治療率加成)
crit_received_chance(被暴擊率加成)
torchlight_burn_percent(火把燃燒速率加成)
buff 程式碼地址
苦修者
dlc crimson_court features flagellant shared buffs flagellant.buffs.json
原版
shared buffs base.buffs.json
buff 相關程式碼描述:
{
“id” : ” buff 名稱 “,
“stat_type” : ” 效果型別 “,
“stat_sub_type” : ” 效果子型別 “,
“amount” : 數值,
“remove_on_battle_complete” : true,(true 代表戰鬥結束時移除 buff)
“duration_type” : ” 持續型別 “,(持續時間:單位)
“duration” : 持續時間,
“remove_if_not_active” : false,
“rule_type” : ” 觸發條件 “,
“is_false_rule” : false,(true 代表與觸發條件相反)
“rule_data” : {
“float” : 觸發數值,
“string” : ” 觸發詞條 “
},
“is_clear_debuff_valid”: false(false 代表不能主動清除該buff)
},
效果型別
“stat_type” — “stat_sub_type” — “amount”
(“stat_sub_type” 預設為 “”,”amount” 預設為百分小數)
( 綠色:正為收益,紅色:負為收益 )
【stat_type 治療】
hp_heal_percent 生命治療
hp_heal_received_percent 所受生命治療
【stat_type 壓力】
stress_heal_percent 壓力治療
—— hero_killing_blow 擊殺時(自行漢化)
stress_heal_received_percent 所受壓力治療
stress_dmg_percent 所受壓力傷害:隊伍
stress_dmg_received_percent 所受壓力傷害:自身
—— camping_eat 紮營時
—— hunger 飢餓時
—— mode 變身時
resolve_check_percent 美德概率
【stat_type 探險】
scouting_chance 偵察概率
monsters_surprise_chance 怪物驚慌概率
party_surprise_chance 隊伍驚慌概率
food_consumption_percent 食物消耗速率
remove_negative_quirk_chance 移除紅癖概率
resolve_xp_bonus_percent 礪煉值加成
shard_consume_percent 戰利品碎片加成(COM)
shard_reward_percent 全渠道碎片加成(COM,城鎮事件就是這個)
【stat_type 戰鬥】
“combat_stat_add” ——
—— “crit_chance” 暴擊率
—— “speed_rating” 速度(整數)
—— “attack_rating” 精準
—— “defense_rating” 閃避
—— “protection_rating” 防禦
“combat_stat_multiply” ——
—— “max_hp” 最大生命
—— “damage_low” & “damage_high” 攻擊
“resistance” 抗性 ——
—— “stun” 眩暈;”poison” 腐蝕;”bleed” 流血;”disease” 疾病
—— “move” 位移;”debuff” 減益;”trap” 陷阱;”death_blow” 死門
“disable_combat_skill_attribute” 禁用技能(”amount” : 1.0) ——
—— “heal” 治療;
—— “guard” 守護;
—— “move” 移動(自行漢化);
—— “stress” 壓力(自行漢化)
漢化提示:
ignore_stealth 無視潛行(”amount” : 1)
ignore_protection 穿甲比率
guard_blocked 無法被守護(”amount” : 1)
tag_blocked 無法被標記(”amount” : 1)
bleed_chance 流血技能概率
poison_chance 腐蝕技能概率
stun_chance 眩暈技能概率
debuff_chance 減益技能概率
move_chance 位移技能概率
crit_received_chance 被暴擊機率
damage_received_percent 受到傷害加成
random_target_attack_chance 攻擊目標變為隨機概率(COM)
damage_reflect_percent 傷害反彈比率(COM)
———— 時間 ————
guard_duration_percent 守護技能:持續時間加成(COM)
guard_duration_received_percent 受守護:持續時間加成(自行漢化)
hp_dot_poison_duration_percent 腐蝕技能:持續時間加成(COM)
hp_dot_poison_duration_received_percent 受腐蝕:持續時間加成(自行漢化)
hp_dot_bleed_duration_percent 流血技能:持續時間加成(自行漢化)
hp_dot_bleed_duration_received_percent 受流血:持續時間加成(自行漢化)
———— 傷害 ————
hp_dot_poison_amount_percent 腐蝕技能:傷害加成(自行漢化)
hp_dot_poison_amount_received_percent 受腐蝕:傷害加成(自行漢化)
hp_dot_bleed_amount_percent 流血技能:傷害加成(自行漢化)
hp_dot_bleed_amount_received_percent 受流血:傷害加成(自行漢化)
漢化提示:
持續時間
“duration_type” — “duration”
“quest_complete” 直到整個副本完成(”duration” : 1;DD本用的)
“quest_end” 直到任務結束(”duration” : 1)
“combat_end” 直到戰鬥結束(”duration” : 1)
“combat_end” 剩餘X場戰鬥(”duration” : X)
“activity_end” 直到城鎮活動結束(”duration” : 1)
觸發規則
“rule_type” — “rule_data” — “float”&”string”
(”rule_type” 預設為 “always”)
( _false 表示 “is_false_rule” : true )
(”float” 預設為 0;”string” 預設為 “”)
【”rule_type” — 指定自身狀態】
actorStatus 目標處於狀態 “string” 時 (“tagged” “bleeding” “poisoned” “stunned”)
is_actor_status 自身處於狀態 “string” 時 (“tagged” “bleeding” “poisoned” “stunned”)
hpabove / hpbelow 自身生命高於 / 低於 “float” 時(百分小數)
stress_above / stress_below 自身壓力高於 / 低於 “float” 時(0~200整數)
afflicted / afflicted_false 自身處於 / 不處於折磨時
virtued / virtued_false 自身處於 / 不處於美德時
in_rank / in_rank_false 自身處於 / 不處於位置 “float” 時(0~3整數)
at_deaths_door / at_deaths_door_false 自身處於 / 不處於死門時
has_quirk (CC)感染疾病 / 怪癖 “string” 時
is_vampire (CC)感染 猩紅詛咒 時
is_guarding (COM)使用守護時
is_stealthed (自行翻譯)潛行狀態下
no_trinkets (COM)不佩戴任何飾品時
has_item_id (COM)如果揹包有 “string” 時
“holy_water” 聖水;”medicinal_herbs” 草藥;”antivenom” 解毒劑;
“laudanum” “bandage” 繃帶;”dog_treats” 狗糧;
可以去 panels icons_equip 中選擇補給、寶石等作為指定物品
【”rule_type” — 指定時機 / 環境】
riposte 反擊時
skill 使用技能 “string” 時 (新技能字串:自行翻譯)
in_mode 變身處於模式 “string” 時 (新模式字串:自行翻譯)
meleeonly / rangedonly 使用近戰 / 遠端技能時
in_camp / in_camp_false 處於紮營 / 非紮營時
firstroundonly / firstroundonly_false 處於第一回合時 / 第一回合後
in_activity 處於設施 “string” 活動時
(”meditation”、”prayer”、”flagellation”、”bar”、”gambling”、”brothel”)
in_dungeon 處於副本 “string” 探險時
(”crypts” 遺蹟、”cove” 海灣、”weald” 荒野、warrens 獸窟)
in_corridor 在走廊時
in_room 在房間裡
walking_backwards 後退時
lightabove / lightbelow 環境亮度高於 / 低於 “float” 時(0~100整數)
【”rule_type” — 指定敵人狀態】
monsterSize / monsterSize_false 對戰體型為 / 體型不為 “float” 的怪物時
monsterType / monsterType_false 對戰種類為 / 種類不為 “string” 的怪物時
“unholy” 邪穢、”eldritch” 異魔、”man” 人類、”beast” 野獸
(COM) “husk” 糠粃、(CC) “vampire” 血裔、”fanatic” 狂信者、”stonework” 石像
target_is_vampire 對戰血裔時(CC)
monsterStatus_false 對戰狀態不為 “string” 的怪物時(不詳)
漢化提示:
“rule_type” 統一採用
“string” 統一採用