DMH-Online

Dungeon Masters Helper · Est. 2005

Triggers Scripts

NWN Script: falling_trap.htm

Author Sticky: Post Working Scripts Here
JonnyMongoose Posted: Thursday, 11 July 08:32AM
script name: falltrap
what it does: A trap that sends a PC through the floor
and takes damage
notes: nothing special here
the script:
NWScript:
// Created By JonnyMongoose 7/11/02 //
//This script is used when a PC triggers a trap that sends them down to the
//next floor and causes them to take damage, just change the oWaypoint and
//eDamage to fit your module//

void main()
{
object oClicker = GetClickingObject();
object oWaypoint = GetObjectByTag("NW_WAYPOINT001");
location lLoc = GetLocation(oWaypoint);
AssignCommand(oClicker, JumpToLocation(lLoc));
{
object oPC = GetClickingObject();
effect eDamage = EffectDamage(4);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC) ;
 }
}
⌂ 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