Code help please?

I’m writing out the first scene of my game and I think the code is ok, but I’m no sure. So I wanted to manually test it in firefox, but when I click on index all it pulls up in the tab is this:
file:///C:/Users/OWNER/AppData/Local/Temp/Temp1_choicescript-master.zip/choicescript-master/web/mygame/index.html
(I just got a new computer and I’m still not sure how to take a screenshot, so, sorry.)

If you can’t help with the problem, could someone at least check my code to see if it will work?

Your skirts swish around your ankles as the train pulls into the station. 
This mission is a very important one, and the train is five minutes late. This is going to throw off everything.
Samuel looks over at you. "Clara," he says, sighing, "it's fine. It's only five minuets. They'll still be there, waiting.
It's not like they're going to call off the heist over a five minute delay." You shake your head and board the train.

*page_break*
The year is 1875. You are a vampire hunter, and a rare one a that. You are a women. At least, you look like a woman.
What are you, really?

*choice
 #I'm truly female. 
  Well then, you are quite the oddity, aren't you?
   *goto continue 
 #I'm a very feminine male. Vampires tend to be more drawn to women.
  That makes sense, and although it's not the most common thing, was probably a good career move.
   *goto continue 

*label female
 Well then, you are quite the oddity, aren't you?
   *goto continue
*label male
  That makes sense, and although it's not the most common thing, was probably a good career move.
   *goto continue 

*label continue
Now then, it's 1875, and you're a feminine vampire hunter. You're the bait and the hunter of your group. Then there's Samuel, your supply man and resident priest, and Kinta, the indian tracker he hired. You three have been working together for five years now, tracking down, drawing out and killing vampires. Over those years, you've devoloped custom weapons and techniques. Which weapon do you prefer?

*choice
 #Silver bullets, filled with garlic and doused in holy water.

 #A wooden stake.

 #A silver stake.

 #A silver knife and diced garlic.

 #Sharpened wooden bullets.

 #Silver chains.

 #A magnesium and water solution in a silver bullet.

 #A syringe and a vial of angel blood.

 #A syringe and garlic oil.

 #Crucifixs 

 #10,000 small silver beads.

 #Bullets blessed by Samuel.

 #A silver chakram.

Hmm :eyeglasses:
Welcome to the community. Let me ninja a certain person at giving you some begginer links.

Beginner? go here: Master List: Links for Beginners
And here’s the wiki: http://choicescriptdev.wikia.com

And about your code… I can see some errors on it. Let me quote it and give you the “edited with commentary” version.[quote=“ScatteredA, post:1, topic:27829”]

*choice
·#I'm truly female. 
··Well then, you are quite the oddity, aren't you?
···*goto continue     <<Reduce indentation by 1>>
·#I'm a very feminine male. Vampires tend to be more drawn to women.
··That makes sense, and although it's not the most common thing, was probably a good career move.
···*goto continue    <<Reduce indentation by 1>>

[/quote]
In this *choice case, I use this character · to represent indentation instead of tab/spaces (for visibility purpose)

You see, *goto doesn’t need extra indentation. Let them stay inline with the previous line.
Example

··Yo! This line have two indentation
··*goto I don't need moar indentation

The rest should be fine, tho.

I think the Firefox error might be because you haven’t extracted the files. Try extracting the ChoiceScript files (or if you already have, extract them again).

2 Likes

Thank you, it worked!

Happy to help :wink:

1 Like