Shargast_PRC8/_module/Chapter 1/nss/dw_turnhostile.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

27 lines
656 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName dw_turnhostile
//:: Copyright (c) 2004 Dreamwarder
//:://////////////////////////////////////////////
/*
Generic turn hostile script that makes the npc speaker hostile
to the PC speaker.
*/
//:://////////////////////////////////////////////
//:: Created By: Dreamwarder
//:: Created On: 03 May 2004
//:://////////////////////////////////////////////
#include "nw_i0_generic"
void main()
{
object oPC = GetPCSpeaker();
object oTarget = OBJECT_SELF;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
}