hi
How exit commonevent with script ?
For call a commonevent the script is
$gameTemp.reserveCommonEvent(n);
but for force to exit is what?
i try this
$GameTemp.clearCommonEvent(n);
no work
tanks for help
my reason is this.
I need to force out if this variable are true
$gameVariables.value(2)==85;
My commonevent are
◆Régler Trajectoire Mouv.:Joueur
: :◇Attendre:5 trames
◆Commentaire:if click do this
◆Script:if ($gameVariables.value(2)==85) {
: :$gameSwitches.setValue(19, false);
: :$gameScreen.erasePicture(300);
$GameTemp.clearCommonEvent(n);
: :}
◆Script:new IAVRA.ANIMATE.Tween($gameScreen.picture($gameVariables.value(2)), {_scaleX:130, _scaleY:130}).easing(IAVRA.EASING.quart.out).duration(3).chain
: :( new IAVRA.ANIMATE.Tween($gameScreen.picture($gameVariables.value(2)), {_scaleX:100, _scaleY:100}).duration(7)).start();
◆Script:itemselected = $gameVariables.value(2)-99;
: :var TempsXselected = $gameScreen.picture($gameVariables.value(2))._x;
: :var TempsYselected = $gameScreen.picture($gameVariables.value(2))._y;
: :$gameScreen.showPicture(300, String(itemselected), 1, TouchInput.x, TouchInput.y, 100, 100, 50, 0);
◆Jouer SE:pop1 (90, 150, 0)
◆Contrôler les Interrupteurs:#0019 itemget = ON