So. Just running through some stuff, and wanted to confirm some things. When doing the “imput_text” what do you put right after it? Tester seems to have a problem with me putting “”.
Found this online by doing a search for input_text, hope it helps.
In order to use this command, you must *create a string variable in startup.txt (or create a *temp (temporary) variable in the scene file) to be modified by the player’s input.
*temp first_name “” What is your name? *input_text first_name
In this case, the player’s input is being saved to a “string” (textual) variable called “first_name”, allowing it to be used in the story as required, such as displaying on the Stats screen, or spoken by another character when addressing the player-character.
Yep. So, if you’re doing this for a name, as is the most commonn use, its just
*create name “”
in startup.txt, and then
*input_text name
when you want the player to be able to enter their name. This will set the variable name to whatever the user enters.
Would someone be able to take a look at this code snipet? I have changed 3 different things, and when I try to run it, the same line always comes up as an arror. I don’t know what’s wrong with it, or my codeing. Here is the code: Also, might be related, it’s only letting me pick 1 of the 3 choices.
*choice
# "Yeah, I say. Sorry. I. I have a headache.
*set heart %+10
*set friendly %+10
*set k_relationship %+3
"Yeah, I say. Comeing. Sorry. Got. Forgot? I. I have a headache. Really bad one. Just noticed it. Feels like someone is takeing a wite hot sledgehammer to the inside of my skull.
*line_break
"May I? Kathi asks, any impatience in her tone gone now, replaced with surprisingly deep concern for a 16 year old. When I nod, I feel her cool hand gently touch my forehead. The headache, emediatly starts to lesson. I hear Kathi give a soft grunt, though for what reason? Satisfaction? Paine? Disgust? I have no idea.
*line_break
"Tell Anty. Kathi says, after stepping away. She will cook you up. Something? Will probably taste like puke, but it will also, probably help. Now. Come on, and for hells sake. Get dressed. They both have to go to work soon, and you know what there like about breckfast.
*line_break
I nod, turning and re-entering my room to dress. She, is not exadurateing. Ant Ivy and Uncle Goan work most of the day, and sometimes get in at odd hours. So, Breckfast is the only meal we have together, most of the time.
*goto mc_choose
# I will come in a minute. I say gruffly.
*set stubborn %+10
*set stoic %+10
*set emotional %+10
"I. I say, will come in a minute. I have to. Do stuff.
*line_break
"Do. Stuff. Kathi says, tone flat. O. I'm flipping you off, by the way, big ${mc_familiel}. Palm up, and everything. Remember that, next time, or you will just look stupid when you try doing it to me. OK?
*line_break
"I got a headache. OK? I snap, annoyed. I got nocked on the head. Remember? Especially considering you were the one who braught me inside?
*line_break
"Yeah. Right. With that? Along with another rude noise, I hear her footfalls leave the room.
I love that girl? But. Sometimes? She pisses me the hell off. I reflect, as I move away from my door.
*line_break
"Were having Pancakes. I hear Kathi bellow over her shoulder. You snooze? You lose, ${mc_familiel}. Don't say I didn't warn you.
I emediatly move faster, going looking for clothes. I happen to quite like, pancakes, as it so happens.
*line_break
*goto mc_choose
# "Go away. I snap, annoyed. I have a headache. I don't need your noise.
*set intimidateing %+10
*set direct %+10
*set stubborn %+10
*set k_relationship %-3
"Go away. I snap, not needing my kid sister anoying me right now. I have a headache. I don't need your noise.
*line_break
"O. Kathi says. Like? She draws in a deep breath, then. Emits an ear-pearcing high pitched whislling sound, that causes the headache in my head to increase, 10 fold. I grunt, clamping my hands to my head, then fall to the ground with a thud, bairly suppressing a scream of agany, kirling around my now burning, head. I think my eardrums, and knows, are now bleeding. I can feel blood in my mouth. I can feel blood in my ears, slowly dribbling out, and rolling down my head and neck.
*line_break
"O. Kathi says, hands gripping my shoulders like vices, fear, guilt, worry and concern now the only things in the girl's tone. the god-dammed hellish noise abruptly cutting off. Sorry. Your.
*line_break
"Fuck. I grunt. Off. As I kirl into a tighter ball around my pulsing head. Feels like I got a zenomorph in there now.
*line_break
"Sorry. Kathi says, hand landing on my forehead. Didn't. She grunts, then growls. The paine, that again, feels like a Zenomorph just ready to rip itself out of my forehead? Starts ebbing. Slowly, slowly, slowly, till it's only an incredibly bad, mygrane..
*line_break
After a while, I grown, standing with Kathi's help, her hand locked solidly around my forearm, takeing most of my weight as I stagger, lurch, almost collapse twice, then finally, gaine my balance.
*line_break
"Never. I grunt. "That. Kathi says, tone contemplative, shouldn't have affected. I won't do that again. OK?
*line_break
I just grunt in reply. Fine. Kathi says. Your going to have to deal with Anty. Anyway. I know where you sleep. Remember? You may wake up 1 day, with... Some cosmetic changes. Remember? I do love dress up.
*line_break
With that, odly both creepy, and hartwarming statement? My little sister walks off, stomping the hole way, makeing another rude noise.
I scowl. Stupid kid. At least the god-offil noise is gone.
*line_break
With that? I, whilst flipping her off, palm up, not down, up, re-enter my room, looking for clothes.
*temp horrible true
*goto mc_choose
When I try to run it, it takes issue with the indent, though unless it’s the Line_breaks, which I have indented the same as the rest of the text. I tried removeing the indents, but it did the same thing. So. A bit confused on what’s wrong with it.
What line does the error say its on?
A few things
- The most likely problem is that you shouldn’t need the line_breaks at all.
- Check the ${pc_f…] variable to make sure its typed the same as the variable name in your startup file.
- note that you don’t have closing quotes around most of the quotations, though that’s probably not the problem.
As a rule of thumb, it’s always most helpful to put the exact line the code is flagging as having an error, as well as what the error message says exactly. Is “mc_choose” where the *input_text command is, or was it earlier?
I also need Closing quotes? OK, good to know. Thanks
I only put the line breaks in, because otherwise the text reads funny, though I’ll run through that again.
I’ll have a run through of the variables, I suspect it has to do with them.
Thank you for the help
What they mean is when they are talking you are missing the quotes that signal the end of the speech.
For example; speech should look like this.
“You get your drinks from over there,” grumbles the gruff bartender. “Now, let me get back to cleaning.”
At the moment you open the speech but doesn’t close it before using the action that goes with it. Using my example above you do this.
"You get your drinks from over there, grumbles the gruff bartender.
Just use 2 presses of enter instead of 1. Otherwise, yes, it will all read in 1 paragraph.
Does that apply to stuff like eyecolor and all that? I am playing around with the input_text for eyecolor and such, and it doesn’t seem to be working. I am doing:
#*input_text eyecolor
*set mc_eyecolor “input_text”
${mc_eyecolor} eyes.
*goto choose2
Unsure what I am doing wrong, here. I left the "" blank, still came up with the same result, so thought putting "input_text" might do. Something? I guess?
You’re overcomplicating it. I put the format above.
*create eyecolor
in startup.txt
then
#blue
*set eyecolor blue
*goto next_thing
#choose my own
*input_text eyecolor
*goto next_thing
You don’t need the *sets. Don’t put input_text as a number option.
I used spaces in this example where you will use tabs.
So. From what I understand, the *if command is indented one level from the normal text around it, and what ever goes after it, is indented 1 more. Correct?
I’m only asking, cause I am currently alpha testing my game demmo, and it keeps giving me either indentation arrors, and when I take the tabs away, I get this:
Startup line 672, invallid expression at char 13, expected operator, var [true]
It’s to do with a temp variable I am doing, though I have the temp variable set as false, then set it to true at the choice I want , then have the *if temp variable true. So, unsure on what the problem is.
No. the *if is on the same level as the body text, and the results will be in dented one level. A good rule of thumb is that conditional things, things which depend on something else, are indented. The if however is not a conditional, and thus is not indented.
another way to think of it is that if something can be said as then y, it is indented. So, If this happens, then this happens, or if you choose this option, then this happens. Because that happens, then this happens. If you can phrase it as a then sentence, it needs to be indented. So for example:
Body text. Things are happening. More things happen
*if (variable check)
This text shows up on the same line as the body text above when its displayed in the game.
Also, when you’re checking whether a variable is true, you do that as *if (variable), just the variable name in parentheses, or * if (variable = true)
*if temp variable true will throw an error because that’s not the correct format for checking whether a variable is true.
Thanks! That seams to have cleared that up nicely. Only thought I was supposed to put () for multaple condissionals. Guess I was wrong.
Now, just need to figure out why when I am at the portion where I have to pick if I like men, or women, it only shows 1 option. There isn’t an arror, just doesn’t give the other option.
*choice
#women
*set mc_orientation "likes women"
*comment Deardra
*set t_name "Deardra"
*set t_surname "OBrian"
*set t_fullname "Deardra OBrian"
*set t_title "commanding gardswoman"
#men
*set mc_orientation "likes men"
*comment Darian
*set t_gender "male"
*set t_name "Darian"
*set t_surname "OBrian"
*set t_fullname "Darian OBrian"
*set t_accent "irish"
*set t_title "commanding gardsman"
As far as I can tell, both choices are the same. I made a spasific point to run through it all and re-check it. Also. Sidenote. Choices, such as seen above, are to be indented, correct? The hole, *if thing has shaken me a bit on what should or should not be, indented, just want to get everything streightened out.
There are no arrors thrown up on the #women, side, even though I removed all the indentations. So, a bit unsure now.
That should throw up an error because there is no *goto out of that choice. also your *set commands seem to be not in line correctly.
I only posted like five of each, there’s at least seven characters so far, I didn’t want to post the entirety of both, since it’s like 200 lines. also, I assume that whatever is altering it so the second choice did not show up would be in the first few lines. Also, in line correctly?
There is a correct an incorrect alignment?
Think about what I said earlier. If something is dependent on something else, it needs to be indented.
The *set’s are dependent on the player picking that choice. If the player chooses males, then set these things. If the player chooses females, then set these things.
So, we know that because they are dependent, they need to be indented.
The *choice line is not indented, the # options are indented once from the *choice, and results of the #option are indented twice, because they depend on the player picking that option.
Looking at it currently. You have the choice then the first option is indented and the first *set is indented again which is correct but the following comment and *set commands all look like they are not indented.
Ok, here is the entire code. I can only see the 1 choice, and it’s popping up in another choice as well.
#women
*set mc_orientation "likes women"
*comment Deardra
*set t_name "Deardra"
*set t_surname "OBrian"
*set t_fullname "Deardra OBrian"
*set t_title "commanding gardswoman"
*set t_gender "female"
*set t_they "she"
*set t_them "her"
*set t_their "her"
*set t_theirs "hers"
*set t_theirself "herself"
*set t_person "woman"
*set t_hight "5 foot 11"
*set t_build "solidly mussculor"
*set t_eyecolor "steal grey"
*set t_hairlength "short"
*set t_haircolor "red"
*set t_hairstyle "buzcut"
*set t_accent "irish"
*set t_skincolor "freckled"
*comment Loren
*set l_name "Loren"
*set l_surname ""
*set l_fullname "Loran"
*set l_title "guardswoman"
*set l_they "she"
*set l_them "her"
*set l_their "her"
*set l_theirs "hers"
*set l_theirself "herself"
*set l_themself "herself"
*set l_gender "female"
*set l_person "woman"
*set l_eyecolor "hazel"
*set l_hairlength "long"
*set l_haircolor "dirty blond"
*set l_hairstyle "shaggy"
*set l_hight "6 foot 3"
*set l_build "athletic, heavily mussled"
*set l_accent "unknown"
*set l_skincolor "dusky"
*comment Natalya
*set n_name "Natalya"
*set n_surname "Romanov"
*set n_fullname "Natalya Romonov"
*set n_title "specialist guardswoman"
*set n_gender "female"
*set n_person "woman"
*set n_they "she"
*set n_them "her"
*set n_their "her"
*set n_theirs "hers"
*set n_themself "herself"
*set n_theirself "herself"
*set n_eyecolor "ice blue"
*set n_hairlength " short"
*set n_haircolor "brown"
*set n_skincolor "pale"
*set n_hairstyle "pixi cut"
*set n_build "lean"
*comment Delan
*set d_name "Delan"
*set d_surname "Orvian"
*set d_fullname "Dealin Orvien"
*set d_title "gardswoman"
*set d_they "she"
*set d_them "her"
*set d_their "her"
*set d_theirs "hers"
*set d_theirself "herself"
*set d_gender "female"
*set d_person "woman"
*set d_eyecolor " writch brown"
*set d_hairlength " medium length"
*set d_haircolor "black"
*set d_hairstyle "cue"
*set d_hight "5 foot 7"
*set d_build "slender"
*set d_accent "Jamaicon"
*comment Skarlet
*set sk_name "Skarlet"
*set sk_surname "frost"
*set sk_fullname "Skarlet Frost"
*set sk_gender "female"
*set sk_person "woman"
*set sk_they "she"
*set sk_them "her"
*set sk_their "hers"
*set sk_theirself "herself"
*set sk_eyecolor "midnight black"
*set sk_hairlength "long"
*set sk_haircolor "jet black"
*set sk_hairstyle "cropped"
*set sk_hight "5 foot 9"
*set sk_build "kirvy"
*set sk_skincolor "pale"
*comment Kathi
*set k_eyecolor "slaight grey"
*set k_hairlength "shoulder length"
*set k_haircolor "Ravenswing black"
*set k_hight "5 foot 6"
*set k_build "stockey"
*set k_skincolor " tanned"
*comment Ash
*set a_title "frost"
*set a_gender "female"
*set a_person "woman"
*set a_they "she"
*set a_them "her"
*set a_theirs "hers"
*set a_their "her"
*set a_theirself "herself"
*set a_eyecolor "ice blue"
*set a_hairlength "medium"
*set a_haircolor "midnight black"
*set a_hight "4 foot 11"
*set a_build "lean"
*set a_skincolor "ivery"
*comment Ivy
*set i_eyecolor " slaight grey"
*set i_hairlength "medium"
*set i_haircolor " blood red"
*set i_hairstyle "streight"
*set i_hight "5 foot 7"
*set i_build " wirey"
*set i_skincolor "pale"
*comment Goan
*set g_hight "6 foot 2"
*set g_eyecolor "dark blue"
*set g_skincolor "dark brown"
*set g_hairlength "short"
*set g_haircolor " brown"
*set g_hairstyle "buzcut"
*set g_build "stockey"
*goto breckfast_continue
#men.
*set mc_orientation "likes men"
*set t_gender "male"
*set t_name "Darian"
*set t_surname "OBrian"
*set t_fullname "Darian OBrian"
*set t_accent "irish"
*set t_title "commanding gardsman"
*set t_they "he"
*set t_them "him"
*set t_their "his"
*set t_theirself "himself"
*set t_theirs "his"
*set t_themself "himself"
*set t_person "man"
*set t_hight "5 foot 11"
*set t_gender "male"
*set t_build "solidly musscular"
*set t_eyecolor "steal grey"
*set t_hairlength "short"
*set t_haircolor "red"
*set t_hairstyle "buzcut"
*set t_accent "irish"
*set t_skincolor "freckled"
*comment Lork
*set L_name "Lork"
*set L_surname ""
*set L_fullname "Lork"
*set l_title "gardsman"
*set L_they "he"
*set L_them "him"
*set L_their "his"
*set l_theirs "his"
*set L_theirself "himself"
*set l_gender "male"
*set l_person "man"
*set l_eyecolor "hazel"
*set l_hairlength "long"
*set l_haircolor "dirty blond"
*set l_hairstyle "shaggy"
*set l_hight "6 foot 3"
*set l_build "athletic, heavily mussled"
*set l_skincolor "dusky"
*set l_accent "unknown"
*comment Nathen
*set n_name "Nathen"
*set n_surname "Romonov"
*set n_fullname "Nathen Romonov"
*set n_title "specialist guardsman"
*set n_gender "male"
*set n_person "man"
*set n_they "he"
*set n_them "him"
*set n_theirs "his"
*set n_their "his"
*set n_themself "himself"
*set n_theirself "himself"
*set n_eyecolor " ice blue"
*set n_hairlength " short"
*set n_haircolor "brown"
*set n_hairstyle "pixi cut"
*set n_skincolor "pale"
*set n_hight "5 foot 8"
*set n_build "lean"
*set n_accent "Russion"
*comment Dilin
*set d_name "Dilin"
*set d_surname "Orvien"
*set d_fullname "Dilin Orvien"
*set d_title "gardsman"
*set d_they "he"
*set d_them "him"
*set d_their "his"
*set d_theirs "his"
*set d_theirself "himself"
*set d_gender "male"
*set d_person "man"
*set d_theirself "himself"
*set d_eyecolor " Ammatheste grean"
*set d_hairlength " medium length"
*set d_haircolor "black"
*set d_hairstyle "cue"
*set d_build "slender"
*set d_skincolor "olive"
*set d_accent "Jamaicon"
*comment Skarlet
*set sk_name "Skarlet"
*set sk_surname"frost"
*set sk_fullname "Skarlet Frost"
*set sk_gender "male"
*set sk_person "man"
*set sk_they "he"
*set sk_them "his"
*set sk_their "his"
*set sk_theirself "himself"
*set sk_eyecolor "midnight black"
*set sk_hairlength "long"
*set sk_haircolor "jet black"
*set sk_hairstyle "cropped"
*set sk_hight "5 foot 10"
*set sk_skincolor "pale"
*set sk_build "kirvy"
*set k_eyecolor "slaight grey"
*set k_hairlength "shoulder length"
*set k_haircolor "Ravenswing black"
*set k_hight "5 foot 6"
*set k_build "stockey"
*set k_skincolor " tanned"
*comment Ash
*set a_title "Frost"
*set a_they "she"
*set a_them "her"
*set a_their "her"
*set a_theirs "hers"
*set a_theirself "herself"
*set a_eyecolor "ice blue"
*set a_hairlength "medium"
*set a_haircolor "midnight black"
*set a_hairstyle "spiked"
*set a_hight "4 foot 11"
*set a_build "lean"
*set a_skincolor "ivery"
*comment Ivy
*set i_eyecolor " slaight grey"
*set i_hairlength "medium"
*set i_haircolor " blood red"
*set i_hairstyle "streight"
*set i_hight "5 foot 7"
*set i_build "wirey"
*set i_skincolor "pale"
*comment Goan
*set g_hight "6 foot 2"
*set g_eyecolor "dark blue"
*set g_skincolor "dark brown"
*set g_hairlength "short"
*set g_haircolor " brown"
*set g_build "stockey"
*set g_hairstyle "buzcut"
I like spending my time with men.
*goto breckfast_continue
As far as I can tell? Everything is indented correctly now. Still not sure why it would cause the 1 choice to not show. Unsure what else I am doing wrong that may cause this fact.