View/Edit #12:@new-macro @macro

Switch to edit mode.

Name(s): @new-macro @macro
1:  if (player != this)
2:    return $msg:mtell("huh")
3:  endif
4:  if (argstr == "" || argstr[1] != "!" || length(args) > 1)
5:    return player:tell("Syntax: ", verb, " ![macro]")
6:  endif
7:  for y in (this.macros)
8:    if (y[1] == argstr[2..$])
9:      return player:tell("You already have that macro.")
10:   endif
11: endfor
12: this.macros = {@this.macros, {argstr[2..$], {}}}
13: player:tell("Macro added.")
14: "Last modified by Dax (#789) on Mon Dec 10 21:33:42 2001 MST."

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

You are not logged in.

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