macro FAQ
Macro FAQ (note: you are not allowed to use macros yet)
Okay, okay, this isn't really a FAQ, more like a mini-lesson on how to use the /macro
command. But isn't "macro FAQ" easier to remember than "macro mini-lesson-and-possibly-later-even-some-frequently-asked-questions"?
Use /macro
A macro can be used in the chatterbox by typing:
/macro
macroname [ parameter1 [ parameter2 [ ... ] ] ]
You first have to enable the macro(s) you wish to use, though, at user settings 2. For each macro you may want to use, check the appropriate box in the "Use?" column. If you don't want to use a macro any more, uncheck the box. If you desire, you can edit the macro to your liking.
Example
Here is an example of how to use the default "newbie" macro, which sends a private message to a user, telling them about Everything University and Everything FAQ, and how to /msg you back.
- visit user settings 2
- in the "Macros" section, find the "newbie" macro, and check that checkbox
- press the "Submit" button
- in the chatterbox, type:
/macro newbie Guest_User Duh, this is easy stuff!
- press the "Talk" button :)
What you just did was send a basic E2-usage message to a newbie (in this case, you). In the default "newbie" macro setup, the messages are sent to the user specified in the first parameter (in this case, you). Anything you type afterwards are added to the first message.
Variable Substitution
So far, macros only support the /say
command, which treats everything after it as something you typed in the chatterbox. Well, mostly... there are a few variables that you can use. Each variable must have a space on each site.
If you use $0
by itself, your username will substituted in (with underscores, if your name has spaces in it).
If you use $1
and up (in the form $
n), that will substitute the first (or nth) word you entered after the macro's name.
But what if you want to type a whole bunch of words? Instead of doing something like $3 $4 $5 $6
..., you can use $3+
which will show all the words after the second.
Created Macros
This section will have some useful macros people have created.
(Um, has anybody done anything useful with these? Although I doubt it, tell me if so.)
Miscellaneous
Note: if you want to use a square bracket, [ and/or ] in the macro definition (that is, in the place where you type in the macro in user settings 2), you'll have to type it as a curly brace, { and/or } (sorry about that).
Note: in most cases, the first parameter is the user you want to get the macro text. As is the case with sending a normal private message, if the user has a space in their name, you should change them into underscores.
FAQs (Wow! Some actual questions in something that is supposed to be all Q & As!)
- Q: Who can use macros?
- A: Currently, only Content Editors and gods may.
- Q: What happens if you call a macro recursively?
- A: Who knows? While it doesn't cause an infinite loop, it also doesn't seem to work as expected. So for now, don't. :-/
Stored Macros
Here are all your currently defined macros. You can edit them at user settings 2.
Name | Text |
---|
Lame Guide/FAQ/etc. Thingy
If you have a question about macros, you can /msg N-Wing
, so this currently-lame guide can be updated. You can also /msg N-Wing if you have an idea for better default macros, and/or want more added that would be probably used by other people.