Author Sticky: Post Working Scripts Here
sewyrn Posted: Tuesday, 23 July 07:36AM
Script Name: Chop Off Finger

What it does: In a conversation the Owner (usually a trap) chops off the PC's finger and deposits it into their inventory.

Notes: This script is meant to be used in traps or conversations with yakuza or old men with lighters . I used the script in a door trap. It just applies a permanent -1 to Dex in the module and places a "severedfinger" blueprint custom object in their inventory. I used the skeleton knuckle. I'm sure you'll all find devious ways to implement this.

NWScript:
//::////////////////// /////////////////////////////

//:: Chop Off Finger

//:: Coded by Sewyrn (2002)

//::////////////////// ////////////////////////////

/*

// Speaker chops off the PC's finger

*/

//::////////////////// ////////////////////////////

void main()

{

     object oPlayer=GetPCSpeaker();

     effect eFingerLost = EffectAbilityDecrease (ABILITY_DEXTERITY, 1);

     ActionPauseConversation();

     //This lowers the PC's Dex by 1 (for the rest of the module)

     ApplyEffectToObject( DURATION_TYPE_PERMANENT, eFingerLost, oPlayer );

     //This drops the severed finger into the PC's inventory

     //You must create a custom "severedfinger" object - I use the skeleton knuckle

     CreateItemOnObject("severedfinger", oPlayer);

     ActionResumeConversation();

}



_________________
Elf is about to die. Messily.