I want name "Unknown" but the game like "nah"

Names :

*create name "Unknown"
*create name "Jacob"
*create name "John"
*create name "Jonathan"
*create name "Jack"
*create name "Henry"
*create name "Jane"
*create name "Annie"
*create name "Felicity"
*create name "Monica"
*create name "Alexa"
*create name "Alexandra"
*create name ""

The choices:

*choice
 #Henry
  *set name "Henry"
  *goto is
 #John
  *set name "John"
  *goto is
 #Jonathan
  *set name "Jonathan"
  *goto is
 #Jack
  *set name "Jack" 
  *goto is
 #Jacob
  *set name "Jacob"
  *goto is
 #Annie
  *set name "Annie"
  *goto is
 #Jane
  *set name "Jane"
  *goto is
 #Felicity
  *set name "Felicity"
  *goto is
 #Alexa
  *set name "Alexa"
  *goto is
 #Alexandra
  *set name "Alexandra"
  *goto is
 #Wait, these are not my names
  *input_text name
*goto is
*label is
Your name is ${name}, is that right?
*choice
 #Yes
  *goto gender
 #Wait, no it's not.
  *goto name

@ashestoashes018 Oh that’s just for me! I like to keep my code nice, pretty, and easy to track. That’s why I break it up so I can keep track of it.

@YeThatFella
Well if *create name "" isn’t working I suggest trying to put it first on the list of names? I’m not really sure what’s going wrong st this point of what issue you are really having.

I would try, for efficiency’s sake, to go like this. I have a sneaking suspicion.

*create name ""

*set name ""

Even if you don’t have to set it, it still works, so it should. Also is that capitalized? Try doing

*create Name ""

Or simply

*create name ""

*set Name ""

That’s the only thing I can think of.

1 Like

That’s your issue, buddy.

Instead of *creating a bunch of name variables, which’ll break your code, you can only have one.

Are those supposed to be your options for a name? If so, you need to add them as #options in your *choice…

IE -

*create name "Unknown"

What is your name?
*choice 
 #Alexandra
  *set name "Alexandra"
  *goto scene
 

Etc.

Basically, you have your choices fine, but you can only have one variable for Name

1 Like

Doesn’t work. There is always “Alexandra” at the beginning for some reason.

Ok hold up. Let me get on a computer. I’m gonna show you some files for my own stuff, then show you how it looks on a test screen/on dashingdon

Don’t put:
*create name “Unknown”
*create name “Jacob”
*create name “John”
*create name “Jonathan”
*create name “Jack”
*create name “Henry”
*create name “Jane”
*create name “Annie”
*create name “Felicity”
*create name “Monica”
*create name “Alexa”
*create name “Alexandra”
*create name “”

Just put:
*create name “”

That’s it.

The variable value is changed when you use *set later on.

I tried that already bruh.

Here’s an example of code that works -

long code
*title Ilyaaren: The Citadel
*author Valerie Dunn

*scene_list
 1eldest
 1youngest
 1alternatebeginning
 
*create knowsmagic false
*create Name "J."
*create Nat 0
*create Hea 0
*create Div 0
*create Abj 0
*create Con 0
*create Enc 0
*create Evo 0
*create Ill 0
*create Nec 0
*create Tra 0
*create Ast 0
*create Per 0
*create Roommate 0
*create Roommatename "Unknown"
*create Headmaster 50
*create Novice true
*create Novice 10
*create Morality 50
*create Title "Novice"
*create Body "Unknown"
*create Hair_texture "Unknown"
*create Hairstyle "Unknown"
*create Haircolor "Unknown"
*create Eyes "Unknown"
*create Skintone "Unknown"
*create Height "Unknown"
*create forbidden_knowledge false
*create apprentice false
*create gender "unknown"
*create their "unknown"
*create theirs "unknown"
*create them "unknown"
*create they "unknown"
*create themself "unknown"
*create child "unknown"
*create lady "unknown"
*create mister "unknown"
*create surname "Doe"
*create Damian 0
*create Dorothy 0
*create Miles 0
*create Petunia 0
*create Nickname "unknown"
*create Perception 0
*create Strength 0
*create Dexterity 0
*create Bertie 0
*create Wilda 0
*create Gray 0
*create Blossom 0
*create twinsurname "Doe"
*create twinname "J."
*create betrothed "unknown"
*create personality "unknown"
*create Father 0
*create eldestoutfit "unknown"

It's dark. There is nothing around you but pitch black. You are alone. 
There is a vaguely familiar smell 

as you can see, the stats screen code looks as follows -

stats screen code
*label Main_Screen
[b]Character Sheet[/b]

*if (knowsmagic=true)
 [b][i]${Title} ${Name} ${Surname}[/b][/i], 
 *goto titlelabel
