# Refresher, \*create and \*set

**URL:** <https://forum.choiceofgames.com/t/refresher-create-and-set/86596>\
**Category:** ChoiceScript Help\
**Created:** [September 20, 2020, 9:02pm UTC](https://forum.choiceofgames.com/t/refresher-create-and-set/86596 "2020-09-20T21:02:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArchivistAlpha096](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/archivistalpha096/32/203655_2.png) [@ArchivistAlpha096](https://forum.choiceofgames.com/u/ArchivistAlpha096)\
**Post date:** [September 20, 2020, 9:02pm UTC](https://forum.choiceofgames.com/t/refresher-create-and-set/86596/1 "2020-09-20T21:02:14Z")

</div>

So. When writing the startup file, when doing stuff like haircolor, eyecolor, ETC. Can you just create those once, or do you have to put them each tme in the male, VS Female, VS, ETC, fields? So. Something like:

```
*create eyecolor "jet black"

```

As aposed to something like this:

```
*set N_gender "female"
*set N_eyecolor "jet black"

```

Forgot, and createing a new game, since. Well. Sort of just used the last 3 monthhs to sharpen my teeth, writeing a fanfic for Wayhaven. Now that the demmo of book 3 is out? Not sure if doing that is apropriate. Will probably just pop the fic up on the Fanfic forum.

---

<div class="post-metadata">

**Author:** ![CC\_Hill](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cc_hill/32/256033_2.png) [@CC\_Hill](https://forum.choiceofgames.com/u/CC_Hill)\
**Post date:** [September 20, 2020, 9:46pm UTC](https://forum.choiceofgames.com/t/refresher-create-and-set/86596/2 "2020-09-20T21:46:57Z")

</div>

From my experience I would say you need both, you can’t set a variable in a scene file if it is not created in the startup file…unless it is a \*temp variable but those only works within the file they are created and don’t follow the code to another scene file.

What I personally do is create my variable in startup file with the empty quote, that way, I can set them in the scene file that I want.

The way you did it is ok too, you create them in startup with the value and you set them where you want them to be set.

But if you need to reference variables for each gender, the below is how I do it after creating each of those variable with empy quote in the start up file. That way depending on the choice the player make…the variable is set for that gender.

```
*fake_choice
 #Man
  It was the voice of a man.
  *set namer2 "Luke"
  *set surnamer2 "Martinez"
  *set r2 "man"
  *set workr2 "Work partner"
  *set r2occu "Lead Detective"
  *set r2he_she "he"
  *set r2him_her "him"
  *set r2his_her "his"
  *set r2hisz_hers "his"
  *set r2himself_herself "himself"
 #Woman
  It was the voice of a woman.
  *set namer2 "Lucia"
  *set surnamer2 "Martinez"
  *set r2 "woman"
  *set workr2 "Work partner"
  *set r2occu "Lead Detective"
  *set r2he_she "she"
  *set r2him_her"her"
  *set r2his_her "her"
  *set r2hisz_hers "hers"
  *set r2himself_herself "herself"

```

---

<div class="post-metadata">

**Author:** ![whitebear](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/whitebear/32/125790_2.png) [@whitebear](https://forum.choiceofgames.com/u/whitebear)\
**Post date:** [September 21, 2020, 4:06am UTC](https://forum.choiceofgames.com/t/refresher-create-and-set/86596/3 "2020-09-21T04:06:29Z")

</div>

[\*create](https://choicescriptdev.fandom.com/wiki/Create) command is used to input permanent variables on your game, as opposed to [\*temp](https://choicescriptdev.fandom.com/wiki/Temp) command which will only make temporary variables.

[\*set](https://choicescriptdev.fandom.com/wiki/Set) command is used to assign new data for a variable.

To answer your question, it depends. If you’re talking about only one character, then you can just set one permanent variable and use it throughout your game and you may change the value accordingly. One permanent variable for each type of stuff like eye color, gender, height, etc.

Here’s an example for eye color. In the startup.txt file, you can put:

```choicescript
*create eyecolor "unknown"

```

And then somewhere, you can add choices to specify the eyecolor.

```choicescript
My eyes are...
*fake_choice
     #blue
          *set eyecolor "blue"
     #brown
          *set eyecolor "brown"
     #black
          *set eyecolor "black"
     #grey
          *set eyecolor "grey"
     #green
          *set eyecolor "green"
My eyes are a wonderful shade of ${eyecolor}.

```

So everytime you put ${eyecolor} from beyond that choice, it’ll show what you have set it to.

You might want to check these out:

> [@Any help on scripting character appearance?](https://forum.choiceofgames.com/t/any-help-on-scripting-character-appearance/73459):
>
> Okay so I’m creating my first appearance choice in game but I can’t seem to figure out how to put multiple options into one variable. (Solved) Okay so how do you script in the choice where the player is able to input their own choice? For example What is your eye color? Red Blue Yellow None of these are right (how do you do this?)

> [@Master List: Links for Beginners](https://forum.choiceofgames.com/t/master-list-links-for-beginners/21872):
>
> Since this gets asked a lot I thought I’d try and create a master list of links for beginners. If anyone wants to add links to the list please feel free to since I’m making this wiki format. [Start here for newcomers](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)[The Wiki](http://choicescriptdev.wikia.com)[ChoiceScript Basic Tutorial](http://choicescriptdev.wikia.com/wiki/A_Basic_Tutorial) on wiki [RETowers’ Tutorial](https://forum.choiceofgames.com/t/the-beginners-guide-to-choicescript/9866) by @RETowers[Lglasser’s Tutorial](https://forum.choiceofgames.com/t/choicescript-full-tutorial-finished/16130) by @Lglasser Dedicated ChoiceScript Development Tools You do not need to download or update ChoiceScript when using either of these tools. [Chronicler](https://forum.choiceofgames.com/t/tool-chronicler-choicescript-visual-code-editor/6811) Visual Code Editor by @Ben…
