Scroll of Escape #159

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

Aliases: Scroll of Escape, escapescroll

2 verbs · 19 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
titlethis none thisrxd#1591
ca*stthis none nonerxd#15926

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#240.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{"Scroll of Escape", "escapescroll"}
description#1rc#2"[green]You see a paper scroll with magical writing on it.[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 n159_1 #159:ca*st n6_18 #6:tell n159_1->n6_18 n159_0 #159:title n159_1->n159_0 n102_4 #102:title n159_1->n102_4 n63_1 #63:_recycle n159_1->n63_1

Source

title

Spec this none thisFlags rxdOwner #2Definer #159

Referenced by

Source

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

ca*st

Spec this none noneFlags rxdOwner #2Definer #159

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)
23player:tell("The ", this:title(), " vaporizes in your hand!");
24$recycler:_recycle(this);
25endif
26endif