Choicescript help again


#1

how do i make certain options available for example

Hey! stop that filthy pickpocket

you run over and stop him(requires 10 strength)


#2

This should work.

*choice
	#Help! A thief!
		Run away
		*goto run
	*selectable_if (strength > 10) #Hey! Stop that filthy pickpocket!
			You run over and stop him
			*goto stop

#3

the second option is greyed out


#4

If you don’t want the option to appear at all if unless they meet the criteria, change *selectable_if to just *if.


#5

Because you don’t have 10 strength. You need to create that stat and set it to at least 10 for it to be selectable.

Have you read the into to ChoiceScript and the wiki?


#6

I would recommend reading this:
Choicescript Intro (And what comes next)
The Choicescript Wiki (I was too lazy to find the exact page)
And Some Forum Topics (I included one that had some info on greyed out vs. hidden in the comments, not the initial post).


#7

I am thinking about making my own game, do i need all that legal stuff at the beginning


#8

I’m guessing you’re talking about the copyright stuff that appears on the startup page. And if so then firstly it won’t appear in your game either way because of the coding that’s beside it. So truthfully erasing it won’t make much of a difference.

So . . . no you don’t.


#9

ok thanks, thats really helpful


#10

when you have two choices to make, how do you make sure their separate, for example say u have a choice of taking a shower or eating breakfast, you choose breakfast, how is it possible to separate the 2 choices

sorry for any confusion, this sounded a lot better and a lot simpler in my head


#11
*choice
	#Take a shower
		*goto scene1
	#Eat breakfast
		*goto scene2

#12

I did that, but it came up with an error, am i doing something wrong


#13

Did you create a scene 1 and scene 2 variable and indent properly?

Blah, blah.
*choice
  #Take a Shower
    *goto scene1
  #Eat Breakfast
    *goto scene2
*label scene1
You hop in the shower and...
*label scene2
Yummy. You get pancakes with...

#14

another error increasing indent was not allowed but thanks for your help