Current location - Recipe Complete Network - Complete cookbook - Master LR of World of Warcraft is here.
Master LR of World of Warcraft is here.
Want macros? First, basic macro commands

1. What is a macro?

A macro consists of a set of macro commands. Here are some common macro commands:

/say (/s)

/whisper (/w, /talk, /t)

/emote(/e,/em,/me)

/dancing

People who love PVP should not forget this:/Tucao

Using macros, we can put these macro commands on the skill bar and click to use them, and we can do multiple actions at the same time. When writing a macro, every action is written on one line, just like typing in a chat interface. For example, let your character shout "Everybody, dance now!" Then start dancing. Macro:

/y Everybody, let's dance now!

/dancing

Here you can refer to a basically complete list of macro commands: a complete list of macro commands, but some newly added macro commands are not included. WoWWiki has a lot of information about macros, especially scripts and /run commands (mentioned later).

Note: First of all, the macro is executed immediately. This means that when you click a macro on the skill bar, the macro commands will be executed one by one, and you will return to the game control after execution. This will cause two important problems: first, if you write a macro that needs to be executed for a long time (for example: /run for I = 1, 1000000000 do end), the game will be stuck until its execution is over; Second, and more importantly, macro commands can't have delay function. This phenomenon can be clearly felt after we are familiar with commands such as /cast. However, some plug-ins that provide the function of delaying the execution of commands can only execute some so-called "benign commands", such as speaking, expression and calling other plug-ins (although weapons can be changed in battle).

2. How to write a macro?

First, open your macro window: click the "Macro" button on the main menu, or enter /macro(/m) in the chat interface and press enter. At the top of the macro window, you can see two tabs: General Macro and Special Macro. Common macros are stored in a folder dedicated to the account and shared by all roles. Role-specific macros are stored in the role's own folder, which is role-specific (nonsense … embarrassing). Below the label is the 18 field for storing macros. Further down is the field that displays the currently selected macro; There is also a Modify Name/Icon button to modify the selected macro. Then a text box is used to display and edit the current macro. There are three buttons at the bottom, even a fool can see their functions.

If you want to create a macro, first click the "New" button at the bottom of the window. At this point, a dialog box will be displayed next to the window, select an icon and enter the name of the macro. If you select the first icon (that is, the red violence question mark), WoW will automatically select the icon according to the skills or items involved in your macro command. Select the icon, enter a name, and then click OK.

That's right: 1 Macros that use question mark icons can specify which icons are displayed by using #show. 2. Although you can give different macros the same name, it's better not to. Because some plug-ins and macro commands call macros by their macro names. 3. You can add custom icons to the icon list.

The macro icon you selected is now displayed in the field (some macro names are also displayed). At the same time, the newly created macro is selected, and the icon is displayed in the field of the currently selected macro: Now you can write your macro. Click the edit text box, and then type.

Note: Macros are limited to 255 characters. It is rumored that this is done to upload the user's macro to the server in the future. But ... what we can do now is to follow this restriction. As for porting macros to other machines, please refer to the third part of macro porting.

After writing a macro, just drag and drop its icon to the skill bar. When you execute the macro or close the macro window, the macro will be saved automatically. Now click on the macro icon to see the effect!

Work magic

In the normal game process, it seems that many macro commands are not easy to use through the chat window, but they are different in macros. In some cases, simple expression macros can also produce interesting role-playing effects. So, keep watching. ...

This: /cast is the most common macro command. Function is to cast skill book skills (including pets). The simplest usage is:

/Projected word: pain

Click this macro on the skill bar, and it will cast your highest pain on the target. This is the same as dragging the pain in the skill book to the skill bar and then ordering it. The macro we made will also show your skill cooling state and range state in the skill bar, and you can also cast pain correctly after clicking it. If the macro uses the question mark icon, it will also display the original icon.

Then just use the skills directly. Why use macros? Continue to see what effect can be produced by integrating multiple commands in macros, which is the value of macros. For example, if you are a mage and want your teammates to know who you want to lose, what should you do? Using a macro is just a simple /p command plus a /cast (using this shameless plug-in can achieve better results: CCWarn, but what we need now is this easy-to-understand teaching example):

/casting deformation

/p My sheep %t! Whoever hits will carry it!

Note: Since the macro is executed immediately, the /p command will be executed when the macro is clicked, regardless of whether the target is valid or not. That is to say, the two lines of commands will have the same effect after being reversed. If you want to execute a command after successfully casting a skill, you can try this plug-in: AfterCast. AfterCast can be set to execute a macro command after casting a skill, of course, under the restrictions mentioned at the end of section 1. For example:

/aftercast /p Please ask your teammates to knock on the door and get the lazy pig %t!

/Actor Summoning Ceremony

First, the skill name and level description

The /cast command is very strict with skill names. You can't make any mistakes in words, punctuation and spaces. To prevent mistakes, when editing a macro, you can open the skill book, hold down the Shift key and click your skill icon, and the skill name and level will be correctly entered in your macro editing text box, for example:

/Cast Shadow Words: Pain (Level 5)

If "(Level 5)" is deleted, the macro will automatically select your highest level skill to execute when executing; But in many cases, it is still necessary to specify the level of skills, such as warlock exile, and it is necessary to choose skills according to time. In addition, it should be noted that the brackets used in the grade indication are English half-angle brackets, and there is a half-angle space between the grade and the number. The brackets in some skill names, such as "Xianhuo (Wild)", are full-angle brackets in Chinese. The following macro commands cannot be executed normally:

