void main() { int nIdx=0; object oFWtroll=(GetObjectByTag("fr_fwatertroll03",nIdx)); object oTroll=(GetObjectByTag("fr_fwtroll03spe")); //enamble the Encounter at night. if (GetIsNight()) { SetEncounterActive(1,oFWtroll); } ///destroy anything remaining on daylight. if (GetIsDay()) { SetEncounterActive(0,oFWtroll); while (GetIsObjectValid(oTroll)) { DestroyObject(oTroll); nIdx++; oTroll=(GetObjectByTag("fr_fwtroll03spe",nIdx)); } } }