移動速度緩衝和損害修復

作者 SkyLover264·版本 v1.0·更新於 2018-11-09

Mod /資源修復了一個錯誤,通過正確應用魔法效果來防止增益和移動速度受損。

截圖 共 1 張

模組介紹 作者原文

Mod /資源修復了一個錯誤,通過正確應用魔法效果來防止增益和移動速度受損。

如果你曾經創造或使用過咒語,藥水,結界等,可以增加或損害移動速度,你可能已經注意到它似乎沒有任何效果。這是最值得注意的霜魔法,它應該將運動速度減半,持續幾秒鐘,但事實並非如此。事實證明,這是由於魔法效果改變移動速度的機制。

移動速度實際上取決於兩件事。首先是一組與不同生物和運動類型有關的速度形式,第二個是稱爲速度倍增器的演員值。當某些事情發生時,遊戲通過獲取當前運動的速度並將其乘以速度乘數來重新計算運動速度。這是問題發生的地方。

當魔法效果改變移動速度時,它實際上改變了速度倍增器,它在紙上工作,但在實踐中,遊戲不會在應用魔法效果時重新計算移動速度,也不會在速度倍增器改變時重新計算,所以法術/藥水/你有什麼看似被打破。

此mod通過將腳本附加到所有移動速度效果(爲瞬間更改效果的庫存重量的目標),然後在效果的開始和結束時還原更改,爲該問題提供了一個環形解決方案。由於對庫存的更改確實促使遊戲重新計算移動速度,這有效地使遊戲正確地處理這些效果。

隨意使用此腳本作爲資源並將其包含在您製作的任何mod中,但我建議鏈接回此頁面,以防新版本比您使用的版本更新。

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

If you've ever created or used a spell, potion, enchantment, etc, that buffs or damages movement speed, you may have noticed that it doesn't seem to have any effect at all. This is most notable with frost magic, which is supposed to cut movement speed in half for a few seconds, but doesn't. It turns out that this is due to the mechanics by which magic effects alter movement speed.

Movement speed is actually determined by two things. First is a set of speed forms pertaining to both different creatures and types of locomotion, second is an actor value called the Speed Multiplier. When certain things occur, the game recalculates movement speed by taking the speed for the current locomotion and multiplying it by the speed multiplier. This is where the problem occurs.

When a magic effect alters movement speed, it is actually changing the speed multiplier, which works on paper, but in practice, the game does not recalculate movement speed when a magic effect is applied, nor when the speed multiplier is changed, so the spell/potion/what-have-you appears to be broken.

This mod provides a roundabout fix for the problem by attaching a script to all movement speed effects which changes the target of the effect's inventory weight for a split second, then reverts the change, both at the start and end of the effect. Since changes to the inventory do prompt the game to recalculate movement speed, this effectively makes the game process these effects properly.

Feel free to use this script as a resource and include it in any mods you make, but I would suggest linking back to this page in case a newer version than what you used has been released.

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

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

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

檔案與校驗

檔案名稱
移动速度缓冲和损害修复
檔案大小
2.5 KiB
SHA-256
1c2329aaa88e9dface361938caf563431a1f42d61aa819d74ee99059c8cfe1db
入庫時間
2026-10-07 23:50