generic immortal #89
Aliases: generic immortal, immortal
37 verbs · 190 properties · 2 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
lookup_room | this none this | rxd | #89 | 25 |
teleport | this none this | rxd | #89 | 38 |
teleport_messages | this none this | rxd | #89 | 16 |
@join | any none none | rxd | #89 | 19 |
msg_sub | this none this | rxd | #89 | 5 |
last_huh | this none this | rxd | #89 | 12 |
init_for_core | this none this | rxd | #89 | 13 |
self_port_msg player_port_msg thing_port_msg join_msg | this none this | rxd | #89 | 7 |
oself_port_msg self_arrive_msg oplayer_port_msg player_arrive_msg victim_port_msg othing_port_msg thing_arrive_msg object_port_msg | this none this | rxd | #89 | 13 |
die | this none this | rxd | #89 | 36 |
gain_stress | this none this | rxd | #89 | 3 |
_heartbeat_hunger | this none this | rxd | #89 | 0 |
@mjoin @mvisit | any none none | rxd | #89 | 23 |
_morph | this none this | rxd | #89 | 19 |
tell | this none this | rxd | #89 | 8 |
encumbrance | this none this | rxd | #89 | 0 |
tell_wearing | this none this | rxd | #89 | 4 |
pick_visit | this none this | rxd | #89 | 14 |
@morph | any none none | rxd | #89 | 7 |
max_carry | this none this | rxd | #89 | 1 |
prep_to_visit | this none this | rxd | #89 | 16 |
_teleport | this none this | rxd | #89 | 43 |
pick_teleport_exit | this none this | rxd | #89 | 12 |
@join_old | any none none | rxd | #89 | 48 |
@go | any none none | rxd | #89 | 17 |
revert_code_name | this none this | rxd | #89 | 7 |
examine_verbs | this none this | rxd | #89 | 1 |
take_damage | this none this | rxd | #89 | 4 |
_allows | this none this | rxd | #89 | 2 |
cyberdeck | this none this | rxd | #89 | 4 |
text_sub | this none this | rxd | #89 | 1 |
awh*o | none none none | rxd | #89 | 7 |
pwh*o | none none none | rxd | #89 | 7 |
who | none none none | rxd | #89 | 8 |
tree_tag | this none this | rxd | #89 | 11 |
@rotate | none at/to any | rxd | #89 | 12 |
moveto | this none this | rxd | #89 | 13 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
join_msg | #89 | rc | #29 | "You join %n." |
object_port_msg | #89 | rc | #29 | "teleports you." |
victim_port_msg | #89 | rc | #29 | "teleports you." |
thing_arrive_msg | #89 | rc | #29 | "%T teleports %n in." |
othing_port_msg | #89 | rc | #29 | "%T teleports %n out." |
thing_port_msg | #89 | rc | #29 | "You teleport %n." |
player_arrive_msg | #89 | rc | #29 | "%T teleports %n in." |
oplayer_port_msg | #89 | rc | #29 | "%T teleports %n out." |
player_port_msg | #89 | rc | #29 | "You teleport %n." |
self_arrive_msg | #89 | rc | #29 | "%<teleports> in." |
oself_port_msg | #89 | rc | #29 | "%<teleports> out." |
self_port_msg | #89 | rc | #29 | "" |
real_name | #89 | rc | #29 | "" |
real_aliases | #89 | rc | #29 | {} |
zots | #89 | rc | #29 | 0 |
bedroom | #89 | rc | #29 | #390478 |
chillmin | #89 | rc | #29 | 0 |
_mail_task | #33 | rc | #29 | <clear> |
messages_going | #33 | c | #29 | <clear> |
mail_lists | #33 | rc | #29 | <clear> |
mail_notify | #33 | rc | #29 | <clear> |
mail_forward | #33 | rc | #29 | <clear> |
mail_options | #33 | rc | #29 | {} |
message_keep_date | #33 | rc | #29 | <clear> |
messages_kept | #33 | rc | #29 | <clear> |
current_message | #33 | c | #29 | <clear> |
messages | #33 | c | #29 | <clear> |
mail_hack | #33 | rc | #29 | <clear> |
barcolor | #33 | rc | #29 | <clear> |
autowield | #33 | rc | #29 | <clear> |
bug | #33 | rc | #29 | <clear> |
readied_weapon | #33 | rc | #29 | <clear> |
unread_mail | #33 | rc | #29 | <clear> |
features | #6 | r | #29 | <clear> |
previous_connection | #6 | | #361 | <clear> |
email_address | #6 | | #361 | <clear> |
last_disconnect_time | #6 | r | #361 | <clear> |
help | #6 | rc | #29 | #93 |
more_msg | #6 | rc | #29 | <clear> |
linetask | #6 | r | #29 | <clear> |
linesleft | #6 | r | #29 | <clear> |
linebuffer | #6 | | #29 | <clear> |
pagelen | #6 | r | #29 | <clear> |
owned_objects | #6 | r | #361 | <clear> |
linelen | #6 | r | #29 | <clear> |
current_folder | #6 | c | #29 | <clear> |
all_connect_places | #6 | | #361 | <clear> |
last_connect_place | #6 | | #361 | <clear> |
lines | #6 | c | #29 | <clear> |
page_absent_msg | #6 | rc | #29 | <clear> |
page_origin_msg | #6 | rc | #29 | <clear> |
page_echo_msg | #6 | rc | #29 | <clear> |
edit_options | #6 | rc | #29 | <clear> |
last_connect_time | #6 | r | #361 | <clear> |
ownership_quota | #6 | | #29 | <clear> |
password | #6 | | #361 | <clear> |
paranoid | #6 | rc | #29 | <clear> |
display_options | #6 | rc | #29 | <clear> |
verb_subs | #6 | rc | #29 | <clear> |
first_connect_time | #6 | r | #361 | <clear> |
size_quota | #6 | | #29 | {50000, 0, 0, 1} |
last_password_time | #6 | | #361 | <clear> |
last_connect_attempt | #6 | | #361 | <clear> |
prefs | #6 | rc | #29 | <clear> |
ansi | #6 | rc | #29 | <clear> |
last_hit_meter | #6 | rc | #29 | "~1b[1m~1b[37m[~1b[32m|||||||||||||||||||||||||||||~1b[31m*~1b[37m~1b[1m]~1b[0m" |
doing_msg | #6 | rc | #29 | <clear> |
xp_total | #6 | rc | #29 | <clear> |
party | #6 | rc | #29 | <clear> |
rooms | #6 | r | #361 | {} |
client | #6 | rc | #29 | <clear> |
last_death_time | #6 | rc | #29 | <clear> |
default_weapon | #6 | rc | #29 | <clear> |
thirst | #6 | rc | #29 | <clear> |
may_chat | #6 | rc | #29 | <clear> |
idlemsg | #6 | rc | #29 | <clear> |
eula | #6 | rc | #29 | <clear> |
birthdate | #6 | rc | #29 | <clear> |
bad_words | #6 | rc | #29 | <clear> |
char_start_time | #6 | rc | #29 | <clear> |
rumors | #6 | rc | #29 | <clear> |
last_broadcast | #6 | rc | #29 | <clear> |
ansihack | #6 | rc | #29 | <clear> |
last_death_callers | #6 | rc | #29 | <clear> |
char_extra_epochs | #6 | rc | #29 | <clear> |
code_name | #6 | rc | #29 | <clear> |
code_plural | #6 | rc | #29 | <clear> |
changeable_properties | #6 | rc | #29 | <clear> |
out_of_band_session | #6 | r | #29 | <clear> |
private_aliases | #6 | rc | #29 | <clear> |
quests_open | #6 | rc | #29 | <clear> |
quests | #6 | rc | #29 | <clear> |
page_receive_msg | #6 | rc | #29 | <clear> |
page_msg | #6 | rc | #29 | <clear> |
focus_skills | #6 | rc | #29 | <clear> |
skillpoints | #100 | rc | #29 | <clear> |
xp | #100 | rc | #29 | <clear> |
mutations | #100 | rc | #29 | <clear> |
mutation_slots | #100 | rc | #29 | <clear> |
char_start_age | #100 | rc | #29 | <clear> |
char_extra_age | #100 | rc | #29 | <clear> |
hands | #107 | rc | #29 | <clear> |
wielding | #107 | rc | #29 | <clear> |
health | #107 | rc | #29 | 488 |
unarmed_weapon | #107 | rc | #29 | <clear> |
size | #107 | rc | #29 | <clear> |
posture | #107 | rc | #29 | "standing" |
gender | #107 | rc | #29 | <clear> |
respawn | #107 | rc | #29 | <clear> |
corpse | #107 | rc | #29 | <clear> |
has_proper_name | #107 | rc | #29 | <clear> |
die_msg | #107 | rc | #29 | "%DN crumples to the ground. As %s falls, a flash of blinding blue-white light envelops %o, and %s is gone." |
body_parts | #107 | rc | #29 | <clear> |
wearing | #107 | rc | #29 | <clear> |
armor | #107 | rc | #29 | <clear> |
last_swing_message | #107 | rc | #29 | <clear> |
health_max | #107 | rc | #29 | 500 |
fighting | #107 | rc | #29 | {} |
last_dodge_time | #107 | rc | #29 | <clear> |
following | #107 | rc | #29 | <clear> |
icon | #107 | rc | #29 | <clear> |
say_msg | #107 | rc | #29 | <clear> |
say_to_msg | #107 | rc | #29 | <clear> |
afterlife | #107 | rc | #29 | <clear> |
get_msg | #107 | rc | #29 | <clear> |
drop_msg | #107 | rc | #29 | <clear> |
blood | #107 | rc | #29 | <clear> |
squeals | #107 | rc | #29 | <clear> |
prc | #107 | rc | #29 | <clear> |
ppc | #107 | rc | #29 | <clear> |
poc | #107 | rc | #29 | <clear> |
psc | #107 | rc | #29 | <clear> |
pr | #107 | rc | #29 | <clear> |
pp | #107 | rc | #29 | <clear> |
po | #107 | rc | #29 | <clear> |
ps | #107 | rc | #29 | <clear> |
pq | #107 | rc | #29 | <clear> |
pqc | #107 | rc | #29 | <clear> |
brief | #107 | rc | #29 | <clear> |
knockout | #107 | rc | #29 | <clear> |
knockout_msg | #107 | rc | #29 | <clear> |
body | #107 | rc | #29 | <clear> |
wake_msg | #107 | rc | #29 | <clear> |
owake_msg | #107 | rc | #29 | <clear> |
oknockout_msg | #107 | rc | #29 | <clear> |
friends | #107 | rc | #29 | <clear> |
home | #107 | rc | #29 | <clear> |
respawn_msg | #107 | rc | #29 | "%DN wanders in." |
move_action | #107 | rc | #29 | <clear> |
heart | #107 | rc | #29 | -1 |
last_heartbeat | #107 | rc | #29 | <clear> |
dead | #107 | rc | #29 | <clear> |
_tohit_next | #107 | rc | #29 | <clear> |
last_words_msg | #107 | rc | #29 | <clear> |
attacked | #107 | rc | #29 | <clear> |
opens_doors | #107 | rc | #29 | <clear> |
movable_by_explosion | #107 | rc | #29 | <clear> |
obscured | #107 | rc | #29 | <clear> |
obscured_desc_msg | #107 | rc | #29 | <clear> |
cooldowns | #107 | rc | #29 | <clear> |
combat_rounds | #107 | rc | #29 | <clear> |
encumbrance | #107 | rc | #29 | {0, 0} |
respawn_handler | #107 | rc | #29 | <clear> |
distant_form_msg | #107 | rc | #29 | <clear> |
block_msg | #107 | rc | #29 | <clear> |
attack_on_block | #107 | rc | #29 | <clear> |
last_stunned | #107 | rc | #29 | <clear> |
nude_descs | #107 | rc | #29 | <clear> |
skills | #107 | rc | #29 | <clear> |
explode_msg | #107 | rc | #29 | <clear> |
death_listeners | #107 | rc | #29 | <clear> |
queue | #92 | r | #361 | <clear> |
preemptible | #92 | r | #361 | <clear> |
executing | #92 | r | #361 | <clear> |
process_queue | #92 | r | #361 | <clear> |
help_msg | #92 | rc | #29 | <clear> |
last_action | #92 | r | #361 | <clear> |
article | #92 | rc | #29 | <clear> |
last_last_action | #92 | rc | #29 | <clear> |
action_count | #92 | rc | #29 | <clear> |
aliases | #1 | r | #362 | {"generic immortal", "immortal"} |
description | #1 | rc | #29 | "You see a player who should type '@describe me as ...'." |
object_size | #1 | r | #29 | {31327, 1298433815} |
hidden_verbs | #1 | rc | #29 | <clear> |
phelp_msg | #1 | rc | #29 | <clear> |
weight | #1 | rc | #29 | <clear> |
owner_verbs | #1 | rc | #29 | <clear> |
plural_name | #1 | rc | #29 | <clear> |
client_image | #1 | rc | #29 | <clear> |
listening | #1 | rc | #29 | <clear> |
Ancestry
Ancestors (nearest first): #33 generic normal player → #6 generic player → #100 generic RPG player → #154 generic living creature → #107 generic creature → #92 generic actor → #1 root
Children: #2 generic builder, #25 Generic Guest
Call graph
Showing 48 of 75 verbs; 27 not shown.
Source
lookup_room
Referenced by
Source
1"Look up a room in your personal database of room names, returning its object number. If it's not in your database, it checks to see if it's a number or a nearby object."; 2room = args[1]; 3if (room == "home") 4return player.home; 5elseif (room == "me") 6return player; 7elseif (room == "here") 8return player.location; 9elseif (room == "#-1") 10return #-1; 11elseif (!room) 12return $failed_match; 13endif 14index = this:index_room(room); 15if (index) 16return this.rooms[index][2]; 17else 18return this:my_match_object(room); 19"old code no longer used, 2/11/96 Heathcliff"; 20source = player.location; 21if (!(valid(source) && ($room in $object_utils:ancestors(source)))) 22source = $room; 23endif 24return source:match_object(room); 25endif
teleport
Referenced by
- #2:@move line 26:
this:teleport - #89:@join_old line 47:
this:teleport
Source
1"Teleport a player or object. For printing messages, there are three cases: (1) teleport self (2) teleport other player (3) teleport object. There's a spot of complexity for handling the invalid location #-1."; 2set_task_perms((caller == this) ? this | $no_one); 3{thing, dest} = args; 4source = thing.location; 5if (valid(dest)) 6dest_name = dest.name; 7else 8dest_name = tostr(dest); 9endif 10if (source == dest) 11player:tell(thing.name, " is already at ", dest_name, "."); 12return; 13endif 14thing:moveto(dest); 15if (thing.location == dest) 16tsd = {thing, source, dest}; 17if (thing == player) 18this:teleport_messages(@tsd, this:self_port_msg(@tsd), this:oself_port_msg(@tsd), this:self_arrive_msg(@tsd), ""); 19elseif (is_player(thing)) 20this:teleport_messages(@tsd, this:player_port_msg(@tsd), this:oplayer_port_msg(@tsd), this:player_arrive_msg(@tsd), this:victim_port_msg(@tsd)); 21else 22this:teleport_messages(@tsd, this:thing_port_msg(@tsd), this:othing_port_msg(@tsd), this:thing_arrive_msg(@tsd), this:object_port_msg(@tsd)); 23endif 24elseif (thing.location == source) 25if ($object_utils:contains(thing, dest)) 26player:tell("Ooh, it's all twisty. ", dest_name, " is inside ", thing.name, "."); 27else 28if ($object_utils:has_property(thing, "po")) 29pronoun = thing.po; 30else 31pronoun = "it"; 32endif 33player:tell("Either ", thing.name, " doesn't want to go, or ", dest_name, " didn't accept ", pronoun, "."); 34endif 35else 36thing_name = (thing == player) ? "you" | thing.name; 37player:tell("A strange force deflects ", thing_name, " from the destination."); 38endif
teleport_messages
Referenced by
- #89:teleport line 18:
this:teleport_messages - #89:teleport line 20:
this:teleport_messages - #89:teleport line 22:
this:teleport_messages
Source
1"Send teleport messages. There's a slight complication in that the source and dest need not be valid objects."; 2{thing, source, dest, pmsg, smsg, dmsg, tmsg} = args; 3if (pmsg) 4"The player's own message."; 5player:tell(pmsg); 6endif 7if (smsg) 8`source:room_announce_all_but({thing, player}, smsg) ! E_VERBNF, E_INVIND'; 9endif 10if (dmsg) 11`dest:room_announce_all_but({thing, player}, dmsg) ! E_VERBNF, E_INVIND'; 12endif 13if (tmsg) 14"A message to the victim being teleported."; 15thing.listening && thing:tell(tmsg); 16endif
@join
Referenced by
none
Source
1if (player != this) 2return player:tell("I don't understand that."); 3endif 4who = $su:match_player(dobjstr); 5if (!valid(who)) 6who = $npc:named(dobjstr); 7endif 8if (!valid(who)) 9player:tell("@join who?"); 10elseif (is_a(who.location, $generic_editor)) 11if ((index = who in who.location.active) && is_a(origin = who.location.original[index], $room)) 12this:_teleport(origin); 13player:tell(((who:dnamec() + " is editing something right now, wait here until ") + who.ps) + " is done."); 14else 15player:tell(who:dnamec() + " is editing something right now, but I don't know where he was."); 16endif 17else 18this:_teleport(who.location); 19endif
msg_sub
Referenced by
- #89:self_port_msg line 5:
this:msg_sub - #89:oself_port_msg line 7:
this:msg_sub
Source
1"Do pronoun and other substitutions on the teleport messages. The arguments are: 1. The original message, before any substitutions; 2. object being teleported; 3. from location; 4. to location. The return value is the final message."; 2{msg, thing, from, to} = args; 3msg = $string_utils:substitute(msg, $string_utils:pronoun_quote({{"%<from room>", valid(from) ? from.name | "Nowhere"}, {"%<to room>", valid(to) ? to.name | "Nowhere"}})); 4msg = $string_utils:pronoun_sub(msg, thing); 5return msg;
last_huh
Referenced by
none
Source
1set_task_perms(caller_perms()); 2if (pass(@args)) 3return 1; 4endif 5{verb, args} = args; 6if (valid(dobj = $string_utils:literal_object(dobjstr)) && (r = $match_utils:match_verb(verb, dobj, args))) 7return r; 8elseif (valid(iobj = $string_utils:literal_object(iobjstr)) && (r = $match_utils:match_verb(verb, iobj, args))) 9return r; 10else 11return 0; 12endif
init_for_core
Referenced by
- #2:init_for_core line 7:
pass(
Source
1if (caller_perms().wizard) 2pass(); 3if ($code_utils:verb_location() == this) 4this.rooms = {}; 5delete_verb(this, "@web"); 6delete_verb(this, "web_info"); 7delete_verb(this, "set_web_info"); 8delete_property(this, "web_info"); 9else 10clear_property(this, "rooms"); 11endif 12this.features = {$pasting_feature, $stage_talk}; 13endif
self_port_msg player_port_msg thing_port_msg join_msg
Referenced by
- #89:teleport line 18:
this:self_port_msg - #89:teleport line 20:
this:player_port_msg - #89:teleport line 22:
this:thing_port_msg - #89:@join_old line 27:
this:join_msg
Source
1"Copied from Frand's player class (#89):self_port_msg by Hacker (#36) Mon Sep 1 01:23:51 2008 CDT"; 2"This verb returns messages that go only to you. You don't need to have your name tacked on to the beginning of these. Heh."; 3msg = this.(verb); 4if (msg && (length(args) >= 3)) 5msg = this:msg_sub(msg, @args); 6endif 7return msg;
oself_port_msg self_arrive_msg oplayer_port_msg player_arrive_msg victim_port_msg othing_port_msg thing_arrive_msg object_port_msg
Referenced by
- #89:teleport line 18:
this:oself_port_msg - #89:teleport line 18:
this:self_arrive_msg - #89:teleport line 20:
this:oplayer_port_msg - #89:teleport line 20:
this:player_arrive_msg - #89:teleport line 20:
this:victim_port_msg - #89:teleport line 22:
this:othing_port_msg - #89:teleport line 22:
this:thing_arrive_msg - #89:teleport line 22:
this:object_port_msg
Source
1"This verb returns messages that go to other players. It does pronoun substitutions; if your name is not included in the final string, it adds the name in front."; 2msg = this.(verb); 3if (!msg) 4msg = parent(this).(verb); 5endif 6if (length(args) >= 3) 7msg = this:msg_sub(msg, @args); 8endif 9name = this:dnamec(); 10if (((!index(msg, name)) && (!index(msg, "%N"))) && (!index(msg, "%DN"))) 11msg = (name + " ") + msg; 12endif 13return msg;
die
Referenced by
none
Source
1body = this.body; 2this:tell(""); 3this:tell(($ansi.bold_on + "YOU DIED, DUMBASS.") + $ansi.reset); 4this:tell(""); 5this.blood = {}; 6this.queue = {}; 7for x in (this.fighting) 8x.fighting = setremove(x.fighting, this); 9x:cancel_current_action(); 10endfor 11this.fighting = {}; 12this:cancel_current_action(); 13dtype = (length(args) > 1) ? args[2] | $damage; 14diemsg = this.explode_msg; 15if (dtype != #15895) 16diemsg = this.die_msg; 17endif 18killers = {}; 19this:aat((($ansi.bold_on + $ansi.red) + $su:ps(diemsg, this, this)) + $ansi.reset); 20for x in (this.location:occupants($creature)) 21if (this in x.fighting) 22killers = {@killers, x}; 23endif 24endfor 25killer = killers ? killers[random(length(killers))] | #-1; 26"$nets.deathnet:announce_death(this, killer, dtype);"; 27this:revert_code_name(); 28this.home:announce_all(this:inamec(), " appears in a flash of blue light."); 29this:moveto(this.home); 30this.health = this.health_max; 31this.blood = {}; 32if (is_a(body, $body)) 33body:turn_to_corpse(); 34body.player = #-1; 35body = #-1; 36endif
gain_stress
Referenced by
none
Source
1if ($ou:has_prop(this, "gain_stress")) 2return pass(@args); 3endif
_heartbeat_hunger
Referenced by
none
Source
No program (verb defined but unprogrammed).
@mjoin @mvisit
Referenced by
none
Source
1who = $su:match_player(dobjstr); 2if (!valid(who)) 3player:tell("@join who?"); 4return; 5endif 6exit = player.location.exits[random(length(player.location.exits))]; 7exit.location:announce_all($su:ps(exit.oleave_msg, player, exit)); 8where = who.location; 9area = where:area(); 10if (area != #257121) 11disguise = where:area():random_npc(); 12this:_morph(disguise); 13else 14this:revert_code_name(); 15endif 16entrance = this:pick_visit(who); 17if (verb == "@mvisit") 18player:moveto(entrance.otherside.location); 19player:tell(who:dnamec(), " is in ", entrance.otherside:dname(), "."); 20else 21entrance.location:announce_all($su:ps(entrance.oarrive_msg, player, entrance)); 22player:moveto(where); 23endif
_morph
Referenced by
- #89:@mjoin line 12:
this:_morph - #89:@morph line 7:
this:_morph - #89:prep_to_visit line 14:
this:_morph
Source
1source = args[1]; 2this:tell((((($ansi.bold_on + $ansi.cyan) + "[ You take the form of ") + source:iname()) + ". ]") + $ansi.reset); 3$gender_utils:set(this, source.gender); 4this:revert_code_name(); 5code_name = source.name; 6code_name = strsub(code_name, "generic", ""); 7code_name = $su:trim(code_name); 8this:set_code_name(code_name, source.description); 9this.has_proper_name = source.has_proper_name; 10for x in ($ou:leaves($skill)) 11this.skills[skill.name] = {skill:raw(source), skill:ip(source), 0, 0}; 12endfor 13this.health_max = source.health_max; 14this.health = source.health; 15this.wearing = {}; 16this.wielding = {}; 17this.armor = source.armor; 18this.unarmed_weapon = source.unarmed_weapon; 19this.body_parts = source.body_parts;
tell
Referenced by
- #2:tell line 10:
pass( - #89:die line 2:
this:tell - #89:die line 3:
this:tell - #89:die line 4:
this:tell - #89:_morph line 2:
this:tell - #89:prep_to_visit line 7:
this:tell - #89:prep_to_visit line 13:
this:tell - #89:_teleport line 22:
this:tell
Source
1ret = pass(@args); 2if (((this.code_name != "") && (this.location == $lu:slice(callers(), 1)[$])) && (!(#181402 in $lu:slice(callers(), 1)))) 3objs = $lu:slice(callers(), 4); 4if (((!($net in objs)) && (!(#50 in objs))) && (!(#318 in objs))) 5#181402:announce(this, $su:from_list({"[", this.name[1..min(4, length(this.name))], "] ", @args}, ""), 1); 6endif 7endif 8return ret;
encumbrance
Referenced by
none
Source
No program (verb defined but unprogrammed).
tell_wearing
Referenced by
none
Source
1if (this.code_name) 2return; 3endif 4return pass(@args);
pick_visit
Referenced by
- #89:@mjoin line 16:
this:pick_visit - #89:_teleport line 13:
this:pick_visit
Source
1who = args[1]; 2if (gamevalid(who.home) && (area(who) == area(who.home))) 3for x in (who.home.exits) 4if ((x.direction == "out") && (x.otherside.direction != "in")) 5return x; 6endif 7endfor 8endif 9cand = who.location.exits; 10if (cand) 11return cand[random(length(cand))]; 12else 13return #-1; 14endif
@morph
Referenced by
none
Source
1source = $mu:match(dobjstr, $ou:leaves_suspended($npc)); 2if (!valid(source)) 3player:tell("@morph what?"); 4return; 5endif 6player:tell("Morphing you into ", $su:nn(source), "..."); 7this:_morph(source);
max_carry
Referenced by
none
Source
1return 200000000;
prep_to_visit
Referenced by
- #89:_teleport line 30:
this:prep_to_visit
Source
1return; 2where = args[1]; 3region = where:region(); 4area = where:area(); 5if (region.admin_ok || area.admin_ok) 6if (this.code_name) 7this:tell($ansi.bold_on, "[ Reverting to admin form. ]", $ansi.reset); 8this:revert_code_name(); 9endif 10else 11if (!this.code_name) 12npc = area:random_npc(); 13this:tell($ansi.bold_on, "[ Disguising as ", npc.name, ". ]", $ansi.reset); 14this:_morph(npc); 15endif 16endif
_teleport
Referenced by
- #2:home line 1:
this:_teleport - #89:@join line 12:
this:_teleport - #89:@join line 18:
this:_teleport - #89:@go line 16:
this:_teleport
Source
1where = args[1]; 2entrance = #-1; 3exit = #-1; 4if ((!is_a(where, $room)) || (where.exits == {})) 5oldloc = this.location; 6for x in (oldloc:occupants($prog)) 7x:tell($ansi.cyan, "[ ", this.name, " has left. ]", $ansi.reset); 8endfor 9this:moveto(where); 10return; 11endif 12if (people = where:occupants($player)) 13entrance = this:pick_visit(people[1]); 14else 15entrance = where.exits[random(length(where.exits))]; 16endif 17if (!is_a(this.location, $room)) 18exit = #-1; 19else 20exit = this:pick_teleport_exit(); 21if (valid(exit) && (m = exit:leave_msg())) 22this:tell($su:ps(m, this, exit, where)); 23endif 24endif 25if (valid(exit)) 26oleave = $su:ps(exit:oleave_msg(), this, exit, where); 27else 28oleave = this:dnamec() + " wanders out."; 29endif 30this:prep_to_visit(where); 31if (valid(entrance)) 32where:announce_all($su:ps(entrance:oarrive_msg(), this, entrance, where)); 33else 34where:announce_all(this:dnamec(), " wanders in."); 35endif 36oldloc = this.location; 37this:moveto(where); 38if (is_a(oldloc, $room)) 39oldloc:announce_all(oleave); 40for x in (oldloc:occupants($prog)) 41x:tell($ansi.cyan, "[ ", this.name, " has left. ]", $ansi.reset); 42endfor 43endif
pick_teleport_exit
Referenced by
- #89:_teleport line 20:
this:pick_teleport_exit
Source
1if (is_a(here = this.location, $room)) 2set = here.exits; 3for x in (set) 4if (!((is_a(x.otherside, $exit) && is_a(x.otherside.location, $room)) && (length(x.otherside.location.exits) > 1))) 5set = setremove(set, x); 6endif 7endfor 8if (set) 9return set[random($)]; 10endif 11endif 12return #-1;
@join_old
Referenced by
none
Source
1"Copied from generic immortal (#89):@join by Hacker (#36) Sat Oct 25 00:29:05 2008 CDT"; 2"'@join <player>' - Teleport yourself to the location of any player, whether connected or not."; 3if (player != this) 4player:tell("I don't understand that."); 5return; 6endif 7if (dobjstr == "") 8player:tell("Usage: @join <player>. For example, '@join frand'."); 9return; 10endif 11target = $string_utils:match_player(dobjstr); 12$command_utils:player_match_result(target, dobjstr); 13if (valid(target)) 14if (target == this) 15if (player == this) 16player:tell("There is little need to join yourself, unless you are split up."); 17else 18player:tell("No thank you. Please get your own join verb."); 19endif 20return; 21endif 22if ((!player.programmer) && (!is_a(target, $immortal))) 23player:tell("You can only join other immortal beings (builders, programmers, wizards, or plain old awesome skullcano dudes.)"); 24return; 25endif 26dest = target.location; 27msg = this:join_msg(); 28if (typeof(msg) != LIST) 29msg = {msg}; 30endif 31editing = $object_utils:isa(dest, $generic_editor); 32if (editing) 33dest = dest.original[target in dest.active]; 34editing_msg = "%N is editing at the moment. You can wait here until %s is done."; 35if (player.location == dest) 36msg = {editing_msg}; 37else 38msg = {@msg, editing_msg}; 39endif 40endif 41if (msg && ((player.location != dest) || editing)) 42player:tell_lines($string_utils:pronoun_sub(msg, target)); 43elseif (player.location == dest) 44player:tell("OK, you're there. You didn't need to actually move, though."); 45return; 46endif 47this:teleport(player, dest); 48endif
@go
Referenced by
none
Source
1"'@go <place>' - Teleport yourself somewhere. Example: '@go liv' to go to the living room."; 2dest = this:lookup_room(dobjstr); 3if (dest == $failed_match) 4player:tell("There's no such place known."); 5else 6"if (is_a(dest, $flyer) && is_a(dest.inside_area, $real_area))"; 7" dest = dest.inside_area;"; 8"endif"; 9if (is_a(dest, $area)) 10dest = dest:random_room(); 11if (!valid(dest)) 12player:tell("Couldn't find a room to stick you in, sorry!"); 13return; 14endif 15endif 16this:_teleport(dest); 17endif
revert_code_name
Referenced by
- #89:die line 27:
this:revert_code_name - #89:@mjoin line 14:
this:revert_code_name - #89:_morph line 4:
this:revert_code_name - #89:prep_to_visit line 8:
this:revert_code_name
Source
1r = pass(@args); 2for x in ($ou:leaves($skill)) 3this.skills[skill.name] = {20, 0, 0, 0}; 4endfor 5clear_property(this, "resists"); 6clear_property(this, "armor"); 7return r;
examine_verbs
Referenced by
none
Source
1return this.obscured ? {} | pass(@args);
take_damage
Referenced by
none
Source
1if (is_a(this.location, $generic_editor)) 2return; 3endif 4return pass(@args);
_allows
Referenced by
none
Source
1who = args[2]; 2return is_a(who, $immortal) ? 1 | pass(@args);
cyberdeck
Referenced by
none
Source
1if (!is_a(this.cyberdeck, #1834)) 2this.cyberdeck = #-1; 3endif 4return this.cyberdeck;
text_sub
Referenced by
none
Source
1return `this.text_sub_bypass ! ANY => 0' ? pass(@args) | args[1];
awh*o
Referenced by
none
Source
1mins = {}; 2for p in (connected_players()) 3if (is_a(p, $immortal)) 4mins = {@mins, p}; 5endif 6endfor 7return $whofo:_who(mins, {}, -1);
pwh*o
Referenced by
none
Source
1nonmins = {}; 2for p in (connected_players()) 3if (!is_a(p, $immortal)) 4nonmins = {@nonmins, p}; 5endif 6endfor 7return $whofo:_who(nonmins, {}, 1);
who
Referenced by
none
Source
1if (player != this) 2raise(E_PERM); 3endif 4if (this.chillmin) 5return this:awho(@args); 6else 7return $whofo:who(@args); 8endif
tree_tag
Referenced by
none
Source
1if (this.f) 2return ""; 3endif 4if (this.owner != this) 5return "owned by " + this.owner.name; 6endif 7objs = $su:right(`tostr(length(this.owned_objects)) ! E_TYPE => "lots"', 5); 8flags = this.programmer ? "p" | ""; 9flags = flags + (this.wizard ? "w" | ""); 10flags = flags + (this.chillmin ? "c" | ""); 11return tostr(objs, " ", flags);
@rotate
Referenced by
none
Source
1"Copied from Treeclipse (#309):@rotate Mon Nov 29 22:15:54 2010 CST"; 2if (caller != this) 3player:tell("I DON'T THINK SO! Change your own names. sheesh."); 4return E_PERM; 5endif 6if (!(iobjstr in this.aliases)) 7player:tell("You can't change to that! It isn't one of your aliases!"); 8else 9this:set_name(iobjstr); 10this:set_aliases(setadd(this.aliases, iobjstr)); 11player:tell("Aliases Rotated. Your name is now: ", this.name, "."); 12endif
moveto
Referenced by
- #2:home line 29:
this:moveto - #49:moveto line 3:
pass( - #89:die line 29:
this:moveto - #89:_teleport line 9:
this:moveto - #89:_teleport line 37:
this:moveto
Source
1where = args[1]; 2oldloc = this.location; 3r = pass(@args); 4if (!(oldloc in {this.location, where})) 5for x in (callers(1)) 6if (x[4] == $actions.move) 7return r; 8endif 9endfor 10is_a(oldloc, $room) && oldloc:broadcast_event(0, $actions.move, this, {#-1}); 11is_a(l = this.location, $room) && l:broadcast_event(0, $actions.arrive, this, {#-1}); 12endif 13return r;