/Cast faerie fire (Wild)

/Cast faerie fire (Wild) (level 1)

The following command is correct:

/Cast faerie fire (Wild)

/Cast faerie fire (Wild) ()

Empty brackets have the same effect as no brackets. Because of the 255-character limit, you can still save space, so you can delete empty brackets. ...

4. Use items or accessories

Using objects and ornaments is similar to casting spells. The command used to use the item is /use, just add the name of the item after it. For example:

/Use the green mechanical Chocobo.

In addition, there are the following other usage formats:

I ./ using the < lt equipment bar >

This format can use items in the specified equipment bar. Please refer to the numbering method of equipment column for specific use. For example:

/use 13

Use the first ornament.

Two. /use & lt; Backpack >< column >

This table determines the item column in the designated backpack. For example, if you always put cat food and dog food in the first column of your bag, you can use this macro to feed your pet:

/casting and keeping pets

/Use 0 1

The number of backpacks is 0-4, and the order is from right to left, that is, 0 is a bag. Item columns are numbered from top to bottom, from left to right, starting from 1 (the same as the writing order):

1 2 3 4

5 6 7 8

……

Or:

1 2

3 4 5 6

7 8 9 10

……

If you are afraid of confusing the usage of /cast and /use, mix them completely, because they are exactly the same. /cast can use items, and /use can cast skills. This doesn't seem important at present, but when you introduce command conditions and cast queues in the future, you will find how cool it is to mix items and skills in the same command.

5. Integrate multiple actions

First of all, it is impossible to release multiple spells with one click in a macro. Most skills and many items will trigger common cooling (GCD) to prevent you from doing too many actions at the same time. Even if a skill fails to be released, if it can trigger GCD, it will prevent the execution of subsequent /cast commands. This is the setting after version 2.0, and you may see such a macro before:

/Forced conversion suppression

/kill

/cast a fatal blow

/casting armor-breaking

But now, remember, this kind of macro can't be executed normally. If the suppression casting fails, although GCD is not triggered, the client will not continue the subsequent skill casting. But the good news is that some skills can still be integrated into macros. Any instant skill that does not trigger GCD can be followed by another skill (the "next melee attack" skill, such as heroic strike, also belongs to this category). A skill can know whether it is instantaneous or not by reading the manual, and whether it triggers GCD can be known through experiments.

Before version 2.3, you need to add a /stopcasting after this instant GCD skill to cast subsequent skills. After casting the first skill, the game client will think that it is currently in the casting state, and /stopcasting can release this state, which can solve the problem that subsequent skills cannot be released. But because the skill is instantaneous, /stopcasting can't actually cancel the skill casting.

You don't need /stopcasting here now, for example:

/use instant energy amulet

/cast arcane reinforcement

//Stop playing

/keep calm and relaxed

//Stop playing

/release explosive

Select target

Selecting a target is another major function of a macro. This function can be realized by changing the current target through a special target selection command; You can also use [target=] command conditional language in some commands to temporarily specify the target of casting spells or using items without changing the current target. Command conditional sentences will be discussed in the second part. Now let me introduce the target selection command first.

The most basic command is /target, which is used as follows:

/target gear

The choice of /target is the best close match, that is, if I stand near you (and there is no Cog nearby), you execute /target Cog, and I will become your current target. As for the advantages and disadvantages of this mechanism ... it depends on the actual situation, because this thing looks unstable and sometimes it will get inexplicable results. For example, the following macro may not be very useful:

/Target Black Wings Mage

/cast a painful curse

What if there is no black-winged mage nearby? Perhaps as a result, some people in the group were selected because their names were similar in some sense. Although your curse will not really be released to them, it is embarrassing enough. Another problem is that it may choose the unit behind you 100 yards away-not the unit you want to choose at all ... but after version 2.3, the first problem was solved by adding a /targetexact command.

In addition to selecting by name, you can also select by unit identifier. Unit ID is a string used to identify a specific unit. For example, your current goal can be represented by "goal", and your corresponding identifier is "player". If you have a pet, its identifier is "pet". In addition, by adding target after the correct identifier, you can get his target. Such a pervert can also:

/target target target target target target

The following is a complete list of available ids: unit identifier.

I. other selection commands

The following are other target selection commands:

/assist

Without any other parameters, the effect is to choose the target of your target. If you add a person's name after it, you will choose the current target of the corresponding person. For example:

/Auxiliary cogwheel

In addition, there is an option in the interface options of the client, which can set whether to automatically attack enemy targets when selecting with /assist.

/cleartarget

Clear the current target.

/targetexact

Accurate selection, if there is no company name matching the given parameters nearby, the target will not switch.

/Target Last Target,/Target Last Friend and/Target Last Enemy

As the name implies, it is used to select the last target, the last friendly target and the last enemy target respectively. If you didn't have any goals before, then these commands won't have any impact.

/targetnemy and /targetfriend

Choose enemy targets, choose friendly targets. These two commands select the specified type of targets in a certain order, which is similar to the effect of using the Tab key. If you add a 1 as a parameter after the command, you will choose the opposite direction of the loop. For example:

/target enemy country 1

The effect is the same as pressing Shift+Tab.

Note: These two macro commands can only be used once in each macro.

/targetparty and/targetplaid

Select a team or team member close to you according to the distance cycle, like /targetnemy, or you can.