How to Test For Room

Started by Anralore, Sat 04/09/2021 16:56:21

Previous topic - Next topic

Anralore

Is there something along the lines of:

Code: ags

if (currentroom = 1) {
   playvideo("Room_1_exit", )
}
if (currentroom = 2) {
   playvideo("Room_2_exit", )
}
if (currentroom = 3) {
   playvideo("Room_3_exit", )
}

Crimson Wizard

Yes, it's "player.Room". There's also "player.PreviousRoom" to check what was the last room player came from.

Slasher

Code: ags

{
if {

}
else if {


}
else if {

}
}


SMF spam blocked by CleanTalk