UPDATE!
Getting commands like /say and /gsay to work:
OnPress="say='This is a test.' say='This is a test.'"
The two executes much match exactly, and you must do each execute twice.
So, for example, if you wanted to make a button on the player window that casted a ward and announced it (out of macro slots?
), you would do something like this:
OnPress="gsay='Warding %t!' gsay='Warding %t!'
useability='Demonstration of Faith' useability='Demonstration of Faith'"
Bug to be aware of.
If you do a script with Anything=Somethingelse, and "Somethingelse" is a command, then you may have problems. Examples:
OnPress="mood='happy' mood='happy'"
OnPress="somevalue=(Some math thing that results in the number 2)"
The first will execute
/happy instead of
/mood happy because /happy is a command. No known way to work around this.
If you are in two or more chat channels, then the second script may give the message
Usage: /tellchannel <channelname> <message> because it thinks you're trying to talk in the second chat channel (/2 Hello!). I'm not certain how to work around it or why it started showing up with math calculations a patch or two ago.