リファレンス URL:room

「実数 (Real) 」として値取得。読み取り専用ではない。

現在のルームを番号として取得する。0 Base index;

存在しないルームを指定するとアプリケーション実行中に強制終了を喰らわせる。

This variable holds the room index for the current room that your game is running. This is not a read only variable, however changing this will not change the index value for the current room, but rather change the room to match the index that you have set the variable to. Care should be taken when doing this as if the index you change the variable to is not valid the game will throw an error and close. In general it is much better practice to use room_goto to change rooms.


スクリプト・サンプル
if room_next(room) != -1 { room_goto(room_next); };
Variables (Global) /room

Leave a Reply

Your email address will not be published. Required fields are marked *