terrexit #121
Aliases: terrexit
2 verbs · 17 properties · 4 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
move | this none this | rxd | #121 | 16 |
announce_msg | this none this | rxd | #121 | 14 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
help_msg | #121 | rc | #2 | {"Should be used as parent for exits *to* and *from* terrain rooms.", "\"help $terrain:@exset\" and \"help $exit\" will tell you more."} |
x_loc | #121 | r | #2 | 1 |
y_loc | #121 | r | #2 | 1 |
obvious | #7 | rc | #2 | <clear> |
source | #7 | rc | #2 | <clear> |
dest | #7 | rc | #2 | <clear> |
nogo_msg | #7 | rc | #2 | <clear> |
onogo_msg | #7 | rc | #2 | <clear> |
arrive_msg | #7 | rc | #2 | <clear> |
oarrive_msg | #7 | rc | #2 | <clear> |
oleave_msg | #7 | rc | #2 | <clear> |
leave_msg | #7 | rc | #2 | <clear> |
key | #1 | c | #2 | 0 |
aliases | #1 | rc | #2 | {"terrexit"} |
description | #1 | rc | #2 | <clear> |
object_size | #1 | r | #36 | {2160, -1090650497} |
html | #1 | rc | #2 | <clear> |
Ancestry
Ancestors (nearest first): #7 generic exit → #1 Root Class
Children: #148 Out [o], #149 Store [s], #152 East [e], #153 Out [o]
Call graph
Source
move
Referenced by
none
Source
1object = args[1]; 2if (`this.source.compass ! E_PROPNF => 0') 3if ((object.x_loc != this.x_loc) || (object.y_loc != this.y_loc)) 4return object:tell("What was that again?"); 5endif 6endif 7if (valid(this.dest)) 8object.x_loc = this.x_loc; 9object.y_loc = this.y_loc; 10pass(@args); 11if (`object.free_points ! E_PROPNF => 0') 12object.free_points = object.free_points + 0.005; 13endif 14else 15object:tell("Bad exit, dude."); 16endif
announce_msg
Referenced by
none
Source
1":announce_msg(place, what, msg)"; 2" announce msg in place (except to deafs). Prepend with what:title if it isn't part of the string"; 3if ($terrain in $object_utils:ancestors(args[1])) 4msg = args[3]; 5what = args[2]; 6title = what:titlec(); 7deafs = {@$set_utils:diff(args[1].contents, args[1]:contents()), what}; 8if (!$string_utils:index_delimited(msg, title)) 9msg = tostr(title, " ", msg); 10endif 11(ticks_left() < 4400) && suspend(0); 12return args[1]:announce_all_but(deafs, msg); 13endif 14pass(@args);