Battledale_PRC8/_module/nss/jw_zomblord_usd.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

34 lines
878 B
Plaintext

//::///////////////////////////////////////////////
//:: NW_C2_DIMDOOR.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Creature randomly hops around
to enemies during combat.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: January 2002
//::///////////////////////////////////////////////
void JumpToWeakestEnemy(object oTarget)
{
object oTargetVictim = GetFactionMostDamagedMember(oTarget);
// * won't jump if closer than 4 meters to victim
if ((GetObjectSeen(oTargetVictim) == TRUE))
{
ActionAttack(oTargetVictim);
}
}
void main()
{
// * During Combat try teleporting around
if (GetUserDefinedEventNumber() == 1003)
{
// JumpToWeakestEnemy(GetNearestCreature(CREATURE_TYPE_REPUTATION, REPUTATION_TYPE_ENEMY));
}
}