參考資料 › 條件瀏覽器 › 空間

距離內計數

經典時代TBC 週年版經典進程永久正式版
  • 該版本無法使用(原因請見提示)
  • 取決於設定、你的職業或其他插件(詳情請見提示)

作用

將你周圍設定距離內的單位數量與你設定的數量進行比較:勾選「敵人」時統計敵人,否則統計其他所有單位;勾選「戰鬥中」時只統計處於戰鬥中的單位。如果任何將被統計的單位的距離不確定,則整個計數無法使用。

為什麼會用到它

Counts the units around you within a distance: enemies when Enemy is ticked, non-enemies when it is cleared. The classic use is a switch condition or branch that moves to an AoE rotation when enough enemies are close, such as Whirlwind, Blizzard, Consecration or Swipe at 3 or more targets within 8 yards. It counts what the addon can observe, mainly nameplates, so turn enemy nameplates on; the distance cannot exceed your nameplate distance setting, and when any unit's range is uncertain the whole count is unavailable. Tick In Combat to count only units that are fighting, so an idle pack beside the pull does not start your AoE rotation. See also 距離.

範例

敵人在 8 碼內的數量 大於或等於 3

設定

條件編輯器中每項設定的意義,取自遊戲內的說明。

敵人 - 勾選時統計敵人,取消勾選時統計非敵人。

戰鬥中 - 只統計處於戰鬥中的單位。對敵人來說,是指此刻正在戰鬥的敵人,而不是所有名條可見的敵人。若遊戲不回報某個單位的戰鬥狀態,則該統計為無法使用。

運算子 - How to compare 距離內計數 with the 計數 value. This comparison uses basic mathematical comparison operations.

計數 - 已確認位於你「距離」範圍內的已觀測單位數量。

距離 - 統計的是插件已觀測到的單位快照,包括名條與被追蹤的單位別名,而不是附近的每個單位。只有當某個單位的距離上限在「距離」之內時才計入;成員身分不確定,或身分、敵對狀態、距離或名條設定無法讀取,都會使整個計數為無法使用,在「除非」下同樣如此。已知消失或被重複使用的單位代碼會被排除。「距離」不能超過目前的名條距離設定;該設定也不能保證掃描完整。

其程式碼使用的輔助函式

識別碼
DISTANCE_COUNT
分類
空間
切換條件
預設為切換條件

返回條件瀏覽器