Making charactor walk into room when certain dialog used

Started by lazy-slob, Sat 15/12/2018 21:02:04

Previous topic - Next topic

lazy-slob

Hi All,

My game starts off with the player and another character in the room. I want it so when using dialog if a certain question is chosen then this makes a 3rd charactor walk into the room, ask me a question and the other character to leave.

Any ideas how to achive this?

eri0o

On the 3rd character, place it outside of the room from where it's supposed to be, then use cThirdCharacter.walk to make the third character walk to the place you want.

You can do script functions inside a dialog text if you preceed it by a space or more.

Code: ags

@S  // Dialog startup entry point
CharacterOne: Hi Two!
CharacterTwo: Hello One!
  cCharacterThree.Walk(16,32,eBlock);
CharacterThree: Hello One and Two!
CharacterTwo: Humpf.
  cCharacterTwo.Walk(-2,-2,eBlock);
stop


SMF spam blocked by CleanTalk