generic handcuffs #122
Aliases: generic handcuffs, cuffs
5 verbs · 37 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
put clamp place snap | this on top of/on/onto/upon any | rxd | #122 | 14 |
_cuff | this none this | rxd | #122 | 5 |
_uncuff | this none this | rxd | #122 | 3 |
rem*ove | this none none | rd | #122 | 14 |
ok_to_use | this none this | rxd | #122 | 4 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
trustees | #122 | r | #36 | {} |
restricted | #122 | rc | #36 | 0 |
wornness | #117 | r | #36 | 0 |
armor | #117 | r | #36 | <clear> |
cursed | #117 | r | #36 | <clear> |
body_area | #117 | rc | #36 | <clear> |
wear_msg | #117 | rc | #36 | <clear> |
remove_msg | #117 | rc | #36 | <clear> |
wearing_msg | #117 | rc | #36 | <clear> |
curse_msg | #117 | rc | #36 | <clear> |
help_msg | #117 | rc | #36 | list of 2{"If you can use this device, you can 'put/clamp <this> on <person>', or 'capture/cuff <person>', and the person will be forced to follow.", "You can release the device by typing 'release/uncuff <person>'."} |
returning | #108 | rc | #36 | <clear> |
how_long | #108 | rc | #36 | <clear> |
been_told | #108 | rc | #36 | <clear> |
home | #108 | rc | #36 | <clear> |
child_limit | #108 | rc | #36 | <clear> |
recycle_at_death | #108 | rc | #36 | <clear> |
drop_failed_msg | #5 | rc | #36 | <clear> |
drop_succeeded_msg | #5 | rc | #36 | <clear> |
odrop_failed_msg | #5 | rc | #36 | <clear> |
odrop_succeeded_msg | #5 | rc | #36 | <clear> |
otake_succeeded_msg | #5 | rc | #36 | <clear> |
otake_failed_msg | #5 | rc | #36 | <clear> |
take_succeeded_msg | #5 | rc | #36 | <clear> |
take_failed_msg | #5 | rc | #36 | <clear> |
value_base | #102 | r | #2 | <clear> |
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 | #36 | <clear> |
key | #1 | c | #36 | 0 |
aliases | #1 | rc | #36 | {"generic handcuffs", "cuffs"} |
description | #1 | rc | #36 | "The magic/technology in these cuffs causes the prisoner great discomfort when out of range of the captor, forcing the prisoner to follow." |
object_size | #1 | r | #36 | {4455, -1090650497} |
html | #1 | rc | #36 | <clear> |
Ancestry
Ancestors (nearest first): #117 generic clothing → #108 generic replicating & returning thing → #5 generic thing → #102 subthing → #1 Root Class
Children: none
Call graph
Source
put clamp place snap
Referenced by
none
Source
1if (this.restricted && (!(player in this.trustees))) 2return player:tell("You are not authorized to use this device."); 3elseif ((!(this in player.contents)) || this.wornness) 4return player:tell("You must be holding, yet not wearing, that device."); 5endif 6if ($object_utils:isa(iobj, $monster) || $object_utils:isa(iobj, $rpgamer)) 7if (((((player.stats_current[2][1] > (iobj.stats_current[2][1] * 1.2)) || (player.stats_current[2][2] > (iobj.stats_current[2][2] * 1.2))) || (player.stats_current[2][4] > (iobj.stats_current[2][4] * 2.0))) || (!iobj.mobile)) || (!iobj.alert)) 8this:_cuff(iobj); 9else 10player:tell("If ", iobj:title(), " cannot be convinced to follow willingly, you'll have to subdue ", iobj.po, "."); 11endif 12else 13player:tell("You can't capture that."); 14endif
_cuff
Referenced by
- #122:put line 8:
this:_cuff
Source
1dobj = args[1]; 2this:moveto(dobj); 3$you:say_action("%N %<snaps> %t on %d."); 4dobj:_capture(); 5this:set_wornness(1);
_uncuff
Referenced by
none
Source
1this:set_wornness(0); 2this:moveto(player); 3args[1]:_release();
rem*ove
Referenced by
none
Source
1if (this.wornness == 0) 2player:tell("No one is wearing ", this.name, "!"); 3elseif (this.location != player) 4player:tell("Try 'release <person>' instead."); 5elseif (this.restricted && (!(player in this.trustees))) 6player:tell("You are not authorized to do that."); 7elseif ((!this.restricted) && (player == this.location)) 8player:tell("It does not permit self-removal."); 9elseif (`this.location.gender ! E_PROPNF => 0') 10this:set_wornness(0); 11$you:say_action(this:remove_msg()); 12else 13this:drop(@args); 14endif
ok_to_use
Referenced by
none
Source
1if ((!this.restricted) || (player in this.trustees)) 2return 1; 3endif 4return 0;