// guard_c_showm1 - Show Guard point 2? int StartingConditional() { object oMod=GetModule(); object oPC=GetPCSpeaker(); string sID=GetLocalString(oPC,"sTeamID"); location lLoc=GetLocalLocation(oMod,"lGuard2_"+sID); object oArea=GetAreaFromLocation(lLoc); float fX; float fY; float fZ; vector vPos=GetPositionFromLocation(lLoc); int nX; int nY; int nZ; string sToken; int nNum=2; if (oArea!=OBJECT_INVALID) { // area exists fX=vPos.x; fY=vPos.y; fZ=vPos.z; nX=FloatToInt(fX); nY=FloatToInt(fY); nZ=FloatToInt(fZ); sToken=GetName(oArea)+"("+IntToString(nX)+","+IntToString(nY)+","+IntToString(nZ)+")"; SetCustomToken(88000+nNum,"Currently assigned to: "+sToken); } // area exists else { SetCustomToken(88000+nNum," "); } return TRUE; }