mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 02:07:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
30
trunk/smp/phs_t_onerock.nss
Normal file
30
trunk/smp/phs_t_onerock.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
/*:://////////////////////////////////////////////
|
||||
//:: Trap Name One Rock Fall trap
|
||||
//:: Trap FileName PHS_T_OneRock
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Trap Description / Effects
|
||||
//:://////////////////////////////////////////////
|
||||
One rock falls onto the entering object/person who set it off. Visual effect
|
||||
and 3d6 bludgeoning damage, relfex for none.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jasperre
|
||||
//::////////////////////////////////////////////*/
|
||||
|
||||
#include "PHS_INC_SPELLS"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Declare major variables
|
||||
object oTarget = GetEnteringObject();
|
||||
// Reflex adjusted
|
||||
int nDam = GetReflexAdjustedDamage(d6(3), oTarget, 20, SAVING_THROW_TYPE_TRAP);
|
||||
|
||||
if(nDam > 0)
|
||||
{
|
||||
effect eDam = EffectDamage(nDam, DAMAGE_TYPE_BLUDGEONING);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_FLAME_S);
|
||||
|
||||
// Apply damage
|
||||
PHS_ApplyInstantAndVFX(oTarget, eVis, eDam);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user