Having trouble with condition coding

You are adding choice options without using a *choice. Remove all #test and #test 2 from the code otherwise it will not funcionar_caralho.

Choice options (those starting with #) are only used after a *choice or *fake_choice so they will not work here.

2 Likes

now it is like that “else” variable don’t exist because the same thing is being showed to every race


Boy…this is starting to stress me out.

Now your indentation is messed up. Things need to be indented correctly (by the same level for each command that has sub-commands) for it to work.

Here is an example:

So your code should look like this:

*if race = "Demon"
	"Excuse me sir would you ple-...
	*fake_choice
		#test
			"test"
			*goto funciona_caralho
		#test 2
			"test
			*goto funciona_caralho
*else
	"Excuse me sir would you ple-se be so kind...
	*fake_choice
		#test
			"test"
			*goto funciona_caralho
		#test 2
			"test"
			*goto funciona_caralho

*label funciona_caralho

test text

You should start slow and take some time with the basic tutorial for choicescript.

1 Like

you are right, better focus on tutorials for now, i knew coding wasn’t easy but damm. anyway thanks for your help.

2 Likes

Nice to see the problem was solved :slight_smile: