Since you want to keep this part only visible to yourself and want to hide the ??? from the player then the if condition is not needed that is why the error is popping up. You could just nix it and keep this and there shouldn’t be any problems
Since that is your intent and you want to be the only one to see it while coding you could use the *comment command like so
*comment ??? unknown var until set, when set ??? = Tori
The comment command works as author notes amongst the code which is only visible in the coding so the player won’t see it unless they decide to code dive. If you don’t mind me asking what are you using to write your game MS word, Notepad, CSide?
Notepad i think its called on english, but i use CSIDE to check wich lines since i can’t use it to play the test (keep saying startup file doesn’t exist ) handy for checking the numerical line but it feels compressed so i don’t use it for the coding part unless i have to
but its not my intent to only see it myself when coding, its my intent to have it reveal upon picking the right choice in the game when talking to the character but untill then it is to be invisible, so that the player won’t know who the romatic options are untill they actualy meet and pick the option that grant the MC intuition or some kind of hint that hey are getting more interessted in the MC
so that the player wont know in Meta terms that there are 8 romatic prospecs but to discover that as they play through the game, in same sense if they don’t find all 8 they can play again and there will be more to find in the next playthrough if they pick different paths.
i want to limit the Meta knowledge but still provide asisstance in keeping track of the path they have taken.
since i don’t know how to make that appear.
I’ll explain it like this with an viewer example
you walk into the room, you see three poeple, the girl you had met before introduced themselves as Tori ealier, a tall man wearing a purple vest and white shirt who you don’t know the name of.
and a short hairy creature with some kind of robe, you don’t know what they are called but they look kinda cute
who do you approach?
(Decides to approach Tori)
what do you say?
(decides to flirt with tori)
Tori seem to like your flirting and replies with a blushing smile
(here player gets the Tori Romance reveal and they can see it in the stat screen from here on out untill next playthrough where it will be hidden again) ---------------------------------------------------------------------------------------------------------------------
Ok, I think I understand what you’re saying from your example now, you could do a separate “side check” as I call them for when that condition is met for example taking from your above example:
#Decides to flirt with Tori
*set romance_A true
*set Toriflirt true
Tori seems to like your flirting and replies with a blushing smile.
(Stats page)
*if romance_A = 0
*stat_chart
percent romance1 "???"
*if ((romance_A = 1) and (Toriflirt = true))
*stat_chart
percent romance1 "Tori"
Or you could decide to do this
#Decides to flirt with Tori
*set romance_A +1
*set romance1 "Tori"
Tori seems to like your flirting and replies with a blushing smile.
(Stats page)
*if romance_A = 0
*stat_chart
percent romance1 "???"
Or even set the conditionals in the stat page so there is one singular set place for where it does a check for the numerical value of romance_A like so:
(Stats page)
*if romance_A = 0
*set romance1 "???"
*if romance_A = 1
*set romance1 "Tori"
*if romance_A = 2
*set romance1 "name1"
*if romance_A = 3
*set romance1 "name2"
*stat_chart
percent $!{romance1}
(The Choice)
#Decides to flirt with Tori
*set romance_A +1
Tori seems to like your flirting and replies with a blushing smile
Hopefully one of these makes sense for you. I started out on Notepad but before I even started writing out my story I was reading as much as I could on the coding bc I figured that was where I would make most of my mistakes. I eventually switched to CSide myself since I learn by trial and error mostly and now I use Notepad for my own notes on certain variable checks
Also for the *create romance1 “” variable when you create it are you showing it like *create romance1 ""
or *create romance1 "???"
because that would also make a difference in it showing as blank or as the question marks until the variable is set.
but i do have “???” string in the main file which i’m not touching untill i figure out the problem with it being either permanently invisible or showing the ???
because i don’t want the stat screen to show the ??? or the stat slot at all i want it to show nothing untill they progress for it to show something have changed.
imma look back on the thread fort the next 3 days and reply, but if i can’t find/get a good answer on the problem i guess i should just let the questionmarks be there untill Choice Of Games dev team decides to impliment a *hide / *show code to easier cover over things untill you want it to show.
So I think I finally figured out a solution after trying my hand at the coding in CSide, after my much needed nap, this is kind of what I did to get it to show up:
If you notice I added an extra variable that creates the percentage value needed for the stat screen which makes the stat screen look like this (I used the method I suggested but I will try it with @Lan suggestion):
*stat_chart
text romance_A Love Points
*if romance_A = 0
*stat_chart
percent Tori $!{romance1}
*if romance_A = 1
*stat_chart
percent Tori $!{romance1}
The only reason I did romance_A the way I did was so I could watch it change in the stats screen and reflect a change in the below code Edit
With the startup staying the same but changing the stat screen to this:
It also works for the intended purpose of popping up when romance_A = 1 which makes the *create Tori 50
unneeded although it makes the percent 1 instead of 50
Also when doing your true/false statements and in the *create command there does not need to be “” around the true or false since it is a boolean and not a string variable.
a string variable with a text value set as “true” is not the same as a boolean variable set to true
These are the different types of variables according to ChoiceScript’s Wiki Page: numeric data (containing a number , whether an integer or a floating-point value), string data (containing " text " of some description), or boolean data (a simple but very useful true or false binary switch)
Here i can review who i am
Player: $!{firstname} $!{lastname}
Gender: $!{Gender}
Sexuality: $!{sexuality}
Pronoun: $!{pronoun}
Class: $!{class}
*stat_chart
text Agility
text Strength
text Wisdom
text Charisma
text Intellect
opposed_pair Magic
Weapon
*if ((met_Tori = true) and (romance_A >= 1))
*stat_chart
percent Tori $!{romance1}
I will be putting my finding into the file that will be helping new writers with problems or just explaining is simplicity how they work even if they dont have knowledge in coding.