Files
HeroesStone_PRC8/_module/nss/qst_ck_is_align.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

52 lines
1.5 KiB
Plaintext

/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Forsettii's Quest Builder System.
Version 1.0
Created for Layonara Online
Forsettii Forsettii@yahoo.com
April 7, 2004
Alignment Checking Tool.
Variables: align - Then looks against the choices.
Valid Alignments: "good", "neutral", "evil", "lawful", "chaotic"
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
int StartingConditional()
{
string sAlign = GetLocalString(OBJECT_SELF, "align");
if ( sAlign == "good" )
{
if(GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_GOOD)
return TRUE;
return FALSE;
}
else if ( sAlign == "neutral" )
{
if(GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_NEUTRAL)
return TRUE;
return FALSE;
}
else if ( sAlign == "evil" )
{
if(GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_EVIL)
return TRUE;
return FALSE;
}
else if ( sAlign == "lawful" )
{
if(GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_LAWFUL)
return TRUE;
return FALSE;
}
else if ( sAlign == "chaotic" )
{
if(GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_CHAOTIC)
return TRUE;
return FALSE;
}
else
{
return FALSE;
}
}