PRC8/nwn/nwnprc/trunk/smp/smp_ai_getmaster.nss
Jaysyn904 d87fe14826 Further file organization
Further file organization
2023-08-23 22:11:00 -04:00

29 lines
763 B
Plaintext

/*:://////////////////////////////////////////////
//:: Name Check if master
//:: FileName SMP_AI_GetMaster
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
This is a conversation script.
Returns TRUE if the the PC is our master or spell caster master raster blaster
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_CONSTANT"
int StartingConditional()
{
// Get the PC
object oPC = GetPCSpeaker();
// Check
if(GetMaster(OBJECT_SELF) == oPC ||
GetLocalObject(OBJECT_SELF, SMP_MASTER) == oPC)
{
return TRUE;
}
return FALSE;
}