That's it, but let's add that the script should only work for our heroes; otherwise, an enemy bot might come (just in case?) and activate the script, which is not what we want (or is it?).
function Region1F( heroName )
if ( heroName == "scripted name of the first main hero" ) or ( heroName == "scripted name of the second main hero" ) then --if more main heroes are planned, you can add them in the same way as the check for the second hero
MessageBox ("/Maps/SingleMissions/ZimaMap1v2NoScriptsNoQuests/Spasenie1.txt")
StartCombat( heroName, nil, 4, 93, 100, 93, 100, 95, 75, 101, 15, nil)
RemoveObject('g1')
RemoveObject('g2')
RemoveObject('g3')
RemoveObject('g4')
RemoveObject('g5')
RemoveObject('g6')
sleep(1)
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"Region1",nil)
end
end
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"Region1","Region1F")
In general, I recommend AngryTapok1337 to download maps from the forum and explore them, or explore the campaign maps. This way, you can learn a lot and discover many interesting possibilities.