Skip to content
#605
Auto-translated
Incorrect script construction. It should be: function ask1 () MessageBox ("/Maps/SingleMissions/Illusion Castle/ask1F.txt"); sleep(5) QuestionBox ("/Maps/SingleMissions/Illusion Castle/ask1.txt", 'yes', 'no'); Trigger(OBJECT_TOUCH_TRIGGER, "hat", nil); end; Trigger(OBJECT_TOUCH_TRIGGER, "hat" "ask1" ); function yes () SetObjectiveState('obj_5', OBJECTIVE_ACTIVE); SetObjectiveVisible( 'obj_5', true, PLAYER_1 ); end; I also recommend using GetMapDataPath()..'filename.txt' instead of the folder path. P.S. Have you checked the encoding of the .txt file? Is it Unicode? Check the GetUnitNames function (or something like that, it's better to check the manual, there are more details and some specifics). Thank you! Sincerely.
Мои карты:
SinglePlayer: Выбор Зехира
Падение Стедвика(pre-release)
Готовится: Зима Титанов, Столетняя война