Aschbourne_PRC8/_module/nss/deity_cleric.nss

30 lines
811 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
#include "deity_include"
int StartingConditional()
{
object oPC = GetPCSpeaker();
string sDeity = GetDeity(OBJECT_SELF);
SetLocalString(oPC,"Deity",sDeity);
SetCustomToken(270, GetDeity(OBJECT_SELF));
SetCustomToken(271, GetLocalString(OBJECT_SELF,"Title"));
SetCustomToken(272, GetLocalString(OBJECT_SELF,"Description"));
SetCustomToken(273, GetLocalString(OBJECT_SELF,"Domains"));
SetCustomToken(274, GetLocalString(OBJECT_SELF,"Alignment"));
SetCustomToken(275, GetLocalString(OBJECT_SELF,"Weapon"));
Race_Check(oPC);
Align_Check(oPC);
Domain_Check(oPC);
int iRace = GetLocalInt(oPC,"Race");
int iAlign = GetLocalInt(oPC,"Align");
int iDomain = GetLocalInt(oPC,"Domain");
if (GetDeity(oPC)!= GetDeity(OBJECT_SELF)) return FALSE;
if ((iRace!=1)||(iAlign!=1)||(iDomain!=1)) return FALSE;
return TRUE;
}