Initial commit
Initial commit [v9.7]
This commit is contained in:
28
_module/nss/nw_ochrejlly_opa.nss
Normal file
28
_module/nss/nw_ochrejlly_opa.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: nw_ochrejlly_opa
|
||||
//:: Copyright (c) 2004 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
The NPC On Physically Attacked script is for the
|
||||
Ochre Jellies in PotSC. If the Target is physically
|
||||
attacked, divide into smaller jellies.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Keith K2 Hayward
|
||||
//:: Created On: August 2004
|
||||
//:: Modified On: January, 2006
|
||||
//:://////////////////////////////////////////////
|
||||
#include "nw_i0_ochrejelly"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastAttacker();
|
||||
object oSelf = OBJECT_SELF;
|
||||
object oWeapon = GetLastWeaponUsed(oPC);
|
||||
|
||||
effect eGhost = EffectCutsceneGhost();
|
||||
int iCurrentHP = GetCurrentHitPoints(oSelf);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eGhost, oSelf);
|
||||
SplitCreature(oSelf, iCurrentHP);
|
||||
}
|
||||
Reference in New Issue
Block a user