I created a “Reputation” temp text, which works perfectly fine until you try to change its value, even in the “create” section - It only works when it equels 0. There is no error message, it simply wont work. Thanks.
You have a temporary variable that’s called exactly the same as a continuous variable? That can’t work properly… I think. Try getting rid of the *temp variable.
If what you’re going for is a stat screen with text values (without stat bars) I would handle the code differently.
Eg. In the file:
choicescript.txt
Name: {name}
Gender: {gender_text}
Money: {money}
Health: {health_text}
Reputation: ${rep_text}
^— that way it displays what text you want, how you want it. You’d have to put in line_break to get them under each other.
I’d get rid of the temp “rep_text” as you’ve already globally created that in startup.txt. Also, with temp values I’m sure they need values like the global ones: numerical / boolean / text.
How are you doing the rep check? Using a gosub command?
I tried, and i got error message: "invalid line; this line should start with ‘percent’, ‘text’, or ‘opposed pair’. same with the other variables.
@Cecilia_Rosewood
As for getting rid of the temp “rep_text”, I dont want the text to stay the same for the entire game, I want it to change according to player choices, Using numbers and not text (aka “set rep +1”, Not "set rep_text “bla bla”).
If you’ve already got a permanent variable (the variable is permanent, not the value) you don’t need a temp variable by the same name. It should work fine without it.
That’s because *stat_chart requires one of those things. I forgot to mention to remove *stat_chart if you do it the way I suggested. No matter, it’s working for you now thanks to @Cecilia_Rosewood