mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-16 11:57:14 -05:00
Further file organization
Further file organization
This commit is contained in:
17
nwn/nwnprc/trunk/scripts/wol_a_enter.nss
Normal file
17
nwn/nwnprc/trunk/scripts/wol_a_enter.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user