Further file organization
Further file organization
This commit is contained in:
24
nwn/nwnprc/trunk/scripts/wol_a_exit.nss
Normal file
24
nwn/nwnprc/trunk/scripts/wol_a_exit.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
// For trigger exits
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetExitingObject();
|
||||
object oTrigger = OBJECT_SELF;
|
||||
string sTag = GetTag(oTrigger);
|
||||
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
if (sTag == "wol_a_bbbcreek")
|
||||
{
|
||||
effect eAOE = GetFirstEffect(oPC);
|
||||
while(GetIsEffectValid(eAOE))
|
||||
{
|
||||
if(GetEffectTag(eAOE) == "BBBCreek")
|
||||
RemoveEffect(oPC, eAOE);
|
||||
|
||||
// Get next effect on the target
|
||||
eAOE = GetNextEffect(oPC);
|
||||
}// end while - Effect loop
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user