New to Dialogue System - Variables Not Resetting
Posted: Sun Jun 27, 2021 4:48 am
Good morning! First of all, I just wanted to say that I am so elated to have found Dialogue System. As someone who has next to zero knowledge of coding, it's really great to be able to focus on the creative aspects of game design rather than the technical knowledge. Combined with Corgi Engine, I really feel unstoppable!
I ran into an interesting hang-up this evening, which might partially be due to my lack of technical knowledge. I followed your great tutorial on How to Run a Conversation Only Once. I was excited to use this, as I've got conversations set up with game objects that should only run once. For example, the player character can walk up to a clock, the dialogue "Tick tock" will appear, and I'd like for it to not be repeatable. Your tutorial worked as intended, but I found that when I clicked 'play' to test my game out in Unity, my variables are being stored. Unity has decided to forever remember that I talked to that clock 5 minutes ago when I was testing the game out previously.
I thought adding a script like you suggested here would work, but I've got two almost-identical scenes with the same clock. If I stay in the starting scene, I'm able to talk to the clock each time I load up to test my game. If I make it to the scene with the second clock, I'm not able to talk to it a second time (as intended), but the variable is forever recorded. Is there any way around this?
Also, is there any way to erase the variables that have already recorded? I'm up to variable TalkedToNPC4, and it would be great to start fresh.
Thank you for your assistance!
I ran into an interesting hang-up this evening, which might partially be due to my lack of technical knowledge. I followed your great tutorial on How to Run a Conversation Only Once. I was excited to use this, as I've got conversations set up with game objects that should only run once. For example, the player character can walk up to a clock, the dialogue "Tick tock" will appear, and I'd like for it to not be repeatable. Your tutorial worked as intended, but I found that when I clicked 'play' to test my game out in Unity, my variables are being stored. Unity has decided to forever remember that I talked to that clock 5 minutes ago when I was testing the game out previously.
I thought adding a script like you suggested here would work, but I've got two almost-identical scenes with the same clock. If I stay in the starting scene, I'm able to talk to the clock each time I load up to test my game. If I make it to the scene with the second clock, I'm not able to talk to it a second time (as intended), but the variable is forever recorded. Is there any way around this?
Also, is there any way to erase the variables that have already recorded? I'm up to variable TalkedToNPC4, and it would be great to start fresh.
Thank you for your assistance!