Book of Escape #160
Aliases: Book of Escape, escapebook
2 verbs · 20 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
title | this none this | rxd | #160 | 1 |
ca*st | this none none | rxd | #160 | 29 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
spellcounter | #160 | rc | #2 | 10 |
drop_failed_msg | #5 | rc | #2 | <clear> |
drop_succeeded_msg | #5 | rc | #2 | <clear> |
odrop_failed_msg | #5 | rc | #2 | <clear> |
odrop_succeeded_msg | #5 | rc | #2 | <clear> |
otake_succeeded_msg | #5 | rc | #2 | <clear> |
otake_failed_msg | #5 | rc | #2 | <clear> |
take_succeeded_msg | #5 | rc | #2 | <clear> |
take_failed_msg | #5 | rc | #2 | <clear> |
value_base | #102 | r | #2 | 250.0 |
damage_base | #102 | r | #2 | <clear> |
x_loc | #102 | r | #36 | <clear> |
y_loc | #102 | r | #36 | <clear> |
ansi_title | #102 | r | #36 | <clear> |
obvious | #102 | r | #36 | <clear> |
build_help | #102 | rc | #2 | <clear> |
key | #1 | c | #2 | 0 |
aliases | #1 | rc | #2 | {"Book of Escape", "escapebook"} |
description | #1 | rc | #2 | "[green]You see a book bound in leather with magical text.[normal] [Spell: Escape]" |
object_size | #1 | r | #36 | {0, 0} |
Ancestry
Ancestors (nearest first): #5 generic thing → #102 subthing → #1 Root Class
Children: none
Call graph
Source
title
Referenced by
- #160:ca*st line 2:
this:title - #160:ca*st line 25:
this:title
Source
1return tostr("[yellow]", this.name, "[normal]");
ca*st
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