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.
34 lines
878 B
Plaintext
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));
|
|
|
|
}
|
|
}
|