Sets the script counter for scenario scripts to the specified value. The script counter is responsible for calling the ScriptXXX functions in a scenario script. This does not apply to object scripts - those should be using TimerCall or ActMaps with StartCall/PhaseCall/EndCall.
In older script versions goto() would also cause an immediate
return(). This behaviour has changed with the
#strict standard. Now you have to write your
return() separately.
#strict
protected func Initialize()
{
// Scriptcounter starten
ScriptGo(1);
// Fertig
return(1);
}
protected func Script100()
{
// Flints erzeugen
CastObjects(FLNT,10,200, Random(LandscapeWidth()), 20);
return(goto(90));
}
A scenario script: a typical flint rain. Every 100 Frames 10 flints are created.