Help Entries starting with 'G'
@give
- @give <giver>[=<message>]
- @ogive <giver>[=<message>]
- @agive <giver>[=<message>]
@give sets the message that is shown to the giver when giving an object to someone else. @ogive is a message shown to others in the giver's location, and @agive is an action run by the giver. If not set, the giver gets a default message.
%0 will be set to the dbref of the object given. %1 will be set to the dbref of the recipient.
@grep
- @grep[/<switch>] <object>[/<attrs>]=<pattern>
This command searches attributes in an object for <pattern>. It takes
four switches:
@grep/list
Lists the names of the attributes on the object containing <pattern>.
@grep/ilist
Same as above, but is case-insensitive when trying to match <pattern>.
@grep/print
Prints out all the attributes, highlighting the pattern itself in
boldface, if you're ANSI.
@grep/iprint
Same as above, case-insensitive.
When used without a switch, @grep defaults to @grep/list. (continued in help @grep2)
@grep2
You must be able to see attributes on <object> (i.e. you must control the object, it must be VISUAL, or you must be a Wizard or Royalty).
<attrs> is an optional wildcard pattern specifying attributes to match (much like @edit). If <attrs> is not provided, all attributes are assumed (just as if you had provided "*").
<pattern> is not treated as a wildcard pattern, so you can grep for patterns containing '*', '?', etc. Also, <pattern> is NOT PARSED, so '[v(0)]' and the like can be searched for.
GAGGED
Flag: GAGGED (players)
When set on a player, it disables him from doing anything except moving and looking. He cannot talk, page, build, pose, get or drop objects. Normally used as a penalty for those who break MUSH rules.
Only wizards can set this flag.
GENDER
Gender on a MUSH is entirely up to you. You can set yourself (or any of your objects) to be male, female, neuter, or plural. If whatever is in the SEX attribute is not recognizable, the MUSH will assume the object is neuter. Setting a gender attribute will enable pronoun substitution by the MUSH. The SEX attribute is visual to anyone who wants to see it.
get
- get <object>
- take <object>
You pick up object, if you pass the object's @lock and the container's @lock/take (if set). You can also do get <thing>'s <object>, which will fail if thing is not ENTER_OK, thing has a take-lock that blocks you, or object is locked against you. Some MUSHes choose to disable the ability to take an object in someone else's inventory.
GET()
- get(<object>/<attribute>)
The get() function returns the string stored in an object's attribute. You may get the attributes of objects you control, the attributes you own on other objects, and publicly accessible attributes.
give
give[/silent] <player>=<number> give[/silent] <number> to <player> give <player>=<object> give <object> to <player>
Gives player the specified <number> of pennies or <object>. You can't give someone pennies if their new total would be greater than 100000 pennies. (No reason to get greedy). The /silent switch suppresses the default message indicating how many pennies were given. Wizards may "give" a negative number of pennies.
You may also give players objects, but the other player must be set ENTER_OK in order to receive something you give.
Giving money to an object gives the money to the object's owner. Some MUSHes may have @lock/give enabled, which determines who is allowed to give an object.
GLOBALS
A command is "global" if it can be used anywhere in the world of the MUSH. The standard MUSH commands are all global, so this term is usually used to refer to user-defined commands on objects in the Master Room of the MUSH. Global commands very greatly from MUSH to MUSH, but you can usually find MUSH-specific help on them by typing "+help".
go
go[to] <direction> go[to] home move <direction> move home
Goes in the specified direction. <Direction> can be the name or alias of an exit in your area, the enter alias of an object in your area, or the leave alias of the object you are in. You do not need to use the word 'go' or 'move', in fact -- simply typing the direction will have the same effect.
'go home' is a special command that returns you to your home room/object. Some MUSHes may disable this command.
GOING
Flag: GOING (all types)
Used internally for the @destroy command, it is set on things that are scheduled to be destroyed. To prevent a GOING object from being destroyed, use the @undestroy (or @unrecycle) command. You can no longer @set the object !GOING.
GRAB()
- grab(<list>, <pattern>[,<delimiter>])
- regrab(<list>, <regexp>[,<delimiter>])
- regrabi(<list>, <regexp>[,<delimiter>])
This function returns the first word in list which matches the pattern. For grab(), the pattern is specified as in match(); i.e., it can contain wildcards. For regrab(), the pattern is a regular expression. regrabi() is case-insensitive.
Basically, this is a much more efficient way to do: extract(list, match(list, pattern, delimiter), 1, delimiter) or the regular expression variation thereof.
See also: match(), extract(), element(), elements(), index(), regmatch(), graball()
GRABALL()
- graball(<list>, <pattern>[,<delim>[, <output separator>]])
- regraball(<list>, <regexp>[,<delim>[, <output separator>]])
- regraballi(<list>, <regexp>[,<delim>[, <output separator>]])
These functions work identically to the grab() and regrab()/regrabi() functions, save that they return all matches, not just the first: They return all words in the <list> which match <pattern>. If none match, an empty string is returned.
Examples:
Example:
> say graball(This is a test of a test,test)
You say "test test"
> say graball(This is testing a test,tes*)
You say "testing test"
> say regraball(This is testing a test,s$)
You say "This is"
GREP()
- grep(<object>, <attrs>, <substring>)
- wildgrep(<object>, <attrs>, <pattern>)
- regrep(<object>, <attrs>, <regexp>)
- grepi(<object>, <attrs>, <substring>)
- regrepi(<object>, <attrs>, <regexp>)
- wildgrepi(<object>, <attrs>, <pattern>)
These functions return a list of attributes on <object> containing <substring>, matching the wildcard <pattern>, or matching the regular expression <regexp>. <attrs> is a wildcard pattern for attribute names to search.
Parsing _does_ occur before this function is invoked. Therefore, "special" characters will need to be escaped out.
grep()/wildgrep()/regrep() are case-sensitive. grepi()/wildgrepi()/regrepi() are case-insensitive.
GT()
Takes two numbers, and returns 1 if and only if the first is greater than the second, and 0 otherwise.
GTE()
Takes two numbers, and returns 1 if and only if the first is greater than or equal to the second, and 0 otherwise.
Generated at Mon Jul 2 00:35:04 2007