void main() { object oPC=GetEnteringObject(); object oMagicMouth=GetNearestObjectByTag("MAGIC_MOUTH",oPC); object oMod=GetModule(); string sMsg; string sKey; string sZodiac; if (GetIsPC(oPC)) { // is PC if (GetLocalInt(oPC,"bTEGodsCompleted")) { // already completed AssignCommand(oMagicMouth,SpeakString("You will not be permitted to challenge the temple a second time!")); } // already completed else { // give message sKey=GetLocalString(oMod,"sTempleKeywordName"); sZodiac=GetLocalString(oMod,"sTempleZodiac"); sMsg="You who have entered to challenge the Temple of The Elder gods be warned that the way is frought with peril. "; sMsg=sMsg+"You will need the key of "+sKey+" and only by the path of "+sZodiac+" will your way be less dangerous."; sMsg=sMsg+" You first must defeat the mothers of the four elements in order for you way to be opened."; AssignCommand(oMagicMouth,SpeakString(sMsg)); } // give message } // is PC }