Start different dialog based on room location

Started by lazy-slob, Sun 16/12/2018 17:47:49

Previous topic - Next topic

lazy-slob

Hi All,

I want to start a dialog when interacting with character but if in room 1 launch a different dialog compared to room 2.

Please can someone advise an if statement.

Thanks

eri0o

Characters have a Room property. You can use to get a character room or the player room as an integer.

Code: ags

if(cCharacter.Room==1){
  dDialog1.Start()
} else if(cCharacter.Room==2){
  dDialog2.Start()
}


SMF spam blocked by CleanTalk