# Show Dialogue One Time Only

**URL:** <https://forum.makecode.com/t/show-dialogue-one-time-only/4005>\
**Category:** Arcade\
**Created:** [October 21, 2020, 4:02pm UTC](https://forum.makecode.com/t/show-dialogue-one-time-only/4005 "2020-10-21T16:02:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ric0ch3t](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ric0ch3t/32/3445_2.png) [@ric0ch3t](https://forum.makecode.com/u/ric0ch3t)\
**Post date:** [October 21, 2020, 4:02pm UTC](https://forum.makecode.com/t/show-dialogue-one-time-only/4005/1 "2020-10-21T16:02:28Z")

</div>

One of my students is working on an adventure game using the block editor. They want their character to approach a house and say, “I’ve never seen this house before.” Right now they have it set for when the character overlaps a tile in front of the house, it displays the text. However, they don’t want that to happen in the future when the character overlaps the tile. They want it to work just once then no more.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [October 21, 2020, 4:05pm UTC](https://forum.makecode.com/t/show-dialogue-one-time-only/4005/2 "2020-10-21T16:05:16Z")

</div>

Welcome!

Should it be persistent across reloads and power cycles?

Either way, you should have a state variable saying like, if `seen_house` is `False`, then show dialog and set `seen_house` to `True`.

---

<div class="post-metadata">

**Author:** ![ric0ch3t](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ric0ch3t/32/3445_2.png) [@ric0ch3t](https://forum.makecode.com/u/ric0ch3t)\
**Post date:** [October 21, 2020, 4:37pm UTC](https://forum.makecode.com/t/show-dialogue-one-time-only/4005/3 "2020-10-21T16:37:14Z")

</div>

It should persist across reloads that way when the character returns to the house, it doesn’t repeat the dialogue.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [October 21, 2020, 4:40pm UTC](https://forum.makecode.com/t/show-dialogue-one-time-only/4005/4 "2020-10-21T16:40:32Z")

</div>

There is the settings extension, which can save boolean values. Look for it in `Advanced` --\> `Extensions`
