generic thing #5
Aliases: generic thing
6 verbs · 20 properties · 11 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
g*et t*ake | this none none | rxd | #5 | 19 |
dr*op th*row | this none none | rxd | #5 | 19 |
moveto | this none this | rxd | #5 | 5 |
take_failed_msg take_succeeded_msg otake_failed_msg otake_succeeded_msg drop_failed_msg drop_succeeded_msg odrop_failed_msg odrop_succeeded_msg | this none this | rxd | #5 | 2 |
gi*ve ha*nd | this at/to any | rxd | #5 | 19 |
examine_key | this none this | rxd | #5 | 7 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
drop_failed_msg | #5 | rc | #2 | "You can't seem to drop %t here." |
drop_succeeded_msg | #5 | rc | #2 | "You drop %t." |
odrop_failed_msg | #5 | rc | #2 | "tries to drop %t but fails!" |
odrop_succeeded_msg | #5 | rc | #2 | "drops %t." |
otake_succeeded_msg | #5 | rc | #2 | "picks up %t." |
otake_failed_msg | #5 | rc | #2 | "" |
take_succeeded_msg | #5 | rc | #2 | "You take %t." |
take_failed_msg | #5 | rc | #2 | "You can't pick that up." |
value_base | #102 | r | #2 | <clear> |
damage_base | #102 | r | #2 | <clear> |
x_loc | #102 | r | #36 | <clear> |
y_loc | #102 | r | #36 | <clear> |
ansi_title | #102 | r | #36 | <clear> |
obvious | #102 | r | #36 | <clear> |
build_help | #102 | rc | #2 | <clear> |
key | #1 | c | #2 | <clear> |
aliases | #1 | rc | #2 | {"generic thing"} |
description | #1 | rc | #2 | <clear> |
object_size | #1 | r | #36 | {5459, -1090650497} |
html | #1 | rc | #2 | <clear> |
Ancestry
Ancestors (nearest first): #102 subthing → #1 Root Class
Children: #8 generic container, #9 generic note, #63 Recycling Center, #74 Generic Feature Object, #88 password verifier, #108 generic replicating & returning thing, #113 generic collective thing, #115 generic death purse, #132 generic food and drink 2, #137 breeder relay, #154 the ultimate fob
Call graph
Source
g*et t*ake
Referenced by
- #8:re*move line 2:
pass( - #113:g*et line 1:
pass( - #115:g*et line 2:
pass( - #115:g*et line 16:
pass(
Source
1set_task_perms(callers() ? caller_perms() | player); 2if (this.location == player) 3player:tell("You already have that!"); 4elseif (this.location != player.location) 5player:tell("I don't see that here."); 6else 7this:moveto(player); 8if (this.location == player) 9player:tell(this:take_succeeded_msg() || "Taken."); 10if (msg = this:otake_succeeded_msg()) 11player.location:announce(player.name, " ", msg); 12endif 13else 14player:tell(this:take_failed_msg() || "You can't pick that up."); 15if (msg = this:otake_failed_msg()) 16player.location:announce(player.name, " ", msg); 17endif 18endif 19endif
dr*op th*row
Referenced by
- #8:p*ut line 2:
pass( - #109:d*rop line 4:
pass( - #113:dr*op line 1:
pass( - #117:d*rop line 7:
pass( - #165:dr*op line 1:
pass( - #166:dr*op line 1:
pass(
Source
1set_task_perms(callers() ? caller_perms() | player); 2if (this.location != player) 3player:tell("You don't have that."); 4elseif (!player.location:acceptable(this)) 5player:tell("You can't drop that here."); 6else 7this:moveto(player.location); 8if (this.location == player.location) 9player:tell_lines(this:drop_succeeded_msg() || "Dropped."); 10if (msg = this:odrop_succeeded_msg()) 11player.location:announce(player.name, " ", msg); 12endif 13else 14player:tell_lines(this:drop_failed_msg() || "You can't seem to drop that here."); 15if (msg = this:odrop_failed_msg()) 16player.location:announce(player.name, " ", msg); 17endif 18endif 19endif
moveto
Referenced by
- #5:g*et line 7:
this:moveto - #5:dr*op line 7:
this:moveto - #5:gi*ve line 12:
this:moveto - #63:moveto line 1:
pass( - #108:go_home line 4:
this:moveto - #109:moveto line 4:
pass( - #117:moveto line 2:
pass( - #123:do_burn line 11:
this:moveto - #151:special_dig_verb line 2:
$rmprop_demo_10:moveto - #154:init_for_core line 1:
this:moveto - #156:init_for_core line 1:
this:moveto - #157:init_for_core line 1:
this:moveto - #158:g*et line 13:
this:moveto - #158:init_for_core line 1:
this:moveto - #160:init_for_core line 2:
this:moveto - #161:init_for_core line 2:
this:moveto
Source
1where = args[1]; 2"if (!valid(where) || this:is_unlocked_for(where))"; 3if (this:is_unlocked_for(where)) 4pass(where); 5endif
take_failed_msg take_succeeded_msg otake_failed_msg otake_succeeded_msg drop_failed_msg drop_succeeded_msg odrop_failed_msg odrop_succeeded_msg
Referenced by
- #5:g*et line 9:
this:take_succeeded_msg - #5:g*et line 10:
this:otake_succeeded_msg - #5:g*et line 14:
this:take_failed_msg - #5:g*et line 15:
this:otake_failed_msg - #5:dr*op line 9:
this:drop_succeeded_msg - #5:dr*op line 10:
this:odrop_succeeded_msg - #5:dr*op line 14:
this:drop_failed_msg - #5:dr*op line 15:
this:odrop_failed_msg
Source
1set_task_perms(caller_perms()); 2return $string_utils:pronoun_sub(this.(verb));
gi*ve ha*nd
Referenced by
- #113:gi*ve line 1:
pass(
Source
1set_task_perms(callers() ? caller_perms() | player); 2if (this.location != player) 3player:tell("You don't have that!"); 4elseif (!valid(player.location)) 5player:tell("I see no \"", iobjstr, "\" here."); 6elseif ($command_utils:object_match_failed(who = player.location:match_object(iobjstr), iobjstr)) 7elseif (who.location != player.location) 8player:tell("I see no \"", iobjstr, "\" here."); 9elseif (who == player) 10player:tell("Give it to yourself?"); 11else 12this:moveto(who); 13if (this.location == who) 14player:tell("You hand ", this:title(), " to ", who:title(), "."); 15who:tell(player:titlec(), " ", $gender_utils:get_conj("hands/hand", player), " you ", this:title(), "."); 16else 17player:tell(who:titlec(), " ", $gender_utils:get_conj("does/do", who), " not want that item."); 18endif 19endif
examine_key
Referenced by
none
Source
1"examine_key(examiner)"; 2"return a list of strings to be told to the player, indicating what the key on this type of object means, and what this object's key is set to."; 3"the default will only tell the key to a wizard or this object's owner."; 4who = args[1]; 5if (((caller == this) && $perm_utils:controls(who, this)) && (this.key != 0)) 6return {tostr(this:title(), " can only be moved to locations matching this key:"), tostr(" ", $lock_utils:unparse_key(this.key))}; 7endif