# Multiple Text Inputs on one screen

**URL:** <https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487>\
**Category:** ChoiceScript Help\
**Created:** [August 13, 2022, 12:39am UTC](https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487 "2022-08-13T00:39:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alyx\_Warner](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/alyx_warner/32/175542_2.png) [@Alyx\_Warner](https://forum.choiceofgames.com/u/Alyx_Warner)\
**Post date:** [August 13, 2022, 12:39am UTC](https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487/1 "2022-08-13T00:39:51Z")

</div>

I’m having trouble with making custom pronouns in a new choice script game

The issue I’m having is that there doesn’t seem to be a way to either have multiple text inputs on one screen, or manipulate text like in a traditional programming language, which would allow me to just ask people to format it like “she her hers” etc

Does anyone know how you’d go about this?

---

<div class="post-metadata">

**Author:** ![SpokesWriter](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/spokeswriter/32/115681_2.png) [@SpokesWriter](https://forum.choiceofgames.com/u/SpokesWriter)\
**Post date:** [August 13, 2022, 2:11am UTC](https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487/2 "2022-08-13T02:11:31Z")

</div>

You’re correct, you can only prompt for one text input at a time

---

<div class="post-metadata">

**Author:** ![quartz](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/quartz/32/174435_2.png) [@quartz](https://forum.choiceofgames.com/u/quartz)\
**Post date:** [August 13, 2022, 5:59am UTC](https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487/3 "2022-08-13T05:59:06Z")

</div>

You would have to ask for each pronoun individually, something like

\*create him  
\*create his

Other people use she/him, you use  
\*input\_text him

Other people use his/hers, you use  
\*input\_text his

…

If you need to capitalize the first letter at the start of the sentence, you can use something like

$!{him}

Choice script has a way for manipulating arrays, but you don’t have a way to split the strings by a character (as you would in a traditional programming language). Also, you have to validate the string after the player inputs it, which is also impossible.

---

<div class="post-metadata">

**Author:** ![Lan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lan/32/80851_2.png) [@Lan](https://forum.choiceofgames.com/u/Lan)\
**Post date:** [August 13, 2022, 8:46am UTC](https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487/4 "2022-08-13T08:46:44Z")

</div>

Welcome to the forum!

As others said, there is no way to have multiple text inputs on one screen. However, it’s not too much trouble to ask for each pronoun individually.

> **e.g.**
>
> ```choicescript
> *title Custom Pronoun Example
> 
> *create he ""
> *create him ""
> *create his ""
> *create hers ""
> *create himself ""
> *create s ""
> 
> *label pronoun_setter
> What is your subjective pronoun? (ex. he, she, they)
> *input_text he
> 
> What is your objective pronoun? (ex. him, her, them)
> *input_text him
> 
> What is your possessive determiner? (ex. his, her, their)
> *input_text his
> 
> What is your possessive pronoun? (ex. his, hers, theirs)
> *input_text hers
> 
> What is your reflexive pronoun? (ex. himself, herself, themself, themselves)
> *input_text himself ""
> 
> And finally, are your pronouns singular or plural?
> 
> Singular Example: He is, She is
> 
> Plural Example: They are
> 
> *fake_choice
> #Singular.
> *set s "s"
> #Plural.
> *set s ""
> 
> Please check the text reads correctly:
> 
> $!{he} walk${s} to the park every day with ${his} cat. The cat was given to ${him} by a friend of ${hers} and ${he} @{s="s" isn't | aren't} sure how to feel about it. It is a very strange cat, and sometimes ${he} wonder${s} to ${himself} if it really is a cat.
> 
> *fake_choice
> #Looks correct.
> *finish
> #Let's try again.
> *goto pronoun_setter
> 
> ```

If you’re new to ChoiceScript, I’d recommend checking out these links:

> [@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…

* * *

ChoiceScript actually does have string manipulation. You could theoretically have players input all their pronouns as a single string and parse it, but IMO it would be much easier for everyone to just do them one at a time.

> **How I'd go about it**
>
> ```choicescript
> *title Pronoun Parser Example
> 
> *create input ""
> *create pointer 1
> *create DELIMITER "_"
> 
> *create he ""
> *create him ""
> *create his ""
> 
> Please input your pronouns separated by underscores. (ex. he_him_his, she_her_her)
> 
> *input_text input
> 
> *gosub parse_pronouns
> 
> Your pronouns are ${he}, ${him}, and ${his}.
> *finish
> 
> *comment ==== SUBROUTINES ==========================================
> 
> *label parse_pronouns
> *gosub read_string "he"
> *gosub read_string "him"
> *gosub read_string "his"
> *return
> 
> *label read_string
> *params variable
> *label read_string_loop
> *if ((input#pointer) != DELIMITER)
> *set {variable} {variable}&(input#pointer)
> *if pointer < length(input)
> *set pointer + 1
> *goto read_string_loop
> *else
> *return
> *else
> *set pointer + 1
> *return
> 
> ```

String parsing is incredibly useful and basically how I run my save/checkpoint system.

If you’re interested learning the more advanced bits of ChoiceScript, these threads are a good place to start:

- [New ChoiceScript features: implicit control flow, gosub parameters](https://forum.choiceofgames.com/t/new-choicescript-features-implicit-control-flow-gosub-parameters/30042)
- [New features in ChoiceScript: change text size/color, hyphen spacing, @{} variable replacement](https://forum.choiceofgames.com/t/new-features-in-choicescript-change-text-size-color-hyphen-spacing-variable-replacement/26217)
- [New ChoiceScript features for programmers](https://forum.choiceofgames.com/t/new-choicescript-features-for-programmers/8423)
- [Now you can extract letters/numerals in ChoiceScript](https://forum.choiceofgames.com/t/now-you-can-extract-letters-numerals-in-choicescript/9637)

---

<div class="post-metadata">

**Author:** ![cup\_half\_empty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cup_half_empty/32/273983_2.png) [@cup\_half\_empty](https://forum.choiceofgames.com/u/cup_half_empty)\
**Post date:** [August 13, 2022, 1:33pm UTC](https://forum.choiceofgames.com/t/multiple-text-inputs-on-one-screen/123487/5 "2022-08-13T13:33:16Z")

</div>

CSLib has some subroutines for working with strings. Perhaps it can help you.

> [@toolbox \[TOOL\] CSLIB - ChoiceScript Library](https://forum.choiceofgames.com/t/tool-cslib-choicescript-library/100950):
>
> [[banner]](https://github.com/ChoicescriptIDE/cslib) A compass for the maze. Hi all! @cjw, @choicehacker, and I would like to introduce to you CSLIB v0.1! gem CSLIB is a high-quality collection of helpful routines/functions (known collectively as a “library”) for ChoiceScript. gem CSLIB aims to add a whole host of new functionality to ChoiceScript via \*gosub\_scene calls, for e.g.: \*gosub\_scene cslib\_string reverse “Hello World!” ${cslib\_ret} = !dlroW olleH [[direct-link download button]](https://github.com/ChoicescriptIDE/cslib/releases)play_buttonsparkles Featuresplay_buttonglowing_star Installation Instructio…
