generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload
This commit is contained in:
51
_mod/_module/nss/adjust_alignment.nss
Normal file
51
_mod/_module/nss/adjust_alignment.nss
Normal file
@@ -0,0 +1,51 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
// Alignment adjuster for Players
|
||||
// By Deva Bryson Winblood. 12/28/2003
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#include "hos_alignment"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oMe=OBJECT_SELF;
|
||||
string sID=GetLocalString(oMe,"sTeamID");
|
||||
int nC;
|
||||
if (sID=="DWF")
|
||||
{ // good or TRUE NEUTRAL characters only
|
||||
if (GetAlignmentGoodEvil(oMe)==ALIGNMENT_EVIL)
|
||||
{ // evil not allowed
|
||||
AdjustAlignmentPartyProtected(oMe,ALIGNMENT_GOOD,100);
|
||||
} // evil not allowed
|
||||
else if ((GetAlignmentGoodEvil(oMe)==ALIGNMENT_NEUTRAL&&GetAlignmentLawChaos(oMe)==ALIGNMENT_NEUTRAL)||GetAlignmentGoodEvil(oMe)==ALIGNMENT_GOOD)
|
||||
{ // is a permitted alignment
|
||||
} // is a permitted alignment
|
||||
else
|
||||
{ // make lawful good
|
||||
AdjustAlignmentPartyProtected(oMe,ALIGNMENT_GOOD,100);
|
||||
//AdjustAlignment(oMe,ALIGNMENT_LAWFUL,100);
|
||||
} // make lawful good
|
||||
} // good or TRUE NEUTRAL characters only
|
||||
else if (sID=="SPID")
|
||||
{ // any evil... if not evil makes chaotic evil
|
||||
if (GetAlignmentGoodEvil(oMe)!=ALIGNMENT_EVIL)
|
||||
{ // make chaotic evil
|
||||
AdjustAlignmentPartyProtected(oMe,ALIGNMENT_EVIL,100);
|
||||
//AdjustAlignment(oMe,ALIGNMENT_CHAOTIC,100);
|
||||
} // make chaotic evil
|
||||
} // any evil... if not evil makes chaotic evil
|
||||
else if (sID=="UND")
|
||||
{ // any evil... if not evil makes neutral evil
|
||||
if (GetAlignmentGoodEvil(oMe)!=ALIGNMENT_EVIL)
|
||||
{ // make chaotic evil
|
||||
//AdjustAlignment(oMe,ALIGNMENT_NEUTRAL,100);
|
||||
AdjustAlignmentPartyProtected(oMe,ALIGNMENT_EVIL,100);
|
||||
} // make chaotic evil
|
||||
} // any evil... if not evil makes neutral evil
|
||||
else
|
||||
{ // unclean... any evil or neutral... makes lawful evil
|
||||
if (GetAlignmentGoodEvil(oMe)!=ALIGNMENT_EVIL&&GetAlignmentGoodEvil(oMe)!=ALIGNMENT_NEUTRAL)
|
||||
{ // make chaotic evil
|
||||
AdjustAlignmentPartyProtected(oMe,ALIGNMENT_EVIL,100);
|
||||
//AdjustAlignment(oMe,ALIGNMENT_LAWFUL,100);
|
||||
} // make chaotic evil
|
||||
} // unclean... any evil or neutral... makes lawful evil
|
||||
}
|
||||
Reference in New Issue
Block a user