Struggling with Name Input

Hello! I’m starting a new game, but I’m having quite a few issues with getting the variables for the name input to work. image
image

image

Could someone help?

The problem is in Choice stats not in you input of names .Put it out of stat chart and simply

Name  ${fname} ${lname}
1 Like

If it shows nothing in the Status-Screen it is, cause you wrote the variables wrong, you named them sname and fname, so you should call them that and Not “Fname” and “Sname” in stat screen.

May I ask why you used the if command, are there several times you ask for the name? Otherwise just the input would be enough

1 Like

Worth mentioning: for conditionals to work, the directly following executed line should be denoted by indentation.

*if (something)
	doThis

The way *ifs are structured in your example

*if (something)
doThis

won’t be picked up by CS.

2 Likes

You forgot to put the dollar signs ($) so the game is translating whatever name you put in as a new variable rather than as a string to be reported.

Also keep your indents consistent omg

1 Like

I read another post on here that suggested the If commands since I was at a loss on what to do, thank you so much for answering, though.

Thanks, gonna try this out as well as other response.

I am also going to attempt your fix the moment I can, really want to get on with the story.

Okay, it well, opens now, that’s a start.

image

That didn’t work either, keep getting told there’s no Variable for the name I apply (For simplicity’s sake, it was Jake.)

I will put one of my games stats here you can check out as this is weird.

${name} ${surname} personal data

[b]Biography[/b]
You are a ${boy} from ${region} You have been destined to ${class} class. For now your life is a blank page. 

[b]Physical appearance[/b]

Body built: ${built}

Eye color ${eyes}

Hair color ${hair}

[b]Skills[/b]
*stat_chart
  percent martial Martial knowledge
  percent haggle Haggle
  percent tech Technology
  opposed_pair energy 
    Wisdom seeker
    Power seeker
  percent charisma Charisma
  percent intelligence Intelligence

All ${} were introduced via input and work well.

1 Like

I added $, didn’t work either, sadly.

I have that written on my data, but it doesn’t show the inputted name, sadly.

@HeadUnderwater I recommend you read up on a tutorial kindly put together on a choicescript wiki:

It explains the basics of how and why things work in CS really well.

2 Likes

Thank you, I quickly did a read over on the subjects I needed, but I couldn’t find the part to explain how to use an inputted name. There was a stat page, but it did not explain how to use the inputted name.

In data types:


Look up “String variables” section.

2 Likes

And for my startup.

image

Took a longer look at the article and tried the *Set var command, didn’t do anything to help me.

I put your variable and put input command and worked on quick text. No idea won’t work for you.

1 Like

It’s frustrating as it’s right at the start, I have another bug I could be working on instead of something that should be working.