*else
 [b][i]${Name} ${Surname}[/b][/i], 
 *goto titlelabel
 *label titlelabel
 *if (surname="Doe")
  the Unknown
  *goto morality
 *elseif (surname="Renna")
  ${Lady} of the West Isles
  *goto morality
 *elseif (surname="Alder")
  ${Child} of the West Isles
  *goto morality
 *elseif (surname="the Wanderer")
  Wanderer of Ilyaaren
  *goto morality

 
  *label morality
  *stat_chart
   opposed_pair morality 
    Good
    Evil
  *line_break
  [b]Appearance[/b]
  *stat_chart
   text hairstyle Hair Style
   text haircolor Hair Color
   text hair_texture Hair Type
   text Height
   text Body Body Type
   text Eyes Eye Color
   text Skintone Skin Tone

  *label screen
  *choice
   #Relationships
    *stat_chart
     percent Roommate ${Roommatename}
     percent Headmaster
   

    *if (surname="the Wanderer")
     *stat_chart
      percent Wilda
      percent Gray
      percent Blossom
  
    *if (surname="Renna")
     *stat_chart
      percent Miles Miles Gerrington
      percent Petunia Petunia Lestrade
      percent Father
    
    *if (surname="Alder")
     *stat_chart
      percent Damian Damian Becke
      percent Dorothy Dorothy Becke 
      percent Bertie Mother Bertie
  
    *goto screen
   #Magic Schools
    [b]Divination[/b] is the ability to divine the future. This is a defensive skill. You begin to learn this as a novice.
  
    [b]Abjuration[/b] is the ability to block, banish, or protect. This is a defensive skill. You begin to learn this as a novice.
  
    [b]Evocation[/b] is the ability to manipulate energy or create something out of nothing, using energy. This is an offensive skill. You begin to learn this as a novice.
  
    [b]Illusion[/b] is the ability to create false images. This is both offensive and defensive. You begin to learn this as a novice.
  
    [b]Conjuration[/b] is the ability to brings creatures or items to the caster. This is an offensive skill. You begin to learn this as an apprentice.

    [b]Enchantment[/b] is the ability to imbue a person or item with specific properties. This is both offensive and defensive. You begin to learn this as an apprentice.

    [b]Transmutation[/b] is the ability to turn an item or person into something or someone else. This is an offensive skill. You begin to learn this as an apprentice.

    [b]Necromancy[/b] is the ability to bring the dead back to life. This is a forbidden skill. You may not learn this.  
    *goto screen
   #Magic Skill  
    *stat_chart
     percent Div Divination
     percent Abj Abjuration
     percent Evo Evocation
     percent Ill Illusion

    *if (apprentice=true)
     *stat_chart
      percent Con Conjuration
      percent Enc Enchantment
      percent Trans Trasmutation
   
     *if (forbidden_knowledge=true)
      *stat_chart
       percent Nec Necromancy 
  
    *goto screen
   #Other Skills
    *stat_chart
     percent Hea Healing
     percent Nat Nature
     percent Per Persuasion
     percent Perception
     percent Strength
     percent Dexterity
  
    *goto screen

and this is located here

See how you can set the name, but for different names of characters, different *create name styles are used?

1 Like

If you INSIST on doing it your way I’ll give you my code and you can copy it, as I know it works I’ll make some drop downs.

It’s not all of it cuz that shit 170000 words total, so I made it smaller.

Here are my stats

Summary
*label Main_Menu

CHARACTER:
*stat_chart
  text Name
  text Gender
  text Occupation
  text Money
  text Health
*line_break

APPEARANCE:
*stat_chart
  text Hair
  text Eyes
*line_break

Here is my startup

Summary
title Land of Slaves and Steel
*author Mikayla Baughman
*scene_list
  startup
  chone
  choicescript_stats
  ending
  
  

*create Name""
*create Gender""
*create Occupation""
*create Money""
*create Health""
*create Hair ""
*create Eyes ""   


*create Ruthless "50"
*create Brutality "50"
*create Impulsive "50"
*create Persuasion "50"
*create Courage "50"
*create Compliance "50"
*create Strength "50"
*create Compliance "50"
*create Religious "50"
*create Stoic "50"
*create Brains "50"
*create Instinct "50"
*create Sarcastic "50"




*create Victory "50"
*create Viking "50"
*create Slave "50"
*create Jarls "50"



*create Steel "10"
*create Archery "10"
*create Brawling "10"
*create Stealth "10"
*create Mysticsrep "10" 
*create Mystics "???"
*create Bluntrep "10"
*create Blunt "???"
*create Morale "10"
*create Respect "10"
*create Godsrep "50"
*create Gods "????"

