Initial commit
Initial commit [v9.7]
This commit is contained in:
43
_module/nss/enter_slip.nss
Normal file
43
_module/nss/enter_slip.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
// 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
|
||||
|
||||
object oTarget;
|
||||
effect eEffect;
|
||||
|
||||
void main()
|
||||
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (ReflexSave(oPC, 12))
|
||||
{
|
||||
FloatingTextStringOnCreature("Whoa! - Almost slipped and fell on that slimy moss!", oPC);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("You slipped and fell on the slimy moss!", oPC);
|
||||
|
||||
eEffect = EffectDamage(d4(2), DAMAGE_TYPE_BLUDGEONING, DAMAGE_POWER_NORMAL);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
|
||||
|
||||
oTarget = oPC;
|
||||
|
||||
eEffect = EffectKnockdown();
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 3.0f);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user