generic window #181

Parent #1Owner #361Flags read, fertileSource hellcore/hellcore.db

Aliases: generic window, window

5 verbs · 21 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
look_place_msgthis none thisrxd#1817
tellthis none thisrxd#1814
openthis none nonerxd#18113
closethis none nonerxd#18113
look_selfthis none thisrxd#1817

Properties

PropertyDefinerFlagsOwnerValue
open#181rc#3611
look_place_open_msg#181rc#361"The windows are open, showing %t."
look_place_closed_msg#181rc#361"The windows are set to opaque."
otherside#181rc#361#-1
prefix_msg#181rc#361"Outside:"
open_msg#181rc#361"%DN opens %dt."
close_msg#181rc#361"%DN closes %dt."
openable#181rc#3611
open_otherside_msg#181rc#361"%DT opens."
close_otherside_msg#181rc#361"%DT closes."
filtration#181rc#3612
aliases#1rc#361{"generic window", "window"}
description#1rc#361"A window."
object_size#1r#29{3864, 1298434129}
hidden_verbs#1rc#361<clear>
phelp_msg#1rc#361<clear>
weight#1rc#361<clear>
owner_verbs#1rc#361<clear>
plural_name#1rc#361<clear>
client_image#1rc#361<clear>
listening#1rc#3611

Ancestry

Ancestors (nearest first): #1 root

Children: none

Call graph

calls n181_0 #181:look_place_msg n20_34 #20:pronoun_sub n181_0->n20_34 n181_2 #181:open n181_2->n20_34 n107_43 #107:tell n181_2->n107_43 n1_39 #1:dnamec n181_2->n1_39 n1_31 #1:dname n181_2->n1_31 n1_66 #1:announce_action_text n181_2->n1_66 n181_3 #181:close n181_3->n20_34 n181_3->n107_43 n181_3->n1_39 n181_3->n1_31 n181_3->n1_66 n181_4 #181:look_self n181_4->n181_0 n181_4->n107_43 n1_9 #1:look_self n181_4->n1_9

Source

look_place_msg

Spec this none thisFlags rxdOwner #361Definer #181

Referenced by

Source

1if (this.open)
2r = this.look_place_open_msg;
3else
4r = this.look_place_closed_msg;
5endif
6r = $su:ps(r, this, this.otherside.location, this.location);
7return r;

tell

Spec this none thisFlags rxdOwner #361Definer #181

Referenced by

none

Source

1if (this.open)
2msg = ((($ansi.cyan + this.otherside.prefix_msg) + $ansi.reset) + " ") + tostr(@args);
3this.otherside.location:announce_all_but({this.otherside, @this.otherside.location:occupants(#115126)}, msg);
4endif

open

Spec this none noneFlags rxdOwner #361Definer #181

Referenced by

none

Source

1if (this.open)
2player:tell(this:dnamec(), " is already open.");
3elseif (!this.openable)
4player:tell("You can't open or close ", this:dname(), ".");
5else
6player:aat($su:ps(this.open_msg, player, this));
7this.open = 1;
8this.otherside.open = 1;
9if ((!this.location.outdoor) && this.otherside.location.outdoor)
10this.location.windows = 1;
11endif
12this.otherside.location:announce_all($su:ps(this.otherside.open_otherside_msg, player, this.otherside));
13endif

close

Spec this none noneFlags rxdOwner #361Definer #181

Referenced by

none

Source

1if (!this.open)
2player:tell(this:dnamec(), " is already closed.");
3elseif (!this.openable)
4player:tell("You can't open or close ", this:dname(), ".");
5else
6player:aat($su:ps(this.close_msg, player, this));
7this.open = 0;
8this.otherside.open = 0;
9if ((!this.location.outdoor) && this.otherside.location.outdoor)
10this.location.windows = 0;
11endif
12this.otherside.location:announce_all($su:ps(this.otherside.close_otherside_msg, player, this.otherside));
13endif

look_self

Spec this none thisFlags rxdOwner #361Definer #181

Referenced by

none

Source

1pass(@args);
2player:tell(this:look_place_msg());
3if (this.open)
4player:tell("Through it, you see:");
5player:tell("");
6this.otherside.location:look_self(player);
7endif