View/Edit #12:@mode

Switch to edit mode.

Name(s): @mode
1:  "@mode <mode>"
2:  "Current modes are brief and verbose."
3:  "General verb for setting player `modes'."
4:  "Modes are coded right here in the verb."
5:  if (caller != this)
6:    player:tell("You can't set someone else's modes.")
7:    return E_PERM
8:  endif
9:  modes = {"brief", "verbose"}
10: mode = modes[$string_utils:find_prefix(dobjstr, modes)]
11: if (!mode)
12:   player:tell("Unknown mode \"", dobjstr, "\".  Known modes:")
13:   for mode in (modes)
14:     player:tell("  ", mode)
15:   endfor
16:   return 0
17: elseif (mode == "brief")
18:   this:set_brief(1)
19: elseif (mode == "verbose")
20:   this:set_brief(0)
21: endif
22: player:tell($string_utils:capitalize(mode), " mode set.")
23: return 1

Verb arguments: any any any
Verb perms: Readable NOT-Debug
Verb owned by: Slacker (#55)

You are not logged in.

[home | help | who | search | setup | code]