AOC_PRC8/_module/nss/clonepc.nss

23 lines
714 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:24:16 -04:00
#include "clone_lib"
#include "nw_i0_generic"
#include "spawner"
#include "prc_inc_util"
void main()
{
object oPC = GetPCSpeaker();
object oTarget = GetWaypointByTag("monster_wp");
object oMonster;
location lLocation = GetLocation(oTarget);
PCEffect(0.0,VFX_FNF_DISPEL_DISJUNCTION, oPC);
PRCForceRest(oPC);
DoEffect(0.0, VFX_FNF_PWKILL, "monster_wp");
CreatePCClone(oPC,lLocation, CustomSet_X2_DefaultSet, TRUE);
oMonster = GetNearestCreature(CREATURE_TYPE_IS_ALIVE, TRUE, oPC);
ChangeToStandardFaction(oMonster, STANDARD_FACTION_HOSTILE);
AdjustReputation(oPC, oMonster, -100);
SetIsTemporaryEnemy(oPC, oMonster);
AssignCommand(oMonster, DetermineCombatRound(oPC));
AssignCommand(oMonster, ActionAttack(oPC));
}