Skip to content

Video clip on the map (adventure dialog).

User Avatar
#22
Auto-translated
3. Enter the script:
function hello(hero);
if hero == the name of your hero in quotes then
StartAdvMapDialog(0);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame in quotes, nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame, "hello");
Where should I enter the script? Select a neutral unit, press the spacebar, press Script, and then Edit Script and write what you provided?
Or should I go to Map Properties, select Script, and then Edit Script????
And also, in the first line
function hello(hero);
should I write the hero's name in quotes after hello?
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame in quotes, nil);
When I wrote REGION_ENTER_AND_STOP_TRIGGER, the region name in English, should I put "nil" at the end, and should I use commas?????

Added 37 minutes later
I tried to enter the script by selecting a neutral unit, pressing the spacebar, pressing Script, and then Edit Script and writing what you provided. It didn't work....
I went to Map Properties, selected Script, and then Edit Script - I wrote everything, but it didn't work...
Can you take a look and see where I made a mistake? Here are the screenshots:

Here's another one:

And another one:

Thank you for your answers!