I need help changing a character's script name


#1

I want to know if this is possible:

I want to change my character’s script name depending on the choice the reader makes Example:

      NARR
 Pick the name of GUY

choice guy
“bryan”{
#And this will be where @GUY 's script name changes to “bryan” through the story without having to use if’s every time he talks in a scene.
}
“oscar”{
#And this will be where @GUY 's script name changes to “oscar” through the story without having to use if’s every time he talks in a scene.
}
“dwight”{
#And this will be where @GUY 's script name changes to “dwight” through the story without having to use if’s every time he talks in a scene
}

Is it possible to change my character’s @GUY 's script name WITHOUT using inputs or creating 3 identical guys with different names and having to use:
if (guy=“bryan”){
BRYAN
Hi
#+400 lines of script with bryan
}elif(guy=“oscar”){
OSCAR
Hi
#+exact lines as for bryan but with oscar.
}else{
DWIGHT
Hi
#more repeated lines as before but for dwight.
}

If this is a thing, it would save me a lot of stress :joy:
I had to rewrite this for other people to understand me better


#2

use the if/gain/else method.


#3

Sorry for my ignorance, can you add an example? D:


#4
  NARR

Pick a name.
choice
“Nelly”{
Your name is now Nelly.
gain Nelly
}
“Yuki”{
Your name is now Yuki.
gain Yuki
}
if (Nelly) {
#continue script here
else {
#continue script (name will appear as Yuki)


#5

Hmm that’s not exactly what I needed :c
But thanks for your help!


#6

glad to try! :smiley:


#7

Try code:

NARRATOR
Which name would you prefer?
choice (NAME)
“Nelly” continue
“Yuki” continue


#8

Yeh, what @Apes said, then just add NAME as the display name for you character


#9

I tried it with my new example. GUY’s name is still displayed as GUY instead of one of the names in the options when I add dialogues to GUY (whose script name is also GUY lol) :pensive:


#10

Did you change display name to NAME?


#11

Holy balls I thought I had changed it… it works. THANK YOU SO MUCH!!! Imma criii… :sob:


#12

I have another question if you don’t mind…
If I were to use first and last name in the choices, how can I mention only his first name without saying his whole name? If it were possible of course :flushed:


#13

You have to give different choices for that and give different names to both of these choices