Tome of Escape #161

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

Aliases: Tome of Escape, escapetome

2 verbs · 19 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
titlethis none thisrxd#1611
ca*stthis none nonerxd#16122

Properties

PropertyDefinerFlagsOwnerValue
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#26000.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{"Tome of Escape", "escapetome"}
description#1rc#2"[green]You see a large tome bound in heavy leather containing thousands of pages of 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 n161_1 #161:ca*st n6_18 #6:tell n161_1->n6_18 n161_0 #161:title n161_1->n161_0 n102_4 #102:title n161_1->n102_4

Source

title

Spec this none thisFlags rxdOwner #2Definer #161

Referenced by

Source

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

ca*st

Spec this none noneFlags rxdOwner #2Definer #161

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!");
22endif