Sarum City enhancements
Adjusted commoner type npc behavior scripts.
This commit is contained in:
28
_module/nss/cutsceneghost.nss
Normal file
28
_module/nss/cutsceneghost.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Script generated by LS Script Generator, v.TK.0
|
||||
*
|
||||
* For download info, please visit:
|
||||
* http://nwvault.ign.com/View.php?view=Other.Detail&id=1502
|
||||
*/
|
||||
// Put this OnHeartbeat.
|
||||
// Will abort (do nothing) if fighting or talking or if no PCs are in the area.
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
effect eEffect;
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
// If running the lowest AI, abort for performance reasons.
|
||||
if ( GetAILevel() == AI_LEVEL_VERY_LOW )
|
||||
return;
|
||||
// Only fire once.
|
||||
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
|
||||
return;
|
||||
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
// Apply an effect.
|
||||
eEffect = SupernaturalEffect(EffectCutsceneGhost());
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oSelf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user