As indicated below, I don't currently have the script looking for a set Class Level in the "Text Appears When..." field. My thinking was the script would simply identify any level of the class and return TRUE when needed, which is what I'm looking to do with the script.
Thanks for the help clearing this up!
Discount Price Script:
#include "nw_i0_tool"
int nWizard = CLASS_TYPE_WIZARD;
int nSorcerer = CLASS_TYPE_SORCERER;
int StartingConditional()
{
object oPC = GetPCSpeaker();
if(GetGold(oPC) > 24 && (GetLevelByClass(nWizard, oPC) || GetLevelByClass(nSorcerer, oPC)))
return TRUE;
return FALSE;
}
Full Price Script:
#include "nw_i0_tool"
int nWizard = CLASS_TYPE_WIZARD;
int nSorcerer = CLASS_TYPE_SORCERER;
int StartingConditional()
{
object oPC = GetPCSpeaker();
if(GetGold(oPC) < 50 || GetLevelByClass(nWizard, oPC) == TRUE || GetLevelByClass(nSorcerer, oPC) == TRUE)
return FALSE;
return TRUE;
}