// squadl_report - respond to mission #include "color_header" void main() { object oPC=GetPCSpeaker(); string sID=GetLocalString(oPC,"sTeamID"); object oMod=GetModule(); int nParm=GetLocalInt(oPC,"nParm"); object oLeader=GetLocalObject(oMod,"oTeamLead"+sID); string sMsg=""; string sName="SQUAD LEADER["+GetName(oPC)+"]:"; if (nParm==1) sMsg="Acknowledges the mission and has indicated they are on it."; else if (nParm==2) sMsg="Refuses the mission you assigned them."; else if (nParm==3) sMsg="Reports the mission you assigned them has been completed."; else if (nParm==4) sMsg="Reports they have failed the mission you assigned them."; else if (nParm==5) sMsg="Respectfully requests reassignment. They either do not like the mission or are growing bored with it."; sName=ColorRGBString(sName,0,2,5); sMsg=ColorRGBString(sMsg,0,4,1); SendMessageToPC(oLeader,sName+sMsg); }