I have just started creating my first Choicescript game. I currently have a startup scene, a Chapter 1 scene (no code yet), and a stats screen. I tried to execute a random test but it took an unbearable amount of time. Here is the code:
The sands of the wastes sweep across the horizon, as an owl would sweep over a rat with talons at the ready. The heat of the sun beats down upon you. Though rest but a second and the guard will fracture your finger as incentive.
startup-Notepad
*line_break
(More description)
*line_break
(Text for story)
*page_break The worker next to you notices… (Et cetera)
*line_break
Is this person a Man or Woman?
*label sc1
*choice
_#Man
__*set sc1_hisherc “His”
__*set sc1_genderc “Man”
__*set sc1_heshec “He”
__*set sc1_himherc “Him”
__(same except lowercase letters)
__Okay, so the person looking at your hammer is a ${sc1_genderl}. Got it.
__*goto sc1_2
_#Woman
(Same variables except female)
*label sc1_2
Do you know this ${sc1_genderl}'s name?
*choice
_#Yes
__This ${sc1_genderl}'s name is…
___*input_text sc1_name
____Okay, so {sc1_hisherl} name is {sc1_name}. Well ${sc1_heshel} certainly seems concerned.
____*goto agemchar
_#No
__{sc1_heshec} is nameless. At least to you. {sc1_heshec} certainly seems concerned about your cracked tool.
___*goto agemchar
*label agemchar
How old are you currently?
*choice
_#15
__*goto mchargender
_#18
__*goto mchargender
_#30
__*goto mchargender
_#47
__*goto mchargender
_#70
__*goto mchargender
_#I don’t remember…
__agemchar = rand 15 65
_#None of these are my age.
__*goto input_age
*label input_age
_input_number agemchar
__So you are ${agemchar} years old?
___*choice
____#Yes
_____*goto mchargender
____#No
_____*goto agemchar
*label mchargender
Are you Male or Female?
*choice
_#I’m Male.
__*set sexmchar “Male”
___So you are a guy. Understood.
____*goto mcharname1
_#I’m Female.
__*set sexmchar “Female”
___So you are a woman. Understood.
____*goto mcharname1
*label mcharname1
What is your first name?
_*if (sexmchar = “Male”)
__*choice
___#John
____*goto mcharname2
___#Viktor
____*goto mcharname2
___#Xavier
____*goto mcharname2
___#None of these are mine.
____*goto input_first
(Et cetera female versions. I do apologize for the lack of detail but I lack an Internet connection currently and I am using my iPhone to Input this message.)
Okay, so your name is ${mcharname1}?
*choice
_#Yes
__*goto mcharname2
_#No
__*goto mcharname2
*label mcharname2
_Okay what is your last name, ${mcharname1}?
*choice
(Last name variables etc.)
__Okay, so your full name is {mcharname1}_{mcharname2}?
___*choice
____#Yes
_____*goto_scene Chapter1
____#No
_____*goto mcharname1
*page_break
Stats_screen-Notepad
*label stat_chart
_Name: {mcharname1}_{mcharname2}
_*line_break
_Gender: ${sexmchar}
_*line_break
_Age: ${agemchar}
_*line_break
_opposed_pair Ruthless
__Compassionate
_opposed_pair Aggressive
__Tolerant
_opposed_pair Deceitful
__Trustworthy
_opposed_pair Dictatorial
__Enlightened
_*line_break
_percent ${sc1}
_percent ${sc2}
_percent ${sc3}
_percent ${sc4}
_percent ${sc5}
_percent ${sc6}
Mygame - Notepad
nav = new SceneNavigator([“startup”, “Chapter1”]);stats = {Name: “???”, Gender: “???”, Age: “???”, Ruthless: “50%”, Aggressive: “50%”, Deceitful: “50%”, Dictatorial: “50%”};
I will appreciate any help anyone can offer. Many thanks XD