FANDOM


(Duplicate command)
 
(Combining options with , and /)
Line 1: Line 1:
 
In the Commands section, the /cancelaura command is listed twice - once in General and once in Buffs/Auras. --[[User:Dorenthas|Dorenthas]] 13:49, 22 February 2007 (EST)
 
In the Commands section, the /cancelaura command is listed twice - once in General and once in Buffs/Auras. --[[User:Dorenthas|Dorenthas]] 13:49, 22 February 2007 (EST)
  +
  +
== Combining options with , and / ==
  +
  +
The following (taken from the article) does not seem to be exact:
  +
:''Note: "," combines options by boolean And; "/" combines by boolean Or; prefacing an option with "no" e.g. "nochanneling" from "channeling", negates it.''
  +
It seems that "," works as a boolean And option separator, while "/" works as a boolean Or option '''argument''' separator.
  +
Let's say I want a macro that uses the Hearthstone while not in combat; however, I want to be able to use it in certain combat situations (perhaps I'm an experienced PvP paladin ;) ), so I want to be able to use it if I hold down the Alt key, no matter my combat state. I could try the following:
  +
:''/use [nocombat/modifier:alt] Hearthstone''
  +
According to the wiki, that should mean "(No (Combat)) Or (Modifier)", but what it really does is "No (Combat Or Modifier)", and this is rejected by WoW with a message stating "Unknown option combat/modifier". This allows me to conclude that "/" cannot be used as a boolean Or on options themselves.
  +
  +
Now, let's say I want a macro that uses the Hearthstone only when I hold both Ctrl AND Alt. (Perhaps I don't trust my unl33t clicking skills and I'm afraid of using the macro accidentally, and 10 seconds isn't long enough for me to realize I'm hearthstoning accidentally. :P ) I could try the following:
  +
:''/use [modifier:alt,ctrl] Hearthstone''
  +
Well, it's pretty obvious it won't work, because "," separates options, not option arguments. So WoW rejects this with an "Unknown option ctrl" (that is, assuming I'm holding down Alt, otherwise the first condition is false and the rest of the conditions aren't even evaluated), which is expected.
  +
  +
I recommend modifying the article to reflect this different use between "," and "/": "," separates options with a boolean And, "/" separates option ''arguments'' (after a ":") with a boolean Or.
  +
--[[User:Dorenthas|Dorenthas]] 10:56, 1 April 2007 (EDT)

Revision as of 14:56, April 1, 2007

In the Commands section, the /cancelaura command is listed twice - once in General and once in Buffs/Auras. --Dorenthas 13:49, 22 February 2007 (EST)

Combining options with , and /

The following (taken from the article) does not seem to be exact:

Note: "," combines options by boolean And; "/" combines by boolean Or; prefacing an option with "no" e.g. "nochanneling" from "channeling", negates it.

It seems that "," works as a boolean And option separator, while "/" works as a boolean Or option argument separator. Let's say I want a macro that uses the Hearthstone while not in combat; however, I want to be able to use it in certain combat situations (perhaps I'm an experienced PvP paladin ;) ), so I want to be able to use it if I hold down the Alt key, no matter my combat state. I could try the following:

/use [nocombat/modifier:alt] Hearthstone

According to the wiki, that should mean "(No (Combat)) Or (Modifier)", but what it really does is "No (Combat Or Modifier)", and this is rejected by WoW with a message stating "Unknown option combat/modifier". This allows me to conclude that "/" cannot be used as a boolean Or on options themselves.

Now, let's say I want a macro that uses the Hearthstone only when I hold both Ctrl AND Alt. (Perhaps I don't trust my unl33t clicking skills and I'm afraid of using the macro accidentally, and 10 seconds isn't long enough for me to realize I'm hearthstoning accidentally. :P ) I could try the following:

/use [modifier:alt,ctrl] Hearthstone

Well, it's pretty obvious it won't work, because "," separates options, not option arguments. So WoW rejects this with an "Unknown option ctrl" (that is, assuming I'm holding down Alt, otherwise the first condition is false and the rest of the conditions aren't even evaluated), which is expected.

I recommend modifying the article to reflect this different use between "," and "/": "," separates options with a boolean And, "/" separates option arguments (after a ":") with a boolean Or. --Dorenthas 10:56, 1 April 2007 (EDT)

Community content is available under CC-BY-SA unless otherwise noted.