Book of Escape #160

Parent #5Owner #2Flags read, fertileSource QuestCore.db

Aliases: Book of Escape, escapebook

2 verbs · 20 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
titlethis none thisrxd#1601
ca*stthis none nonerxd#16029

Properties

PropertyDefinerFlagsOwnerValue
spellcounter#160rc#210
drop_failed_msg#5rc#2<clear>
drop_succeeded_msg#5rc#2<clear>
odrop_failed_msg#5rc#2<clear>
odrop_succeeded_msg#5rc#2<clear>
otake_succeeded_msg#5rc#2<clear>
otake_failed_msg#5rc#2<clear>
take_succeeded_msg#5rc#2<clear>
take_failed_msg#5rc#2<clear>
value_base#102r#2250.0
damage_base#102r#2<clear>
x_loc#102r#36<clear>
y_loc#102r#36<clear>
ansi_title#102r#36<clear>
obvious#102r#36<clear>
build_help#102rc#2<clear>
key#1c#20
aliases#1rc#2{"Book of Escape", "escapebook"}
description#1rc#2"[green]You see a book bound in leather with magical text.[normal] [Spell: Escape]"
object_size#1r#36{0, 0}

Ancestry

Ancestors (nearest first): #5 generic thing#102 subthing#1 Root Class

Children: none

Call graph

calls n160_1 #160:ca*st n6_18 #6:tell n160_1->n6_18 n160_0 #160:title n160_1->n160_0 n102_4 #102:title n160_1->n102_4 n63_1 #63:_recycle n160_1->n63_1

Source

title

Spec this none thisFlags rxdOwner #2Definer #160

Referenced by

Source

1return tostr("[yellow]", this.name, "[normal]");

ca*st

Spec this none noneFlags rxdOwner #2Definer #160

Referenced by

none

Source

1if ((this in player.contents) && (player.stats_current[2][3] >= 12.0))
2player:tell("You prepare to cast ", this:title(), "[normal]...");
3elseif (player.stats_current[2][3] < 12.0)
4player:tell("You do not have a high enough INT ability! This spell requires at least 12.0.");
5return;
6else
7player:tell("You are not carrying that.");
8return;
9endif
10if (player.location == player.home)
11player:tell("You are already at your home!");
12return;
13endif
14if (player.location != player.home)
15player:tell("You cast [yellow]Escape[normal]!");
16player.location:announce(player:title(), " casts [yellow]Escape[normal]!");
17suspend(1);
18player.location:announce_all("Suddenly, ", player:title(), " has teleported ", player.pr, " away!");
19move(player, player.home);
20suspend(2);
21player.location:announce_all("Suddenly, ", player:title(), " has teleported ", player.pr, " into the area!");
22if (!this.f)
23this.spellcounter = this.spellcounter - 1;
24if (!this.spellcounter)
25player:tell("The ", this:title(), " crumbles into dust!");
26$recycler:_recycle(this);
27endif
28endif
29endif