View/Edit #12:@set-macro

Switch to edit mode.

Name(s): @set-macro
1:  if (player != this)
2:    return $msg:mtell("huh")
3:  endif
4:  if (length(args) < 2 || args[2] == "")
5:    return player:tell("Syntax:  @set-macro ![macro] [value] / [value2] / [value3] ...   (See ?macros for more information.")
6:  endif
7:  for y in [1..length(this.macros)]
8:    if (this.macros[y][1] == args[1][2..$])
9:      mac = ""
10:     for x in (args[2..$])
11:       mac = tostr(mac, " ", x)
12:     endfor
13:     this.macros[y][2] = $string_utils:explode(mac, "/")
14:     return player:tell("Value for ", args[1], " changed.")
15:   endif
16: endfor
17: return player:tell("That macro does not exist.  See @macros for a list of defined macros.")
18: "Last modified by Dax (#789) on Mon Dec 10 21:33:55 2001 MST."

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]