Pre set names in choice games?


#1

Bit of a dunce-e question but a lot of choice of games have a list of author chosen names for the player, and i got the input name deal down but how do you set those pre set names as player names assuming they choose to use one? Sorry if this question exists btw


#2
*label name
What's your name
*fake_choice
	#Samuel
		*set name "samuel"
	#Paul
		*set name "paul"
	#Nathan
		*set name "nathan"
	#Adam
		*set name "adam"
	#None of these are my name 
		OK, what is it?
		*input_text name
		$!{name}. Is it right ?
		*fake_choice 
			#Right
			#No my name is
				*goto name

#3

Just do copy-paste.
Something like this :point_down:t4:

Kimi no nawa
*choice
    #Bob
        *set name "Bob"
    #Bobby
        *set name "Bobby"
    #Bubu
        *set name "Bubu"

And the list goes on.


Ah, it appears I’m ninja’d.
Well, you get the idea.


#4

As written, this segment implies the game will capitalize an accidentally un-capitalized name. It’s really easy to ask if an un-capitalized name is correct as-is, or if the game actually should capitalize it. Like so:

    #Let me write my name for you.
        Your name is...
        *input_text name
        *if name != "$!{name}"
            Did you mean to type ${name} or $!{name}?
            *choice
                #I meant ${name}. Don't change anything.
                    *goto next_label
                #I meant $!{name}. Capitalize it, please.
                    *set name "$!{name}"
                    *goto next_label
                #Both are wrong. Let me choose something else entirely.
                    *goto choose_name
        *else
            Is ${name} correct?
            *choice
                #Yes, that's my name.
                    *goto next_label
                #No, I want a different name.
                    *goto choose_name

#5

I think when mentioning nouns we have to capitalize the first letter.


#6

Names are normally capital letter first. Almost always, in fact!

…But not actually always.

But not always. The correct way to spell bell hooks’ name is “bell hooks”, not “Bell Hooks”. The correct way to spell kari edwards’ name is “kari edwards” not “Kari Edwards”. The correct way to spell the surname of Charles de Gaulle is “de Gaulle” not “De Gaulle”.

Unless it’s also the first word of the sentence.

Make all the default names capital-letter first. But if you’re letting the player type a name in? Just ask. You’re probably right, almost always will be right, but give them a chance to do it differently if they really want.


#7

well it can’t hurt i guess unless they end up getting confused/frustrated/baffled because they typed with first letter capital and its showing them two same options.


#8

That’s why this line exists:


#9

Thanks.

I admit i didn’t read the code thoroughly.


#10

Yep that’d do it. I think its safe to say I’ve mastered the stats screen at least