Flag

From TinyMUX
Jump to: navigation, search


Everything in the universe of MUX (Rooms, Exits, Things, Players, etc) are represented in the same way at the program level. A room merely has the room flag set and a player has the player flag set. In addition, flags also give objects abilities or qualities. For instance, a wizard has the wizard flag set. That is what lets the program know he may use wizard abilities. An object or room may have the dark flag set. In the case of an object, this makes the object invisible to normal eye-sight. In the case of a room, the room becomes too dark to see other objects or players. Attributes set on an object an also have flags. These flags are called Attribute Flags that modify behavior and permissions for attribute access.

When logged into a TinyMUX or TinyMUSH, a list of flags is available by using the command '@list flags'.

Flags are set and unset on objects using @set. For example,

  To set a location JUMP_OK
  @set here=JUMP_OK
  To remove the flag, it is similar with ! symbol prepended to the flag name.
  @set here=!JUMP_OK


Flag List

Flags are listed by name with the appropriate letter abbreviation in parentheses.

ABODE(A), ACCENTS(!~), ANSI(X), AUDIBLE(a), AUDITORIUM(b), BLEED(!-), BLIND(B), COMMANDS(!n), CHOWN_OK(C), CONNECTED(c), DARK(D), DESTROY_OK(d), ENTER_OK(e), FIXED(f), FLOATING(F), GAGGED(j), GOING(G) HALTED(h) HAVEN(H), HEAD(?), HTML((), IMMORTAL(i) INHERIT(I) JUMP_OK(J) KEEPALIVE(k), KEY(K), LIGHT(l), LINK_OK(L), MARKER0(0), MARKER1(1), MARKER2(2), MARKER3(3), MARKER4(4), MARKER5(5), MARKER6(6), MARKER7(7), MARKER8(8), MARKER9(9), MONITOR(M), MYOPIC(m), NO_COMMAND(n), NOACCENTS(~), NOBLEED(-), NOSPOOF(N), OPAQUE(O), OPEN_OK(z), PARENT_OK(Y), PUPPET(p), QUIET(Q), ROBOT(r), ROYALTY(Z), SAFE(s), SITEMON($), SLAVE(x), SPOOF(!N), STAFF(w), STICKY(S), SUSPECT(u), TERSE(q), TRACE(T), TRANSPARENT(t), UNFINDABLE(U), UNINSPECTED(g), VACATION(|), VERBOSE(v), VISUAL(V), WIZARD(W)

40px-Icon stickynote.gif Note: The Flags Category page contains a full cross-platform index.

See also FLAG LIST.

Server Differences

Different MUSH servers support different sets of flags, although many will be common across servers. PennMUSH, for example, does not provide the MARKER flags, but allows God to create new flags with the @flag command. In addition, PennMUSH does not consider object types to be flags (although they display alongside flags), and has a separate namespace of lock flags (set with @lset) that are similar to attribute flags.

All servers have a separate namespace of powers (set with @power) that are similar to flags.

Configuration

Flag names can be set with flag_name or aliased using the flag_alias configuration parameters. Likewise, flag_access can set who can set or remove specific flags.


References

See also: flags(), hasflag(), andflags(), orflags(), @set, Configuration, type(), hastype(), FLAG LIST