Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

22
_module/nss/clonepc.nss Normal file
View File

@@ -0,0 +1,22 @@
#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));
}