PRC8_fork/nwn/nwnprc/trunk/scripts/wol_a_enter.nss

17 lines
426 B
Plaintext
Raw Permalink Normal View History

// For trigger enters
void main()
{
object oPC = GetEnteringObject();
if (!GetIsObjectValid(oPC)) oPC = GetLastUsedBy();
object oTrigger = OBJECT_SELF;
string sTag = GetTag(oTrigger);
if (GetIsPC(oPC))
{
if (sTag == "wol_a_bbbcreek")
{
ApplyEffectToObject(DURATION_TYPE_PERMANENT, TagEffect(EffectMovementSpeedDecrease(50), "BBBCreek"), oPC);
}
}
}