View/Edit #1720:start stop

Switch to edit mode.

Name(s): start stop
1:  if (player:controls(this))
2:    if (verb == "stop" && this.recording == 0)
3:      return player:tell("It's not even running!")
4:    elseif (verb == "start" && this.recording == 1)
5:      return player:tell("It's already running!")
6:    else
7:      verb == "start" ? this.recording = 1 | (this.recording = 0)
8:      player:tell("You ", verb, " ", this.name, ".")
9:      player.location:announce(player.name, " ", verb, "s ", this.name, ".")
10:   endif
11: else
12:   return E_PERM
13: endif

Verb arguments: this none none
Verb perms: Readable NOT-Debug
Verb owned by: Gixxer (#7446)

You are not logged in.

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