generic thing #5
Aliases: generic thing
6 verbs · 19 properties · 45 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 | {4899, 1539462952} |
Ancestry
#1 Root Class
#102 subthing
#5 generic thing
- #8 generic container
- #9 generic note
- #63 Recycling Center
- #74 Generic Feature Object
- #88 password verifier
- #108 generic replicating & returning thing
- #110 Scroll of Healing
- #111 Book of Healing
- #112 Tome of Healing
- #113 generic collective thing
- #115 generic death purse
- #122 Scroll of Knowledge
- #132 generic food and drink 2
- #136 Book of Knowledge
- #137 breeder relay
- #145 Tome of Knowledge
- #147 Scroll of Enchantment
- #148 Book of Enchantment
- #149 Tome of Enchantment
- #150 Scroll of Sleep
- #151 Book of Sleep
- #152 Tome of Sleep
- #153 Scroll of Death
- #154 Book of Death
- #155 Tome of Death
- #156 Scroll of Magic Missile
- #157 Book of Magic Missile
- #158 Tome of Magic Missile
- #159 Scroll of Escape
- #160 Book of Escape
- #161 Tome of Escape
- #162 Scroll of Fear
- #164 Book of Fear
- #165 Tome of Fear
- #166 Scroll of Power
- #167 Book of Power
- #168 Tome of Power
- #169 Scroll of Speed
- #170 Book of Speed
- #171 Tome of Speed
- #172 Scroll of Pacifism
- #173 Book of Pacifism
- #174 Tome of Pacifism
- #175 Healing Orb
- #177 Cursed Artifact
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, #110 Scroll of Healing, #111 Book of Healing, #112 Tome of Healing, #113 generic collective thing, #115 generic death purse, #122 Scroll of Knowledge, #132 generic food and drink 2, #136 Book of Knowledge, #137 breeder relay, #145 Tome of Knowledge, #147 Scroll of Enchantment, #148 Book of Enchantment, #149 Tome of Enchantment, #150 Scroll of Sleep, #151 Book of Sleep, #152 Tome of Sleep, #153 Scroll of Death, #154 Book of Death, #155 Tome of Death, #156 Scroll of Magic Missile, #157 Book of Magic Missile, #158 Tome of Magic Missile, #159 Scroll of Escape, #160 Book of Escape, #161 Tome of Escape, #162 Scroll of Fear, #164 Book of Fear, #165 Tome of Fear, #166 Scroll of Power, #167 Book of Power, #168 Tome of Power, #169 Scroll of Speed, #170 Book of Speed, #171 Tome of Speed, #172 Scroll of Pacifism, #173 Book of Pacifism, #174 Tome of Pacifism, #175 Healing Orb, #177 Cursed Artifact
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(
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
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