PRC8_fork/nwn/nwnprc/trunk/smp/smp_ail_dominate.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

46 lines
1.3 KiB
Plaintext

/*:://////////////////////////////////////////////
//:: Name NPC only Dominate Effect Heartbeat Script
//:: FileName SMP_ail_dominate
//:://////////////////////////////////////////////
This runs for NPC's affected with EffectDomination(). The effect creator
is thier master, and they are GetAssociateType(OBJECT_SELF) == ASSOCIATE_TYPE_DOMINATED
Domination is impossible to impliment as per 3.5E - we're not adding
henchmen here!
// Create a Dominate effect
effect EffectDominated()
As AI script changing is impossible, we just determine a standard combat
round.
It always follows the master, of course, and as it is the default
AI, it shouldn't kill the master.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//:: Created On: October
//::////////////////////////////////////////////*/
#include "NW_I0_GENERIC"
#include "SMP_INC_AILMENT"
void main()
{
//Allow commands to be given to the target
SetCommandable(TRUE);
// Stop
ClearAllActions();
// Speak...
SpeakString( "...your will is my command...");
// Attack
DetermineCombatRound();
if(!GetIsInCombat(OBJECT_SELF))
{
// Follow after any actions.
ActionForceFollowObject(GetMaster(), 5.0);
}
//Disable the ability to give commands
SetCommandable(FALSE);
}