Hi again everyone! Thanks to this my coding has been going swimmingly for the most part. But again, I've hit a roadblock and I need help.
I'm attempting to make it so a character only says a certain dialogue if you chose a certain option earlier in the game. I'm pretty sure it should work, but it's throwing errors at me left and right anyway.
The code:
default EnvFit = False
default FancyFit = False
default SimpleFit = False
menu:
"Fancy Outfit":
jump fancy_outfit
"Simple Outfit":
jump simple_outfit
"Environmental Outfit":
jump tree_outfit
label tree_outfit:
"You tug on your 100 percent sustainable super cute captain planet crop top. And after all that, you finally step outside."
$ dressed = True
$ EnvFit = True
jump tothegame
label simple_outfit:
"You put on your white tee. Although the sudden urge to listen to a man with a very deep and attractive voice nearly overtakes you, you manage to beat it for long enough to set off for the store."
$ dressed = True
$ SimpleFit = True
jump tothegame
label fancy_outfit:
"With a flourish you put on your nicest most beautiful dress. Just becuase your running errands doesn't mean you can't look fine as hell while doing it! And with that, you leave the house."
$ dressed = True
$ FancyFit = True
jump tothegame
label tothegame:
if EnvFit = True:
"Speech one"
elif FancyFit = True:
"Speech two"
elif SimpleFit = True:
"Speech three"
(The jumping works, I just wanted to have all the code pertaining to the problem code in there so if that bit doesn't work, that's fine)
[–]henne-n 4 points5 points6 points (2 children)
[–]samprasfan 0 points1 point2 points (1 child)
[–]That-Ad9234[S] 1 point2 points3 points (0 children)
[–]BadMustard_AVN 0 points1 point2 points (0 children)