# Simple dialogue system

**URL:** <https://discourse.processing.org/t/simple-dialogue-system/15616>\
**Category:** Coding Questions\
**Created:** [November 18, 2019, 5:17pm UTC](https://discourse.processing.org/t/simple-dialogue-system/15616 "2019-11-18T17:17:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 18, 2019, 8:47pm UTC](https://discourse.processing.org/t/simple-dialogue-system/15616/7 "2019-11-18T20:47:47Z")

</div>

`messageCounter` is just doing the different texts. When `messageCounter` reaches maximum we say `message1=true;`

to be honest though, would that be a very long winded and erroneous way if you have multiple screens and multiple messages.

In this case, arrays would be better.

for a similar sketch with arrays see here: [Any idea how to fix this? Quiz](https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418/6)

---

_[View the full topic](https://discourse.processing.org/t/simple-dialogue-system/15616)._
