Yes/No questions

Hi I always forget how this works... How do you make these again? I know I could do a switch script and pick a choice from yes or no but I thought there may be a simpler way? Idk, right now I'm making a lot of switch scripts and they take a while so if there's a quicker way, will someone please tell me?


Ask ("Do you like pie?") {
  if (result) {
    // code for 'yes' goes here
  }
  else {
    // code for 'no' goes here
  }
}

How can i make a dialog with npc?


You might want to create your own topic for that http://textadventures.co.uk/forum/quest/post And maybe specify a bit more what you want the conversation to look like (question/answer, information, ....)


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums