- Joined
- Feb 21, 2018
- Messages
- 5,039
- Reaction score
- 4,386
- First Language
- EN
- Primarily Uses
- RMMZ
@werzque - Andar is correct: command wait time only applies between commands.
Consider using multiple Script elements in your move route, e.g.
This allows the wait to process and tracks whether or not to jump afterwards by defining a temporary value on the character.
@Bex - that is for use in a stand-alone Script command, not in a move route Script. It is context-dependent because it uses the
Consider using multiple Script elements in your move route, e.g.
if (Math.random() < 0.8) {
$gameTemp.requestBalloon(this,5);
this._waitCount = 59;
this._jumpOnNextMoveCommand = true;
}
if (this._jumpOnNextMoveCommand) {
delete this._jumpOnNextMoveCommand;
this.jump(1, 2);
this.setMoveSpeed(4);
}
This allows the wait to process and tracks whether or not to jump afterwards by defining a temporary value on the character.
@Bex - that is for use in a stand-alone Script command, not in a move route Script. It is context-dependent because it uses the
this
keyword. It might be suitable...depends exactly what they're trying to achieve.