NPC的龍魂吸收

作者 Voeille·版本 v1.0·更新於 2019-08-06

你有沒有想過你的龍和龍族朋友能像你一樣吸收被殺龍的靈魂? 現在他們可以。

截圖 共 1 張

模組介紹 作者原文

你有沒有想過你的龍和龍族朋友能像你一樣吸收被殺龍的靈魂? 現在他們可以。

概觀

這個mod允許你選擇的NPC能夠在龍被殺死時吸收龍魂 - 就像玩家一樣。吸收靈魂每次會增加1%的喊叫傷害(只要他們的喊聲魔法效果具有MagicShout關鍵詞)。龍殺死後,NPC可以在以下條件下吸收靈魂:

他們在戰鬥中至少一次針對那條龍(目標並不一定意味着打擊),

在龍死亡之前他們沒有離開戰鬥(如果他們離開並重新進入戰鬥,那就沒事了,只要他們再次瞄準龍)。

如果這些都是真的,他們有50%的機會獲得靈魂。

您可能已經注意到我還包括一個香草劇本 - 這是因爲當Miraak竊取靈魂時,我必須刪除Dragonborn DLC主要任務期間左上角出現的通知 - 否則它會出現在龍中靈魂被玩家以外的任何人吸收。

安裝

使用管理器或手動安裝,然後按照本文中介紹的幾個簡單步驟使用您想要的NPC進行設置。您可以添加任意數量的內容,並在播放期間更改它們而不會出現任何問題。在SSEEdit中只需幾分鐘。如果你不遵循教程,mod將絕對不做任何事情。

如果你想知道爲什麼我這樣做,而不是提供包含一些NPC的版本 - 兼容性問題。爲了將腳本應用於NPC,您需要覆蓋其記錄,這將自動使其與涉及所述NPC的任何大修和替換不兼容,並且需要一堆補丁。我的“空”版本允許您將腳本添加到您想要的任何人,而不必擔心兼容性。

可配置參數

使用控制台可以在遊戲過程中隨時更改這3個值:

吸收機會(默認值:50%);要更改,請鍵入SAbsorbChance設置爲X,其中X是數字(例如25,70;任何小於0的數字將表示爲0,任何大於100的數字將表示爲100)。

殺死龍的最大距離(默認值:10000);要更改,請將SAbsorbMaxDistance設置爲X,其中X是非負數。

最大跟蹤龍數(默認值:5);要更改,請將SAbsorbMaxTrackedDragons設置爲X,其中X是數字。鑑於您不能擁有一個變量大小的數組,有三個選項:5表示任何小於10的數字,15表示任何小於20的數字,30表示其他任何數字。被追蹤的龍是在離開戰鬥之前被NPC瞄準的龍。我認爲5綽綽有餘,即使使用mod,也不太可能同時對抗超過5條龍。

已知的問題

如果你的NPC有對話線,當他們吸收靈魂時可以使用它們並根據教程設置它們,它們將沒有字幕。這是因爲它們不是真正的對話,只是聲音文件。我有兩個理由在腳本中使用聲音文件而不是對話:

Say()函數最終變成了錯誤 - 線條要麼沒有說,要麼字幕被永久地卡住了。

最終用戶更容易以這種方式在SSEEdit中進行設置。

不要擔心,如果你的NPC沒有合理的線條,它們是可選的,並且mod將在沒有它們的情況下工作。

至於錯誤,我修復了我在測試期間遇到的錯誤(我花了太長時間使代碼失敗安全),但如果你發現任何奇怪的事情,請在評論中提及。

————————————————————————————————————————————————————

Overview

This mod allows NPCs of your choice to be able to absorb dragon souls when a dragon is killed – in the same way as the player can. Absorbing souls will increase their shout damage by 1% each time (as long as their shout magic effects have the MagicShout keyword). After a dragon is killed, an NPC can absorb the soul under the following conditions:

they’ve targeted that dragon during combat at least once (targeted doesn’t necessarily mean hit),

they didn’t leave combat before the dragon died (if they leave and re-enter combat it’ll be fine, as long as they get to target the dragon again).

If those are true, there’s a 50% chance they’ll get the soul.

You may have noticed that I’m also including a vanilla script – this is because I had to remove a notification that appears in the top left corner during the Dragonborn DLC main quest when Miraak steals a soul – otherwise it’d appear if a dragon soul is absorbed by anyone other than the player.

Installation

Install with a manager or manually, and then follow a few easy steps described in this article to set it up with the NPCs you want. You can add as many as you like, and change them during your playthrough with no issues. It only take a few minutes in SSEEdit. If you don’t follow the tutorial, the mod will do absolutely nothing.

If you wonder why I did it that way instead of providing a version with a few NPCs included – compatibility issues. In order to apply the script to an NPC, you need to override their record, which would automatically make it incompatible with any overhauls and replacements that involve said NPC, and require a bunch of patches. My ‘empty’ version lets you add the script to anyone you want, and without worrying about compatibility.

Configurable Parameters

These 3 values can be changed at any point during the game using the console:

Absorb chance (default: 50%); to change, type in set SAbsorbChance to X, where X is a number (e.g 25, 70; any number less than 0 will act like 0, and any greater than 100 will act like 100).

Maximum distance from the killed dragon (default: 10000); to change, type in set SAbsorbMaxDistance to X, where X is a non-negative number.

Maximum number of tracked dragons (default: 5); to change, type in set SAbsorbMaxTrackedDragons to X, where X is a number. Given that you can’t have an array that has a variable as its size, there are three options: 5 for any number less than 10, 15 for any number less than 20, and 30 for anything else. Tracked dragons are dragons who have been targeted by the NPC before leaving combat. I think 5 is more than enough, it’s highly unlikely to fight more than 5 dragons at once even with mods.

Known Issues

If your NPCs have dialogue lines that can be u …

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 這類遊戲沒有通用的模組管理器:有的模組直接替換遊戲檔案、有的放進遊戲專屬的 Mods 資料夾、有的要先裝遊戲對應的社群載入器或工具,以包內說明為準。
  3. 嚴格按說明放置檔案;標註「前置依賴」的模組需要把依賴一併裝好。
  4. 啟動遊戲確認載入成功;部分遊戲需要在設定或模組選單裡手動啟用。

不同遊戲、不同模組的安裝位置差異很大,包內說明是最可靠的依據。

檔案與校驗

檔案名稱
NPC的龙魂吸收
檔案大小
10.3 KiB
SHA-256
5f456e5342ec4a27bde5c0e4063701225295dfe44f387b947c4ca482cf23a001
入庫時間
2026-10-10 18:11