So new question...
I am trying to make a conversation conditional. It compiles but it's not working for some reason and I'm at a loss as to why. My test character is a level 21 wizard with the Epic Spellcasting feat. So she should meet the conditions.
Here's the code
#include "inc_epicspells"
int StartingConditional()
{
object oPC = GetPCSpeaker();
if (!GetIsEpicCleric(oPC) || !GetIsEpicDruid(oPC) || !GetIsEpicSorcerer(oPC) || !GetIsEpicWizard(oPC)) return FALSE;
return TRUE;
}
Basically its supposed to check if the player is an epic caster of some sort (basically lvl 21 or higher in wizard, sorcerer, cleric or druid AND has my custom Epic Spellcasting feat)
For reference here's the definitions from the include
int GetIsEpicCleric(object oPC)
{
if (GetLevelByClass(CLASS_TYPE_CLERIC, oPC) >= 21)
if (GetHasFeat(FEAT_EPIC_SPELLCASTING, oPC))
return TRUE;
return FALSE;
}
int GetIsEpicDruid(object oPC)
{
if (GetLevelByClass(CLASS_TYPE_DRUID, oPC) >= 21)
if (GetHasFeat(FEAT_EPIC_SPELLCASTING, oPC))
return TRUE;
return FALSE;
}
int GetIsEpicSorcerer(object oPC)
{
if (GetLevelByClass(CLASS_TYPE_SORCERER, oPC) >= 21)
if (GetHasFeat(FEAT_EPIC_SPELLCASTING, oPC))
return TRUE;
return FALSE;
}
int GetIsEpicWizard(object oPC)
{
if (GetLevelByClass(CLASS_TYPE_WIZARD, oPC) >= 21)
if (GetHasFeat(FEAT_EPIC_SPELLCASTING, oPC))
return TRUE;
return FALSE;
}
I'm sure I just did it wrong in some small simple way '>