I need a starting conditional that checks to see if the PC is dazed, but the script generator doesn't give an option to check on the present condition of a PC.
Any help is greatly appreciated.
int StartingConditional()
{
object oPC = GetPCSpeaker();
if (! (GetHasSpellEffect(SPELL_DAZE, oPC)) ) return FALSE;
return TRUE;
}
int StartingConditional()
{
object oPC = GetPCSpeaker();
effect eEff = GetFirstEffect(oPC);
while (GetIsEffectValid(eEff))
{
if (GetEffectType(eEff) == EFFECT_TYPE_DAZED) {return TRUE;}
eEff = GetNextEffect(oPC);
}
return FALSE;
}Modifié par Xardex, 25 octobre 2011 - 02:56 .