魔兽世界wlk:战士标记宏的实用指南



在《魔兽世界》巫妖王之怒(WLK)版本中,存在着众多的宏命令。今天呢,要给诸位分享游戏里战士标记宏。也许有些小伙伴还不太了解这一内容,没关系,下面就为大家带来与之相关的内容,快来一起看看吧。

《魔兽世界wlk:战士标记宏的实用指南》

魔兽世界wlk战士标记宏

你需要新建一个宏,这个宏你可以命名为“快速标记”。下面是你要做的操作:直接把代码进行复制,接着把这个窗口关闭(也就是“x”掉),再设置一个快捷键,我目前设置的是“鼠标上滚”,你可以按照自己的需求随意设置。

Let's set z equal to the index of the raid target obtained by using the "mouseover" function. That is, we perform the operation z = GetRaidTargetIndex("mouseover"). If z is not equal to null, then the DEFAULT_CHAT_FRAME will add the message "The target already has a mark", with the color values of 0.8, 0.8, and 1. However, if y is not null and y is greater than or equal to 1 and less than 8, then increment y by 1 and set the raid target for the "mouseover" with the new value of y. Otherwise, set y to 1 and set the raid target for the "mouseover" with the value of 1. Finally, end the relevant conditional statements. 在这里,我们可以进一步解释一下这个逻辑流程。当检查到变量z不为空时,就会在默认聊天框架中添加特定消息。而对于变量y的处理则分情况,在满足一定数值范围条件时对其进行加1操作并设定鼠标悬停的团队目标为新的y值,若不满足则将y设定为1并设定相应团队目标。这种处理方式在很多游戏或者特定的交互程序中可能用于标记管理或者状态判定等功能。

你可以再创建一个宏,将其命名为“清除标记”。直接把下面的代码复制过去,之后关闭(我这里目前是点击“x”关闭),再设置“鼠标中键”(我当前使用的)为快捷键就可以了,随你怎么操作。

``` local i for i = 1 to 9 do -- 这里的SetRaidTarget函数用于设置玩家的团队标记,将玩家("player")的团队标记设置为从1到9的数字 SetRaidTarget("player", i) end ```

/script y=0;

完成以上操作

官方标记键位设置

鼠标上滚设置三个标记

鼠标中键取消所有标记

提前设置一个确定的标记,其他怪用宏标记

澄拾游戏 » 魔兽世界wlk:战士标记宏的实用指南