Battledale_PRC8/_module/nss/jw_x2_im_pol_mod.nss
Jaysyn904 e5b3f6ad61 Finished PRC8 integration
Finished PRC8 integration.  Moved creature abilities to top hak.  Setup tooling.  Created release archive
2024-03-12 21:27:23 -04:00

44 lines
1.9 KiB
Plaintext

#include "prc_inc_spells"
/* Can not allow a character to use skills while not in their standard form */
int StartingConditional()
{
int iResult;
object oPC = GetPCSpeaker();
if (GetXP(oPC)==0)
{
AssignCommand(oPC,ClearAllActions());
AssignCommand(oPC,ActionStartConversation(oPC, "jw_craft_arm", TRUE, FALSE));
return FALSE;
}
int nEff = PRCGetHasEffect(EFFECT_TYPE_POLYMORPH,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_PETRIFY,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_STUNNED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_DAZED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_SLEEP,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_FRIGHTENED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_CHARMED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_DOMINATED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_TURNED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_TIMESTOP,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_PARALYZE,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_IMPROVEDINVISIBILITY,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_INVISIBILITY,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_ETHEREAL,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_ENTANGLE,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_DARKNESS,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_DOMINATED,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_CUTSCENE_PARALYZE,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_SWARM,oPC);
nEff = nEff || PRCGetHasEffect(EFFECT_TYPE_BLINDNESS,oPC);
nEff = nEff || GetIsInCombat(oPC);
nEff = nEff || GetLocalInt(oPC, "X2_L_DO_NOT_ALLOW_CRAFTSKILLS");
nEff = nEff || GetLocalInt(GetArea(oPC), "X2_L_DO_NOT_ALLOW_CRAFTSKILLS");
nEff = nEff || GetLocalInt(GetModule(), "X2_L_DO_NOT_ALLOW_CRAFTSKILLS");
iResult = (nEff == TRUE);
return iResult;
}