Book of Pacifism #173
Aliases: Book of Pacifism, pacifismbook
2 verbs · 20 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
title | this none this | rxd | #173 | 1 |
ca*st | this on top of/on/onto/upon any | rxd | #173 | 55 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
spellcounter | #173 | 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 | 375.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 Pacifism", "pacifismbook"} |
description | #1 | rc | #2 | "[green]You see a book bound in leather with magical text.[normal] [Spell: Pacifism]" |
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
- #173:ca*st line 2:
this:title - #173:ca*st line 51:
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] >= 14.0)) 2player:tell("You prepare to cast ", this:title(), "[normal]..."); 3elseif (player.stats_current[2][3] < 14.0) 4player:tell("You do not have a high enough INT ability! This spell requires at least 14.0."); 5return; 6else 7player:tell("You are not carrying that."); 8return; 9endif 10target = $string_utils:match_object(iobjstr, player.location); 11if (((iobjstr == "me") || (iobjstr == "self")) || (iobjstr == "myself")) 12player:tell("You cannot cast this spell on yourself!"); 13return; 14endif 15if (!$object_utils:has_property(target, "skills")) 16player:tell("The target is invalid!"); 17return; 18endif 19if ((!player.pkill) && (target in players())) 20return player:tell("You have PKILL set to off and cannot fight other players."); 21endif 22if (player.pkill && (!target.pkill)) 23return player:tell(target:title(), " is a non-PKILL player."); 24endif 25if ($object_utils:has_property(target, "magic_immunity")) 26if (target.magic_immunity) 27player:tell(target:title(), " is immune to magic!"); 28return; 29endif 30endif 31if ((target in player.location.contents) && target.alive) 32before = target.skills[2][1]; 33target.skills[2][1] = 0.0; 34player:tell("You cast [yellow]Pacifism[normal] on ", target:title(), "!"); 35player.location:announce(player:title(), " casts [yellow]Pacifism[normal] on ", target:title(), "!"); 36target:tell(player:title(), " casts [yellow]Pacifism[normal] on you!"); 37player:tell(target:title(), " has been weakened by magic!"); 38player.location:announce(target:title(), " has been weakened by magic!"); 39target:tell("You have been weakened by magic! Your combat skill is 0.0 for 2 minutes!"); 40fork (120) 41if (target.alive) 42target.skills[2][1] = before; 43endif 44player:tell("The [yellow]Pacifism[normal] spell cast on ", target:title(), " wears off!"); 45target.location:announce("The [yellow]Pacifism[normal] spell cast on ", target:title(), " wears off!"); 46target.location:announce("The [yellow]Pacifism[normal] spell ", player:title(), " cast on you wears off!"); 47endfork 48if (!this.f) 49this.spellcounter = this.spellcounter - 1; 50if (!this.spellcounter) 51player:tell("The ", this:title(), " crumbles into dust!"); 52$recycler:_recycle(this); 53endif 54endif 55endif