Total beginner needs help!

hey friends, i finally got time to write for my game, am using CSIDE right now and it has been a little use to use, though i got one problem here…what am i doing wrong here?
(i cannot post screenshots here for some reasons so here’s a copypaste of my code)

*label explaining
you weren’t far away from home because of s trip or anything of the soft,but because you were accepted into your dream school.

how, you don’t exactly know how, but one rough morning you were casually told by your dad that he received your acceptation note from the mail, beneath the usual bills

you didn’t expect that they’d actually accept you.

but that’s wrong, you have been training yourself for this, especially when the school you’re supposed to stay at for the next millenial, is one of the most prestigious, and fun places for both education and a chance at winning it big in life.

*page_break

*label finally
you heard about a lot of people that graduated from this school, people who ended becoming super successful in life, from big time artists, musicians, actors and so on, you heard about the fun activities that the school have, how even the classes are pure fun, along with the most skilled teachers to educate you.

you read so much about this school, so many great things, you wanted so badly to go to this school, to also achieve your own success in life…and because it sounded fine!

(the issue occurs after the line ;winning it big in life; it gives me an error that says ‘line 66 of startup: Invalid indent? Expected an #option here, not *choice’)

( note that i am a total beginner, i did get some progress done but that was a few weeks ago so i kinds forgot a few stuff here and there…also after this issue is fixed, can anyone tell me how i can make a bunch of choices that boost the player skills, i want each reader to only be able to piclk two choices that would boost their skills, and i want it so that when you pick one choice, you are then brought back to the same page, although the choice you picked is now grey…hope this makes sense and hopefully i posted this on the right topic)

2 Likes

Hi! I’m a bit confused with your example. The text you provided works on its own. What confuses me is that you are getting a *choice related error somewhere where you have no choices?

The error you are getting means (at least I think) that you inserted another *choice in an already created *choice.

Example:

*choice
    #Tell the truth.
        You tell the truth
        *goto truth
    *choice
        #Lie
            You lie.
            *goto lie

Maybe there are other ways to get this error, perhaps with different indentation? I’m not totally sure. But what’s important: to avoid such an error, the code should look like this:

*choice
    #Tell the truth.
        You tell the truth
        *goto truth
    #Lie
        You lie.
        *goto lie

There is no need for another *choice in the code. The individual choices the player sees are determined by the # options. You only need one *choice in the beginning.

But this still doesn’t explain why you are getting an error regarding choices when you have a *page_break there instead. Are you sure this is the line where you are getting the error?

For the question regarding the grayed-out choices:

You would use *disable_reuse command for this. This is a bit more complex since you want the reader to be allowed to only raise 2 skills (I assumed the reader would have more than 2 skills to pick from, meaning some won’t get raised), but it shouldn’t be too hard. I quickly came up with an example. There are probably more ways to do it, some more efficient than my example (I’m also just learning), but at least you can get an idea.

*label stats
Time to raise your stats! You can choose 2 skills to raise. 
*if (stats_limit = 2)
    *goto continue
*else
    *choice
        *disable_reuse #Raise Strength
            *set strength + 10
            *set stats_limit +1
            *goto stats
        *disable_reuse #Raise Agility
            *set agility + 10
            *set stats_limit +1
            *goto stats
        *disable_reuse #Raise Intelligence
            *set intelligence + 10
            *set stats_limit +1
            *goto stats
*label continue
*finish

If reader decides to pick strength, this skill is raised, the reader stays on the page, and the option to raise strength becomes gray. The stats_limit variable is there so when player raises the second skill, instead of returning to the *label stats page, the game proceeds to the next page. (In my example the one labeled as continue) That way, the player can only raise 2 out of the 3 available skills, just as you wanted I pressume?

2 Likes

wish i could share a screenshot, but it won;t allow me to…but i apperiecate the help, there is still a lot to learn for me, i just think that my entire code got messed, it was just workiing just fine a few minutes ago, i think i will start from scratch, which is fine since i haven’t made that much progress, again thanks for the help and hopefully i can do this right soon!

Well if you’d like more help, you could copy your text and code into a block of preformatted text. That way, we could see all that you actually have there, with the actual indentation, and perhaps we could help you solve the issue? If the writing itself is too long, you could just replace it with a short placeholder, and we could get oriented quicker within the code.

Anyways, good luck with your project!

2 Likes

Your trust level is too low. Make one more comment on a topic which you did not create, and then you’ll reach member trust level.

That will allow you to post screenshots. Once you do that, let us see what the problem is.

2 Likes

everyone is so helpful in this community, so I’d definitely come back for more advice whenever i decide to start working on this project again, until then, it’s time for me to do some more research :hugs:

1 Like

THAT makes sense…well i should do that whenever i get the chance to, thank you for letting me know

1 Like

finally fixed all errors and am done with my 66k demo, but since i used IDE…how do i exactly export my project and upload to to Dashingcon for people to play, just kinda stuck here, help someone helps

(oh goodness, never mind i figured it out…apologies for the inconvenience guys, just beginner problems as you know lol)

(edit 2, actually there’s seems to be a issue still…the choicescript ide still doesn’t wanna export my project, weird :(()

1: Find the location of your text files (maybe the save folder for CSIDE?).
2: Log into your hosting site. (DD?)
3: Select the upload option on the site’s webpage
4: Chose the files you want to upload to the hosting site.

I hope this helps :revolving_hearts:

1 Like

will try this tomorrow, literally spent days trying to make this demo work…and also spent this specific day working on it too, thank you for the help!

1 Like