Auto-translated
Help a newbie with the script.
function MakeHeroes()
DeployReserveHero("Mardigo", 17, 161, 0);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Start", "MakeHeroes");
function podkrep()
MessageBox(You discovered a squad of allied rebels who destroyed the border town.);
MoveCamera(28, 148, 0, 50, 0, 0, 1, 1);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "gorod", "podkrep");
What should the script do?
1. When entering a specific location, it spawns Laslo.
2. When entering a specific location, it displays a message box stating that you have found reinforcements, and the camera smoothly flies to the specified coordinates.
The game throws an error in the script.
Well, at least read it yourself and analyze what errors the console is giving you. Most likely, in the first case, you did not fill in the hero's properties correctly or completely through Player properties in the editor. And in the second case, a separate text file is created there, which you already need to provide a link to in parentheses for "MessageBox".
And so that you can find answers to such questions yourself, here is a useful link:
/topic/13059/