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

54 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: CEP Creature Wizard
//:: Community Expansion Pack
//:://////////////////////////////////////////////
/*
Set the target's alignment as a conversation
token
*/
//:://////////////////////////////////////////////
//:: Created By: 420
//:: Created On: April 20, 2009
//:://////////////////////////////////////////////
#include "zep_cw_inc"
void main()
{
struct CW2da data = Get2daData();
object oTarget = data.target;
string sAlign;
switch(GetAlignmentLawChaos(oTarget))
{
case ALIGNMENT_CHAOTIC:
sAlign = "Chaotic";
break;
case ALIGNMENT_LAWFUL:
sAlign = "Lawful";
break;
default:
sAlign = "Neutral";
break;
}
switch(GetAlignmentGoodEvil(oTarget))
{
case ALIGNMENT_EVIL:
sAlign = sAlign+" Evil";
break;
case ALIGNMENT_GOOD:
sAlign = sAlign+" Good";
break;
default:
sAlign = sAlign+" Neutral";
break;
}
if(sAlign == "Neutral Neutral")
{
sAlign = "True Neutral";
}
SetCustomToken(307, sAlign);
}