Hello, please help in resolving the issue.
There are two events E1 and E2.
Hero activates E1, and E1 moves left with a balloon popped-out (zzz).
In a half of a second, E2 pops out its own balloon (!).
Unfortunately, this.wait(30) does not work here, neither for E2, nor for E1 (if I want E1 to pop another balloon while moving). Such command simply locks a hero from moving, and the balloons appear immediately.
Nevertheless, please see below the working script that I managed to create.
E1= $gameMap.event(1);
E2 = $gameMap.event(2);
E1.moveStraight(4);
E1.requestBalloon(10);
setTimeout('E2.requestBalloon(1);', 500);
However, it does not involve any 'wait' from objects.js, because I cannot get it how to use a check whether waiting is complete or not.
Please advise how to check in-game 'waiting' with JS?
And a general question: is there any list of checks for conditions similar to 'waiting' above, like animation is moving, or fade-out/fade-in are playing, etc.?
So far, I have found only a check whether a text window is open, gameMessage.isBusy()
There are two events E1 and E2.
Hero activates E1, and E1 moves left with a balloon popped-out (zzz).
In a half of a second, E2 pops out its own balloon (!).
Unfortunately, this.wait(30) does not work here, neither for E2, nor for E1 (if I want E1 to pop another balloon while moving). Such command simply locks a hero from moving, and the balloons appear immediately.
Nevertheless, please see below the working script that I managed to create.
E1= $gameMap.event(1);
E2 = $gameMap.event(2);
E1.moveStraight(4);
E1.requestBalloon(10);
setTimeout('E2.requestBalloon(1);', 500);
However, it does not involve any 'wait' from objects.js, because I cannot get it how to use a check whether waiting is complete or not.
Please advise how to check in-game 'waiting' with JS?
And a general question: is there any list of checks for conditions similar to 'waiting' above, like animation is moving, or fade-out/fade-in are playing, etc.?
So far, I have found only a check whether a text window is open, gameMessage.isBusy()