Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

21 lines
690 B
Plaintext

////////////////////////////////////////////////////////////////////////////////
//
// Allegiance System
// opw_speak_allege
// By Don Anderson
// dandersonru@msn.com
//
// Check the Player's Allegiance through the Rest Menu.
//
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oPC = GetPCSpeaker();
int nAllege = GetLocalInt(oPC,"FACTION");
if(nAllege == 1){ SpeakString("I am allied with the Good People of the World."); return; }
else if(nAllege == 2){ SpeakString("I am allied with the Evil People of the World."); return; }
else { SendMessageToPC(oPC,"I need allegiance. Even if it means to myself!!"); return; }
}