Added PEPS AI

Added PEPS AI.
Full compile.
Reorganized repository.
This commit is contained in:
Jaysyn904
2025-07-28 12:49:34 -04:00
parent b831afe171
commit ab2fc1d732
5040 changed files with 71106 additions and 8200 deletions

View File

@@ -0,0 +1,34 @@
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.2
For download info, please visit:
http://www.angelfire.com/space/lilacsoul */
//Put this OnDeath
void main()
{
object oPC = GetLastKiller();
object oTarget;
object oSpawn;
//
// Create portal regardless of who kills Cain.
//
oTarget = GetWaypointByTag("wp_cain_portal");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "cainportal", GetLocation(oTarget));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_IMPLOSION), GetLocation(oTarget));
DestroyObject(oSpawn, 300.0);
if (!GetIsPC(oPC)) return;
//
// Only port Cains killer if they are a PC. They port immediately on killing cain!
//
AssignCommand(oPC, ClearAllActions(TRUE));
oTarget = GetWaypointByTag("wp_caindeath");
AssignCommand(oPC, JumpToObject(oTarget));
oTarget = oPC;
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_DARKNESS), GetLocation(oTarget));
}