PRC8/nwn/trunk/smp/smp_ai_getmaster.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -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;
}