DMH-Online

Dungeon Masters Helper · Est. 2005

Triggers Scripts

NWN Script: finger.htm

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.

⌂ All Scripts ← PreviousNext → 👁 Category List

All Triggers Scripts

📄 boss_room 📄 falling_trap 📄 finger 📄 giev_xp_disarm 📄 giev_xp_disarm_002 📄 giev_xp_disarm_003 📄 giev_xp_disarm_004 📄 laughing_trap 📄 random_enc_high 📄 repulsion_script 📄 repulsion_script_002 📄 repulsion_script_003 📄 repulsion_script_004 📄 set_variable 📄 shut_lock_door 📄 spiked_corridor 📄 traps_that _trigger