Help me format my code

*title My bad ass game
*author Phantomblade
*scene_list
startup
as you wake up in the morning you realize that your late for school what do you do? *choice #jump out of bed if you hurry you might make it to school on time.

how wil you get to school *choice #take your bike; if you ride fast enough you can get their on time unfortunately your tire pops delaying your journey.
*finish #you go to a mechanic shop the mechanic is quick and resourceful and you get your tire fixed quickly but be careful or you could pop the tire again.
*finish #walk to school.
as you walk to scooll you realize your moveing at a sloer pace and you wont make it on time.
*finish #sstart running you take off like a shot running as hard as you can. hope fully you wil make it you run and run and you some how make it to class.
*finish
*choice #sleap for five mor minutes. you wake up to late to go to school and realize your are going to be in big trouble
*finish #you beg for more time.
but your not given any.
*finish #blackmail the principal.
you black mail him but it only makes him mad
*finish #drop out.
you ditch school as you find out that its just not for you.
*finish

@Phantomblade You need to copy-paste your code exactly as it is, indentations and all, for us to be able to help you find problems with it. You can do this by putting three ``` above and below your code, or by using the </> button in the box where you type your replies.

Right off the bat, *finish brings you to the end of your chapter/game. Is that what you intended?

2 Likes

Based on simply reading what you posted. Despite not putting it in (```) i can tell it’s messy and all over the place.

I may be mistaken of course. But i copied what you posted and gave it a quick work.

I presume THIS is what you were looking for. If not, it still serves as an example of sort. May as well play with it. :slight_smile:

*title My bad ass game
*author Phantomblade

*scene_list
    startup



As you wake up in the morning you realize that your late for school what do you do? 

*choice
    #Jump out of the bed.
        *page_break
        If you hurry, you might make it to school on time.
        *page_break
        *goto choice1
    
*label choice1
*page_break

How will you get to school?

*choice
    #Take your bike.
        *page_break
        If you ride fast enough, you can get there on time. Unfortunately your tire pops, delaying your journey.
        *page_break ...
        *goto tirepop
    #Walk to school.
        *page_break
        As you walk to the school, you realize you're moving at a slower pace. And you won't make it on time.
        *finish
    #Run to school.
        *page_break
        You take off, sprinting through the streets as hard as you can. Hopefully you will make it.
        *page_break Run, run.
        Somehow you make it to the class.
        *page_break
        *finish
    #Just five for minutes..
        *page_break
        The famous words.
        *page_break
        You wake up fifteen minutes later, realizing you're late. You're going to be in big trouble.
        *page_break ...
        You make your way to the school, ending in principals office.
        
        What do you do?
        *choice
            #Blackmail the principal.
                *page_break
                You attempt to blackmail the principal, but this only makes him angry.
                *page_break
                *finish
            #Drop out.
                *page_break
                You ditch school, as you find out that it's just not for you.
                *page_break
                *finish
        *finish
    
*label tirepop
*page_break
You go to a mechanic shop, the mechanic is quick and resourceful. And you get your tire fixed quickly. But be careful, or you could pop the tire again.
*page_break
*finish
2 Likes

sorry I am trying to eddit the post but I was just trying to
make a choice happen. I didn’t make any scenes yet

I thought about adding pagebreak but didn’t for some reason.

1 Like

@Phantomblade

Page break is good to keep stuff organized. At least for me, i use it a lot.

It’s also used to prevent those wall’s of text.

In any case i recommend going through Choice Script Wiki(clicky, click) if you’re staring with it for the first time.

There is also a useful topic over here.

3 Likes

thank you I don’t no what you did but it worked. I read the wiki and my plan was to sea what I can do using only *choice and *finish unfortunately i ignored every thing else and that was my downfall.

2 Likes

@Phantomblade
You’re welcome. :slight_smile:
And that’s alright, we all make mistakes. I am far from good myself, lot’s of reading yet to do! But practice does wonders.

I almost forgot, but i would recommend CSIDE. Which you can find right here.

I started myself with this, and we’re best friends right now! Aside of neat interface, it also helps with indentations. There are also tutorials within this small gem of a software. It’s easy to start with, and get familiar with.

10/10 - IGN :+1:

3 Likes