*create Erlandrep "50"
*create Erland "????"
*create Hendrikrep "50"
*create Hendrik "????"
*create Asgerrep "50"
*create Asger "????"
*create Sigrunrep "50"
*create Sigrun "????"
*create Leifrep "50"
*create Leif "????"
*create Brynolfrep "50"
*create Brynolf "????"
*create Aeinarrep "50"
*create Aeinar "????"
*create Freydisrep "50"
*create Freydis "????"
*create Elisarep "50"
*create Elisa "????"
*create Rowanrep "50"
*create Rowan "????"
*create Siblingrep "50"
*create Sibling "????"

*create Brother false
*create Sister false 
*create Aeinar false
*create Asger false

*create Name "Adam"
*create Name "Ana"  
*create Name "William" 
*create Name "Katherine" 
*create Name "???"
*create Name "Christopher"
*create Name "Edmund"
*create Name "Susanne"
*create Name "Mary"
*create Name "Nathaniel"
*create Sibname "???"

*create orientation "yes"
*create crowd ""
*create mother "yes"
*create meetgods falsef

*create genderr "male"
*create he "he"
*create him "him"
*create his "his"
*create man "man"
*create sir "sir"
*create mr "Mr."

*create A_he "he"
*create A_him "him"
*create A_his "his"
*create A_man "man"
*create A_sir "sir"
*create A_mr "Mr."

*create haircolor "brown"
*create haircolor "blonde"
*create haircolor "black"
*create haircolor "red"
*create haircolor "white"
*create haircolor "gray"
*create haircolor "orange"

*create eyess "blue"
*create eyess "brown"
*create eyess "hazel"
*create eyess "green"
*create eyess "gray"
*create eyess "black"
*create eyess "honey"
*create eyess "amethyst"


*set Name "???"
*set Gender "???"
*set Occupation "Adventurer"
*set Health "100"
*set Money "Not a rock to your name."
*set Hair "???"
*set Eyes "???"

And here are the name choices

Summary
What’s your name?
*if (genderr="male") 
    *goto mnames
*if (genderr="female")
    *goto fnames
*else
    *goto nbnames




*label mnames
*choice
 #Adam
   *set Name "Adam"
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #William
   *set Name "William"
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Christopher
   *set Name "Christopher"
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Edmund
   *set Name "Edmund"
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Nathaniel
   *set Name "Nathaniel"
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #None of these.
   *input_text name
   *set Name "${Name}"
   "My name is ${Name}," you manage to 
   splutter out.
   *line_break
   *goto buy




*label fnames
*choice
 #Ana
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Katherine
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Susanne
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Elizabeth
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Mary
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #None of these.
   *input_text name
   *set Name "${Name}"
   "My name is ${Name}," you manage to 
   splutter out.
   *line_break
   *goto buy



*label nbnames
*choice
 #Ana
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Adam
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Katherine
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Nathaniel
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Elizabeth
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Christopher
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #Susanne
   "My name is ${Name}," you manage to 
   splutter out.
   *goto buy

 #None of these.
    What’s you name then?
   *input_text name
   *set Name "${Name}"
   *goto buys

  



*label buys
“My name is ${Name}," you manage to splutter out.
*goto buy

Maybe studying that and implementing working code will work? Or maybe you’ll take my code and use it in your own way. Whatever works. I’ll leave it here and you’ll figure it out I assume.

I also like to snoop, and see you already have a names topic so if someone with the power to merge them wants to it’s cool. Not the same question but both deal with names.

2 Likes

Nope, doesn’t work. Maybe it’s just a bug in my CS.

:joy::joy::joy: You can’t take all that code, paste it, and say “Nope”. I cropped it down to size. You actually have to do some work here. The answer isn’t going to pop out of thin air and into your code.

@Arasia_Valentia - I’m curious - why did you *create so many Names (and hair colors and eye colors)? Usually that breaks code; I haven’t played your WIP, but I always want to learn more about working code, lol

I wrote only the name code…

Haha, well I broke it up into Two. I have Name and name. Ones capitalized and the other isn’t. Also down at the bottom you see I made is set the Name to ??? So I found a loophole of sorts.

If you check out my WiP and peruse the code I’m sure You’ll see it. Or I could dm it all to you. If you’re super curious.

@YeThatFella
So, to my understanding, your [name] always shows up “Alexandra” and you want to get rid of it. Am I mistaken?

1 Like

What you’ve done here is created one variable called ‘name’ 11 times. You should only create a variable once then change it to something else later if necessary. Strictly speaking, a programming language shouldn’t let you do this, CS does and it’ll just set it to the last value that you used. In the list above, ‘name’ would be set to ‘Alexandra’.

There is always “Alexandra” until i choose a name in the name choice.

That’s because *create name “Alexandra” is the last one listed, so the only one the game listens to.

Again, you should only have one *create Name “whateveryouwanthere”

1 Like

So, the “Alexandra” is properly replaced until you chose a name?
That means, the error isn’t on your *choice command.


Can I take a look at your current startup.txt again?
Preferrably the whole scene file.

1 Like

FiNnALy I FuCCin’ FiXeD It

1 Like