generated from Jaysyn/ModuleTemplate
52 lines
1.5 KiB
Plaintext
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;
|
|
}
|
|
}
|