Hello! A friend gave me this code. He just installed the MV free 20 day trial version, coded this and worked in his PC. Then I tried this code in my machine, and the "block-scoped declarations not yet supported outside strict mode" error happens.
Code:
let numeroEventos = 3;
if ($gameVariables.value(1000) < numeroEventos) {
for (var i = 0; i < 99999; ++i) {
let iEvento = Math.randomInt(numeroEventos)+1;
if ($gameVariables.value(iEvento+185) == 0) {
$gameVariables.setValue(iEvento+185, 1);
$gameTemp.reserveCommonEvent(iEvento+1);
$gameVariables.setValue(1000, $gameVariables.value(1000)+1);
break;
}
}
}