generic handcuffs #122

Parent #117Owner #36Flags read, fertileSource RPG Core/rpgcore-patched.db

Aliases: generic handcuffs, cuffs

5 verbs · 37 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
put clamp place snapthis on top of/on/onto/upon anyrxd#12214
_cuffthis none thisrxd#1225
_uncuffthis none thisrxd#1223
rem*ovethis none nonerd#12214
ok_to_usethis none thisrxd#1224

Properties

PropertyDefinerFlagsOwnerValue
trustees#122r#36{}
restricted#122rc#360
wornness#117r#360
armor#117r#36<clear>
cursed#117r#36<clear>
body_area#117rc#36<clear>
wear_msg#117rc#36<clear>
remove_msg#117rc#36<clear>
wearing_msg#117rc#36<clear>
curse_msg#117rc#36<clear>
help_msg#117rc#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#108rc#36<clear>
how_long#108rc#36<clear>
been_told#108rc#36<clear>
home#108rc#36<clear>
child_limit#108rc#36<clear>
recycle_at_death#108rc#36<clear>
drop_failed_msg#5rc#36<clear>
drop_succeeded_msg#5rc#36<clear>
odrop_failed_msg#5rc#36<clear>
odrop_succeeded_msg#5rc#36<clear>
otake_succeeded_msg#5rc#36<clear>
otake_failed_msg#5rc#36<clear>
take_succeeded_msg#5rc#36<clear>
take_failed_msg#5rc#36<clear>
value_base#102r#2<clear>
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#36<clear>
key#1c#360
aliases#1rc#36{"generic handcuffs", "cuffs"}
description#1rc#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#1r#36{4455, -1090650497}
html#1rc#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

calls n122_0 #122:put n6_18 #6:tell n122_0->n6_18 n52_5 #52:isa n122_0->n52_5 n122_1 #122:_cuff n122_0->n122_1 n117_8 #117:moveto n122_1->n117_8 n35_1 #35:say_action n122_1->n35_1 n117_5 #117:set_wornness n122_1->n117_5 n122_2 #122:_uncuff n122_2->n117_8 n122_2->n117_5 n122_3 #122:rem*ove n122_3->n6_18 n122_3->n35_1 n122_3->n117_5 n117_7 #117:wear_msg n122_3->n117_7

Source

put clamp place snap

Spec this on top of/on/onto/upon anyFlags rxdOwner #36Definer #122

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

Spec this none thisFlags rxdOwner #36Definer #122

Referenced by

Source

1dobj = args[1];
2this:moveto(dobj);
3$you:say_action("%N %<snaps> %t on %d.");
4dobj:_capture();
5this:set_wornness(1);

_uncuff

Spec this none thisFlags rxdOwner #36Definer #122

Referenced by

none

Source

1this:set_wornness(0);
2this:moveto(player);
3args[1]:_release();

rem*ove

Spec this none noneFlags rdOwner #36Definer #122

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

Spec this none thisFlags rxdOwner #2Definer #122

Referenced by

none

Source

1if ((!this.restricted) || (player in this.trustees))
2return 1;
3endif
4return 0;