For starters I think your indenting isn’t right. There shouldn’t be any indents.
secondly I"m not sure why you’re setting it out like that. Shouldn’t it be more like
*label stats
[b]Name:[/b] $!{name}
*line_break
It always helps if you post the exact error you’re getting
(By the way I’ve edited the post so people know what you’re asking about and you can get help.)
Edit: Actually misread it. Ok do look at the spacing because I don’t think you should continue to use spaces after text name, but if that doesn’t work the problem might be in the set up of the stat_chart. To me it looks like you’re missing a value.
for example
*stat_chart
text health_text [b]Health[/b]
You then need to define the health_text in further coding. Do you have that? An error code would be helpful here.
Yes it does (If you check the example I put up), but anything after that (like line_break) shouldn’t have the indent. I think you can use line_break between stat_chart commands if you want to spread them out but then would probably need to use the stat_chart command again before the next one.
Quickest option is to use the testers built into the program to see which line the problem is on.
*stat_chart doesn’t like anything indented below it other than ‘percent’, ‘text’ or ‘opposed_pair’. Just use two, with a *line_break between if desired:
*stat_chart
text name_text [b]Name[/b]
*line_break
*stat_chart
percent blah blah
*set assigns a value to properties, you can also make *set [property] +1 to add one to numerical values, or use - to subtract. You can only *set properties that have been created. Both *create and *temp can do this, but with caveats.
*create makes it so that that property lasts throughout the whole game, but can only be done at the beginning of the game. *temp can be done anywhere. However, *temp only creates that property for the scene in question, it won’t last past that scene, and will be deleted if you leave that scene via *finish or *goto_scene.
*goto and *goto_scene function somewhat similarly. *goto tells the system to skip to wherever the label name is.
For example:
*label loop
*goto loop
would create an infinite loop where the system is told to read starting from loop, whereupon the first command is to read starting from loop. *label is something like a pointer, it marks down locations you can use the *goto command to find, note that *goto only functions within the scene itself, so no worries if you set the same label name so long as all are in different scenes. *goto_scene instead moves you to the beginning of the scene specified. If you want to move to a specific label in the scene, use *goto [scene] [label].
Remember that for the stat chart to display man or woman, you have to create the variables for them in the startup file and either set them true or false later on in the code.
I didn’t know that you couldn’t just assign two things to one property. The more you know, I guess. In my text, I labeled gender as “Unknown” and went off from there.