Couldn't extract token?


#1

I have an error when choice script is just saying “Nah, you ain’t gon’ do dat m8”
Code:

*if gender="male" wife, you thought she just left for work early since she does that often.

Error: startup line 173: Invalid expression at char 18, expected no more tokens, found: VAR [wife]


#2

The text that the *if statement is supposed to display should be on a different line and also indented.


#3

In general, “couldn’t extract token” means you’re using a character that isn’t compatible with choicescript code.


#4

Do this:

*if gender="male" 
	wife, you thought she just left for work early since she does that often.

You need to go to the next line and add another indent after every *if, *elseif and *else.


#5

You are all awesome! :3


#6

It seems like you’re still struggling with the basics of CScript.


#7

I already have that wiki up, it’s just that people are much better at explaining things to me.


#8

Maybe you should make a single thread until you’re confident you know all there is in terms of coding for your project.


#9

That indicates that you’re giving the compiler more tokens (bits of information) than it was expecting. That’s usually due to running lines together, like you did, but can also indicate misplaced parenthesis so that’s a good one to look out for as well.