Object respawning/zh: Difference between revisions

no edit summary
(Created page with "這一類的物件主要包含勇導石(林克拿希卡石去碰的東西),這些物件只能使用一次。")
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:




''曠野之息''裡的材料、武器、跟敵人會在一段時間後重生。這個機制是為了防止遊戲世界變得「太空曠」。確切的重生規則取決於每種東西的特性。
''曠野之息''裡的材料、武器、跟敵人會在一段時間後重生。這個機制是為了防止遊戲世界變得「太空曠」。確切的重生規則取決於每種東西的特性。


GameData 裡用來追蹤每個東西應該如何重生的 flag 叫做 "revival flags"(復活標籤)。這些 revival flags 無時無刻都存在遊戲的記憶體裡,即使是相應的物件可能並不存在。
GameData 裡用來追蹤每個東西應該如何重生的 flag 叫做 "revival flags"(復活標籤)。這些 revival flags 無時無刻都存在遊戲的記憶體裡,即使是相應的物件可能並不存在。
Line 18: Line 18:
=== 重生用地圖網格 ===
=== 重生用地圖網格 ===


上面提到的商品和另一類隨機生成的物件(下面會詳述)使用的地圖網格和正常的地圖網格有一點點不同。這裡用到的地圖網格有 10 columns (從 0 到 9)和 8 rows(從 0 到 7)。
上面提到的商品和另一類隨機重生的物件(下面會詳述)使用的地圖網格和正常的地圖網格有一點點不同。這裡用到的地圖網格有 10 columns (從 0 到 9)和 8 rows(從 0 到 7)。


假設一件商品(或一個隨機重生的物件)位在第 <code>itemCol</code> 個 column 跟第  <code>itemRow</code> 個 row 裡,那麼玩家「不在指定區域內」的意思是
假設一件商品(或一個隨機重生的物件)位在第 <code>itemCol</code> 個 column 跟第  <code>itemRow</code> 個 row 裡,那麼玩家「不在指定區域內」的意思是
Line 49: Line 49:
This grid is shown on the object map. It is also possible to show the no-revival area for an object by right clicking on it.
This grid is shown on the object map. It is also possible to show the no-revival area for an object by right clicking on it.


== 血月重生機制 (RevivalBloodyMoon) ==
== 血月後重生的物件 (RevivalBloodyMoon) ==


血月 [[blood moon]] 是大部分武器跟敵人重生的關鍵。每次血月出現後,所有跟血月有關的 revival flags 都會被重設為預設值。
血月 [[blood moon]] 是大部分武器跟敵人重生的關鍵。每次血月出現後,所有跟血月有關的 revival flags 都會被重設為預設值。
Line 567: Line 567:
}}
}}


== Random revival (RevivalRandom) ==
== 隨機重生的物件 (RevivalRandom) ==


Objects under the RevivalRandom policy will be revived at random times ''independently of'' blood moons. This is used for most materials (fruits, rocks, etc.)
RevivalRandom policy 底下包含的物件會在隨機時間點重生。此時間長短與紅月無關。這一類的物件主要是素材(植物、水果、石頭等)。


Revival flags for objects under this policy have their [[ResetType]] set to 0 and the position of the object on the main map is stored in the upper 7 bits of the initial flag value.
這些物件的 [[ResetType]] 是 0,and the position of the object on the main map is stored in the upper 7 bits of the initial flag value。


{{actor list|label='''Actors under the RevivalRandom policy'''|content=
{{actor list|label='''Actors under the RevivalRandom policy'''|content=
Line 830: Line 830:
}}
}}


=== RevivalRandom and RevivalRandomForDrop logic ===
=== 隨機重生跟隨機掉落的邏輯 ===


Every 60 seconds<ref>Time spent in menus and cutscenes does not count</ref>, [[RadarMgr]] determines where the player is on the revival grid.
每隔六十秒<ref>Time spent in menus and cutscenes does not count</ref>[[RadarMgr]] 會計算玩家在重生用網格上的位置。


If the player is on AocField (Trial of the Sword):
如果玩家在 AocField(劍之考驗)裡:
* Special flags (with the reset data set to 127) are ''skipped''.
* 某些特殊的 flags (with the reset data set to 127) 會被忽略而不重生.
* Any other revival flag has a ''1% chance'' of being reset.
* 其他物件有 ''1% 機率''重生。


Otherwise:
如果玩家不在劍之考驗裡,那麼檢查:
* If the player is on MainField, special flags have a ''1% chance'' of being reset.
* 如果玩家在主世界裡,上面講到的特殊的 flags ''1% 機率''重生。
* If the player is not on MainField, non-special flags also have a ''1% chance'' of being reset.
* 如果玩家不在主世界裡不特殊的 flags 也有 ''1% 機率''重生。
* In any other case, flags have a ''1% chance'' of being reset, but only if the player is not in the same map area as the object that is to be revived.
* 若以上皆非,那麼每個 flag 還是有 ''1% 機率''重生,前提是玩家跟該物件不處在同一個網格裡。


== Random drop revival (RevivalRandomForDrop) ==
== 隨機掉落的物件  (RevivalRandomForDrop) ==


Drops of objects under the RevivalRandom policy will be revived at random times ''independently of'' blood moons. This is used for wooden boxes and other things that contain materials (fruits, etc.)
RevivalRandomForDrop policy 底下包含的物件會在隨機時間點重生。此時間長短與紅月無關。這一類主要是打壞木箱後掉出來的東西(水果等)。


Revival flags for objects under this policy have their [[ResetType]] set to 0 and the position of the object on the main map is stored in the upper 7 bits of the initial flag value.
這些物件的 [[ResetType]] 是 0,and the position of the object on the main map is stored in the upper 7 bits of the initial flag value。


{{actor list|label='''Actors under the RevivalRandomForDrop policy'''|content=
{{actor list|label='''Actors under the RevivalRandomForDrop policy'''|content=
Line 890: Line 890:
}}
}}


== Revival whenever the Lord of the Mountain appears (RevivalUnderGodTime) ==
== 和山林霸主一起出現的物件 (RevivalUnderGodTim) ==


Objects under the RevivalUnderGodTime policy will be revived whenever the Lord of the Mountain appears (more precisely, when the AnimalMaster_Appearance flag is set by [[WorldMgr]]).
RevivalUnderGodTime policy 底下的物件會和山林霸主一起出現,也就是當 AnimalMaster_Appearance flag [[WorldMgr]] 設成 true 的時候。


Revival flags for objects under this policy have their [[ResetType]] set to 4.
對這類物件而言,[[ResetType]] 的值是 4。


{{actor list|label='''Actors under the RevivalUnderGodTime policy'''|content=
{{actor list|label='''Actors under the RevivalUnderGodTime policy'''|content=
translator
745

edits