View/Edit #2053:notify

Switch to edit mode.

Name(s): notify
1:  "We are currently in this.location.. find out where to go to."
2:  suspend(2)
3:  if (this.location == this.crayon0)
4:    if (this:has_people(this.crayon1))
5:      "Crayon1 has connected people in it! Send the hidey message and disappear."
6:      this.location:sub_announce_all_but({this}, this.msg_scamperdown1)
7:      this:escape()
8:    else
9:      this.location:sub_announce_all_but({this}, this.msg_scamperup1)
10:     this:moveto(this.crayon1)
11:   endif
12: elseif (this.location == this.crayon1)
13:   if (!this:has_people(this.crayon2))
14:     this.location:sub_announce_all_but({this}, this.msg_scamperup2)
15:     this:moveto(this.crayon2)
16:   elseif (!this:has_people(this.crayon0))
17:     this.location:sub_announce_all_but({this}, this.msg_scamperdown2)
18:     this:moveto(this.crayon0)
19:   else
20:     this.location:sub_announce_all_but({this}, this.msg_scamperside2)
21:     this:escape()
22:   endif
23: elseif (this.location == this.crayon2)
24:   if (this:has_people(this.crayon1))
25:     this.location:sub_announce_all_but({this}, this.msg_scamperup3)
26:     this:escape()
27:   else
28:     this.location:sub_announce_all_but({this}, this.msg_scamperdown3)
29:     this:moveto(this.crayon1)
30:   endif
31: endif
32: "Last modified by Lao-Tzu (#8084) on Tue Aug 20 12:02:05 2002 MDT."

Verb arguments: this none this
Verb perms: Readable NOT-Debug
Verb owned by: Floyd (#7788)

You are not logged in.

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