so, i am kinda new at this, so i’m sorry if this is really obvious or if this bothers you, but my computer is either glitching or i did this wrong. i want to code freckles into my story, but it goes with the cc. i used the gain command and if/elif, but when i preview it, if i click “Yes” it will do the freckles, but if i go back and click “No,” it won’t undo the freckles and im getting frusterated. so could someobody help me please? my code is right below this.
hii! Maybe try adding a gain NONE just underneath the label freckles?
And there’s no need to apologise for asking for help! many people here are more than happy to help someone
thank you! ill try it rn!
Flags don’t reset if you update your script or restart the episode, so if you keep playing/testing that part over and over the flags are still gained from previous play throughs which is why it always goes to the freckles.
So you have to reset your story progress, refresh the page, or toggle between your flags (Story Modifiers > Flags)
Also
You don’t need to add a “none” flag. You can just leave the no freckles choice empty and your if/else should just be like this
if (freckles) {
} else {
}
thank you! and this means that in the actual story it won’t do that right? thank you so much btw!
i tried it and it didn’t work, but it’s okay, i think i’ve figured it out. thank you sm for the help though!
What you can also do instead of resetting you can change the code to have the way I have it below. This way the character does not have the gain attached until it is confirmed.
choice
“OMG YES, FRECKLES!” {
@ROSELYN changes into rpjsf
NARRATOR
Are you sure?
choice
“Of course!” {
gain freckles
}
“No, go back!” {
goto freckles
}
}
“No freckles please, thanks lol.” {
@ROSELYN changes into rpjs
NARRATOR
Are you sure?
choice
“Of course!” {
gain NONE
}
“No, go back!” {
goto freckles
}
}
If you have a gain its permanent you can not repick. You have to reload the page.
Right because readers play your story only once.
thank you so much!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.