Show Dialogue One Time Only

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.

1 Like


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.

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

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

1 Like