Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
Hello! I want a very simple variable that records if an event has happened. What I want to do is use this for quests and have it persist between scenes. For example.... has the player discovered the clue about the dead miners? If yes, then a dialogue tree will become available with an NPC. If not, the dialogue remains hidden. Any ideas how to do this?
To cover some of the bases, yes I always make sure the spelling and capitalization of variables are the same and I use them saved as an "effect" to stamp it in my scene and eliminate human error.
I also have successfully used number variables with the "get" and "add" modifiers to track a player's obtained currency, and had it persist throughout all of my scenes.
I just need to know how to make the variable something more of an on/off toggle rather than a number gatherer.
Thanks in advance for your help!