Skip to content

Posts from The function is not working correctly. Auto-translated

No ratings yet — be the first to rate!
#1
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');
User Avatar
#2
Auto-translated
Swap the lines MakeHeroInteractWithObject(heroname,'FirstGrem'); and Trigger(OBJECT_TOUCH_TRIGGER,'FirstGrem',nil);
 

К А
Стикеры GBF в Telegram
In reply to Ment
#3
Auto-translated
Ment
Swap the lines MakeHeroInreractWithObject(heroname,'FirstGrem'); and Trigger(OBJECT_TOUCH_TRIGGER,'FirstGrem',nil);

Thank you, now everything works as it should.