巨集就是macro的中文翻譯。在《魔獸世界》中,利用暴風雪公司所制定的語法跟有限功能,玩家可以使用巨集來做一些簡單的判斷與相對應的動作,以達到簡化操作及節省快捷鍵空間的目地。
巨集(泛型)[]
- 以下請自行替換技能或法術名稱
- 攻擊用
#showtooltip /console Sound_EnableSFX 0 /targetenemy [noexists][dead][noharm] /cast [nocombat] 戰鬥前技能; 戰鬥時技能 /startattack /petattack [exists] /console Sound_EnableSFX 1 /script UIErrorsFrame:Clear()
- 斷法
#showtooltip /console Sound_EnableSFX 0 /stopcasting /cast 斷法技能 /console Sound_EnableSFX 1 /script UIErrorsFrame:Clear()
- 補血或輔助用
#showtooltip /console Sound_EnableSFX 0 /cast [@player,button:2][@target,help][@targettarget,help][@player][] 補血或輔助用技能 /console Sound_EnableSFX 1 /script UIErrorsFrame:Clear()
巨集(其他)[]
- 現在位置
/script SetMapToCurrentZone(); posX, posY = GetPlayerMapPosition("player"); /script DEFAULT_CHAT_FRAME:AddMessage(format("現在位置[%s] %i,%i",GetZoneText(),posX*100.0,posY*100.0));
- 休息獎勵經驗值額度
/script XPMax = UnitXPMax("player");XPx=GetXPExhaustion(); if (XPx==nil) then XP2=0; else XP2=XPx; end; /script DEFAULT_CHAT_FRAME:AddMessage(format("休息獎勵經驗值,額度 %i (%f%%)",XP2,((XP2/XPMax)*100)));
- 設定focus
/focus [target=mouseover]