The wiki may answer this one, but I’m having trouble parsing it if so.
For my game, I’m trying to create a variable for the PC’s “specialty” on the statscreen. I tried to model the code after how you input code for names, which looks like this in the statscreen:
*temp fullname "unknown"
*set fullname "!{firstname} !{lastname}"
*stat_chart
text fullname Name
*line_break
Like this in the startup.txt:
*create firstname "unknown"
and like this in the game when you make a selection:
*choice
#Joe
*set firstname "Joe"
goto nextsection
All that works great, it fills in the name on the statscreen just fine. Now for my specialty my code on the statscreen l tried to make it exactly the same way:
*temp myspecialty "unknown"
*set myspecialty "$!{myspecialty}"
*stat_chart
text myspecialty Specialty
*line_break
It has an identical portion in the startup.txt:
*create specialty "unknown"
and in for the player’s selection in the game looks like this:
*choice
#Pediatrics
*set myspecialty "Pediatrics"
*goto nextpart
As near as I can tell, the code is totally identical, yet when the player picks “joe” it fills in joe on the statscreen, yet when the player picks “Pediatrics” it doesn’t change what the statscreen is displaying. What am I doing wrong?
