generated from Jaysyn/ModuleTemplate
33 lines
933 B
Plaintext
33 lines
933 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: 07_glassrock
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
PC must succeed at a reflex saving throw or
|
|
fall down.
|
|
|
|
DC = KEYTAG of Trigger
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: ruelk
|
|
//:: Created On: 2/21/04
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
object oObject = GetEnteringObject();
|
|
|
|
//Get the DC from the trigger's key tag
|
|
int nDC = StringToInt(GetLockKeyTag(OBJECT_SELF));
|
|
if (!GetIsObjectValid(oObject))return;
|
|
|
|
if (!ReflexSave(oObject, nDC, SAVING_THROW_TYPE_TRAP ))
|
|
{ //you failed now you fall
|
|
effect eEffect = EffectKnockdown();
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oObject, 05.0f);
|
|
|
|
//Tell the Player what just happened
|
|
SendMessageToPC(oObject, "You have lost your footing on a patch of slippery rock.");
|
|
|
|
}
|
|
}
|