WoW:MACRO cast: Difference between revisions

4 bytes removed ,  15 August 2023
m
Move page script moved page MACRO cast to WoW:MACRO cast without leaving a redirect
m (Move page script moved page MACRO cast to WoW:MACRO cast without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 23: Line 23:


Because 'target=' is a command (not a condition), you can use multiple option sets to automatically cast the spell on the appropriate target (see Examples at bottom). Its important to note that '@mytarget' is an alternate form of 'target=mytarget' where you can use @Fred to cast on Fred, or @player to cast spell on self.
Because 'target=' is a command (not a condition), you can use multiple option sets to automatically cast the spell on the appropriate target (see Examples at bottom). Its important to note that '@mytarget' is an alternate form of 'target=mytarget' where you can use @Fred to cast on Fred, or @player to cast spell on self.
 
*actionbar, bar - If you are using this particular actionbar. You must specify actionbar:# (#=action bar number).
;actionbar, bar
: If you are using this particular actionbar. You must specify actionbar:# (#=action bar number).
* button, btn - If you clicked a particular button to cast the spell (button:#, where #=1-5, LeftButton, RightButton, MiddleButton, Button4, or Button5).
* button, btn - If you clicked a particular button to cast the spell (button:#, where #=1-5, LeftButton, RightButton, MiddleButton, Button4, or Button5).
* channeling - If you are channeling a spell. You may optionally specify a specific spell using spell:''spellname''.
* channeling - If you are channeling a spell. You may optionally specify a specific spell using spell:''spellname''.
Line 38: Line 36:
* help, noharm - If target is friendly.
* help, noharm - If target is friendly.
* indoors - If your are indoors (anywhere you cannot mount is considered indoors).
* indoors - If your are indoors (anywhere you cannot mount is considered indoors).
* modifier, mod - If the click is modified with shift, ctrl, or alt. You may optionally specify which one by using modifier:key (key=shift, ctrl, or alt). -- "key=..." doesn't seem to work; use "mod" keyword for ctrl and alt. When using shift, the change actionbar function overrides this for numbers 1-6.
* modifier, mod - If the click is modified with shift, ctrl, or alt. You may optionally specify which one by using modifier:key (key=shift, ctrl, or alt). -- "key=..." doesn't seem to work; use "mod" keyword for ctrl and alt. When using shift, the change actionbar function overrides this for numbers 1-6.
* mounted - If you are mounted.
* mounted - If you are mounted.
* outdoors - You are outdoors (anywhere you can mount is considered outdoors).
* outdoors - You are outdoors (anywhere you can mount is considered outdoors).
Line 88: Line 86:


=== Let's analyze ===
=== Let's analyze ===
  [target=player, btn:2]
  [target=self, btn:2]
The script sets the target of the spell to yourself, and checks to see if you right-clicked. If you did, it skips the next two option sets and casts Flash Heal, keeping the '''target''' it set (you). If you didn't r-click, it checks the next option set:
The script sets the target of the spell to yourself, and checks to see if you right-clicked. If you did, it skips the next two option sets and casts Flash Heal, keeping the '''target''' it set (you). If you didn't r-click, it checks the next option set:


Anonymous user