*input text name Command


#1

Hi!

I want player to choose his/her own name.
With *input text name command.
But here is the problem.

The game has it’s own characters (NPCs) and they all got names.
Example: Gom (a unique name)

So, the player can choose the name “Gom”.
And so, i think, if the player does this, the npc should response this similarity about the names.
Or, how can I “forbid” choosing this name (Gom).
Just tried so many combinations. Combinations of the cases. İt was like this:

*label nameselect

*input_text name

“Your name is $!{name}”

__*if isim = “Gom”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “GOm”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “GOM”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “gom”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “gOm”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “gOM”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “GoM”
____“You can’t use this name.”
____*page_break
____*goto nameselect
__*if isim = “goM”
____“You can’t use this name.”
____*page_break
____*goto nameselect

It goes on and on.
Forbidding all case combinations of that name.
And there are lots of names by the way.
How can I solve this?
Or, is there any solution to this?
Thanks!


#2

Not really… But the chances of someone naming their character GOM is pretty slim, I assure you.

But anyway shouldn’t it be *if name = “Gom” - where did isim come from??

And I’m not sure if it’s case sensitive.

For the similarity you could just do:

If name = “Gom”
whatever needs to be said


#3

isim means name in my language, i think i forgot to change it to “name”. anyway, thank you =)


#4

I also think names aren’t case sensitive.


#5

I’ve tested this.
For example, there is a character named Gom in the story. He is an npc. So in the beginning, if you type “Gom” to your name selection bar, the game will give an error message like “You can’t use this name.” But if I write “GOM”, game accepts this name. But the name is still the same.


#6

The alternative might be to give the player a selection of names from which to choose (none of which are used for NPCs in the story) with a final option to enter their own name if they prefer–and simply not worry too much about the player choosing to call himself “Gom”. Most players would probably be content with picking a name from the list provided.


#7

@Vendetta Yes you are right. Choosing a name from the list is the best. Thank you.