Please help. Error: startup line 11: Invalid expression, couldn't extract another token: énero ""


#1

This is the startup:

*title Electrolísis
*author Arwen

*scene_list
  startup
  variables
  choiceselectrón
  choiceslluvia 

*create Elemento ""
*create Género ""
*create Nombre ""
*create Creatividad 0
*create Imaginación 0
*create Conocimiento 0

And this is the variables.txt:

*choice
    #Electricidad
      *set Elemento "Electricidad"
      *goto género
    #Agua
      *set Elemento "Agua"
      *goto género


*label género
Ahora, elige si eres niño o niña.

*choice
    #Niño
      *set Género "Niño"
      *if Elemento = "Electricidad"
        *goto electrón1
      *else
        *goto lluvia1
  
    #Niña
      *set Género "Niña"
      *if Elemento = "Electricidad"
        *goto electrón1
      *else
        *goto lluvia1

I have no idea why this error appears. Anyone know why?


#2

I know this is actually not what the error message reported, but I think the trouble exist on this area

Try putting those conditional checks inside a parentheses. Like this:
*if (Elemento = "Electricidad")


#3

It’s possible that you may not be able to use accented characters in the name of your variables (as opposed to within “string” values or as narrative text, where they definitely work just fine).

Have you tried changing ‘Género’ to ‘Genero’? (Or better yet, ‘genero’, since keeping all variable names lower case seems to be good practice, to prevent any possible confusion or issues later down the line…)

Also, I don’t know if you’ll have a problem in using the same name for labels as you have for variables? That would be another thing to check. Maybe change the label to *label establecer_genero, or something like this?