Name:<<set _name to "", $player.name to "Benry">>
<<textbox "_name" $player.name>>
What's is your class?<<set _classes = ["noble", "reader", "assassin"]>>
<<listbox "$class">>
<<optionsfrom _classes>>
<</listbox>>
<span id="class-info">(nothing)</span>
<<script>>
$(document).one(":passagerender", function (event) {
$(event.content).find("#class-info").empty().wiki("<<include 'Class Info " + State.variables.class + "'>>");
$(event.content).find("#listbox-class").on("change", function (event) {
$("#class-info").fadeOut(500);
setTimeout(function () {
$("#class-info").empty().wiki("<<include 'Class Info " + State.variables.class + "'>>").fadeIn(500);
}, 500);
});
});
<</script>>
Hair Color: <<textbox "$player.hair" $player.hair>>
Eye Color: <<textbox "$player.eye" $player.eye>>
Pronouns: <<listbox "$playerpronouns" autoselect>>
<<option "she/her">>
<<option "he/him">>
<<option "they/them">>
<</listbox>>
<<button "Submit">>
/* Remove any leading and trailing SPACEs */
<<set _name to _name.trim()>>
/* Did they actually enter a value? */
<<if _name is "">>
Please fill out all fields.
<<else>>
/* Do any other varification or formating of the value, like Proper-casing it */
<<set _name to _name.toUpperFirst()>>
/* Assign the cleaned and varified value to the Story variable */
<<set $player.name to _name>>
<<set $player.unit to _unit>>
<</if>>
/* What to do now? */
<<if $playerpronouns is "he/him">>
<<set $player.they to "he">>
<<set $player.them to "him">>
<<set $player.their to "his">>
<<set $player.theyare to "he is">>
<<set $player.self to "himself">>
<</if>>
<<if $playerpronouns is "she/her">>
<<set $player.they to "she">>
<<set $player.them to "her">>
<<set $player.their to "her">>
<<set $player.theyare to "she is">>
<<set $player.self to "herself">>
<</if>>
<<if $playerpronouns is "they/them">>
<<set $player.they to "they">>
<<set $player.them to "them">>
<<set $player.their to "their">>
<<set $player.theyare to "they are">>
<<set $player.self to "themself">>
<</if>>
<<goto "Meet player">>
<</button>><<set $player = {name: "Benry", she: "she", her: "her", class: "noble", eye: "brown", hair: "pink"}>>Please put your character's pronouns that fit each following sentence.
_____ walked to school.
<<textbox "_they" they>>
I got singing lessons from ____.
<<textbox "_them" them>>
I met ____ brother for the first time.
<<textbox "_their" their>>
______ ___ working on their new dance routine.
<<textbox "_theyare" "they are">>
They did it ______.
<<textbox "_themself" "themself">>
<<button "Submit">>
/* Remove any leading and trailing SPACEs */
<<set _they to _they.trim()>>
<<set _them to _them.trim()>>
<<set _their to _their.trim()>>
<<set _theyare to _theyare.trim()>>
<<set _themself to _themself.trim()>>
/* Did they actually enter a value? */
<<if _they is "">>
Please fill out all fields.
<<else>>
/* Assign the cleaned and varified value to the Story variable */
<<set $player.they to _they>>
<<set $player.them to _them>>
<<set $player.their to _their>>
<<set $player.theyare to _theyare>>
<<set $player.self to _themself>>
/* What to do now? */
<<goto "Meet player">>
<</if>>
<</button>>Settings test:
Your name is $player.name. You are a $player.class. You pronouns are $player.they/$player.them. You are a $player.class with $player.hair hair and $player.eye eyes.You are a nepo baby. You start with more influence than the other classes.You love to read and you love to make really cool references just like in Ready Player One. You always have a relevant story to mention.You want to kill the king. You have access to the Kill option.