Auto-translated
When attacking a creature, a message should appear before the battle. It does appear, but the problem is that it also appears after the battle. How can I make it so that the message only appears after the first interaction with the monster?
function fMes1(heroname)
MessageBox('Maps/SingleMissions/presave333/Test.txt');
SetObjectEnabled('FirstGrem',true);
MakeHeroInreractWithObject(heroname,'FirstGrem');
Trigger(OBJECT_TOUCH_TRIGGER,'FirstGrem',nil);
end;
SetObjectEnabled('FirstGrem',nil);
Trigger(OBJECT_TOUCH_TRIGGER,'FirstGrem','fMes1');