hi guys how use Label in script call ???
I would like to jump to a dynamic label.
Example:
// Get de file name of picture
A = $gameScreen._pictures[$gameVariables.value(2)]._name;
// Convert A to string
A=String(A);
// and now jump to label A
$jumpTo(A);
Look at the game interpreter. That's what processes all commands so that's how you can see how to do it. I don't remember offhand but I think it just moved the current index and indent values in the interpreter until it found a matching label.
Well, one thing you can probably do is directly set the parameters array to the label name you want, an then call "this.command119();", which will run that code. I didn't test it, it's just the first thing I'd think to try if I needed to do this.
Modern Programming language usually don't use labels or goto's anymore due to ineffectiveness and other problems, the label is purely on the event level of execution.
Please describe exactly what you want to do, then we can point you into the direction on how to solve your problem.