34 lines
667 B
Plaintext
34 lines
667 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: ra_npc_attack_pc.nss
|
||
|
//::
|
||
|
//:: Copyright (c) 2022 Project RATDOG
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Makes speaking NPC attack the PC speaker
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//::
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 20220618
|
||
|
//::
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
#include "nw_i0_generic"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//:: Declare major variables
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oTarget = OBJECT_SELF;
|
||
|
|
||
|
//:: Set PC to enemy
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
|
||
|
//:: Attack PC
|
||
|
ActionAttack(oPC);
|
||
|
DetermineCombatRound(oPC);
|
||
|
|
||
|
}
|