Temp Text not working

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.

Edit:
And it does. Just tested it.

Choicescript_stats.txt

*if rep = 0
    *set rep_text "Neutral"
    *goto chart
*elseif rep = 1
    *set rep_text "Positive"
    *goto chart
*elseif rep = 2
    *set rep_text "Very Positive"
    *goto chart
*elseif rep = 3
    *set rep_text "Amazing"
    *goto chart
*elseif rep = 4
    *set rep_text "Hero"
    *goto chart
*elseif rep = 5
    *Set rep_text "Living Legend"
    *goto chart
*elseif rep = 6
    *set rep_text "Negative"
    *goto chart
*elseif rep = 7
    *set rep_text "Very Negative"
    *goto chart
*elseif rep = 8
    *set rep_text "Hated"
    *goto chart
*elseif rep = 9
    *set rep_text "Tyrant"
    *goto chart

*label chart

Character
*stat_chart
  text Name
  text Gender_text Gender
  text Money
  text Health_text Health
  text rep_text Reputation

The test code in the startup.txt file:

*title Test

*create rep_text "Neutral"
*create rep 0
*create name ""
*create gender_text ""
*create money 0
*create health_text 50


*label setrep
*choice
    #set rep 0
        *set rep 0
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 1
        *set rep 1
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 2
        *set rep 2
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 3
        *set rep 3
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 4
        *set rep 4
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 5
        *set rep 5
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 6
        *set rep 6
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 7
        *set rep 7
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 8
        *set rep 8
        You changed your reputation.
        *page_break
        *goto setrep
    #set rep 9
        *set rep 9
        You changed your reputation.
        *page_break
        *goto setrep

Just put that code in an empty version of choicescript and you can see it for yourself.

1 Like