no edit summary
(Removing add-on advertisement.) |
No edit summary |
||
| Line 25: | Line 25: | ||
{{faqq}}What's the real deal with pauses? | {{faqq}}What's the real deal with pauses? | ||
{{faqa}}You can't use a pause before a spell or ability. However... you can use certain script commands based on time, such as the | {{faqa}}You can't use a pause before a spell or ability. However... you can use certain script commands based on time, such as debug or movement commands. | ||
For example, the following script command inserted between other /commands will temporarily freeze all game input/output for the duration specified. | |||
''Where 500 is equal to a 0.5 second delay (250=0.25sec, 1000=1sec, 10000=10sec, etc.)'' | |||
/script debugprofilestart();while debugprofilestop()<500 do end; | |||
Though this technique does effectively pause your macro for the desired interval, there is a downside. | |||
The game-freezing pause this script causes can be an unsettling and undesired side-effect for some players. The freeze can prevent the player from perceiving the visual results of the /command immediately preceding this script. So depending on the duration you specify, the greater the pause, the more background action you will miss. | |||
This effect is strictly local and does not impact the game server or other players in any way. Though you may partially or entirely miss the results, you ''can'' be assured that the preceding /command ''is'' in actuality transmitted to the server and executed before the localized freeze takes place. | |||
See the [[World of Warcraft API]] for more on time based script commands. | |||
== See also == | == See also == | ||
* [[UI FAQ/Macros and Scripts]] | * [[UI FAQ/Macros and Scripts]] | ||
* [[Most used macros]] | * [[Most used macros]] | ||
[[Category:FAQs]] | |||
[[Category:Macros]] | |||
[[Category:FAQs]] [[Category:Macros]] | |||