Initial Upload
Initial Upload
This commit is contained in:
24
_module/nss/ice_slip.nss
Normal file
24
_module/nss/ice_slip.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
// Script by MotoTsume aka Hafur
|
||||
// Simple slip on ice and take damage script
|
||||
// The 12 in line "if (ReflexSave(oPC, 12))" can be lowered or
|
||||
// raised to make it easier or harder to save
|
||||
// d4(2) can also be changed for more or less damage
|
||||
//
|
||||
//Put this OnEnter of Generic Trigger
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (ReflexSave(oPC, 50))
|
||||
{
|
||||
FloatingTextStringOnCreature("Hmmm,...Slippery ice....", oPC);
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("You slipped on the ice!", oPC);
|
||||
effect eEffect = EffectDamage(d4(1), DAMAGE_TYPE_BLUDGEONING, DAMAGE_POWER_NORMAL);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_BACK, 1.0, 4.0));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user