I’ve been reading some other posts about this but I haven’t found a solution to my issue, so here it goes. Maybe someone can help.
So I’m creating a test game to practice some of the things I’ve learned so far. At the beginning of the game I ask players to choose one of three races and each race has different stats. That worked fine.
But then later on I tried using the races to set another variable (not sure if my phrasing on this is right). What I mean is, the player is on a journey and I ask them which way they want to go. Depending on their answer and their race, their body temperature drops a different % (because there’s a storm and it’s cold and some races are faster than others, etc…). Like this:
Which way do you want to go?
*choice
#North, towards the cave.
*if dwarf
*set body_temp %-15
*if elf
*set body_temp %-10
*if human
*set body_temp %-12
*goto_scene cave_scene
#East, towards the cabin
*if dwarf
*set body_temp %-20
*if elf
*set body_temp %-15
*if human
*set body_temp %-17
*goto_scene house_scene
Whenever I try to choose any of these options, there’s an error saying Non-existent variable “dwarf”.
The first thing I tried was to switch places with the other races to see if it was just the “dwarf” that was giving problems, but the error popup kept appearing with the other races as well.
Initially, on my setup I wrote
*create race “Unknown”
But after this error I went back and wrote:
*create race "dwarf"
*create race "elf"
*create race "human"
And it still isn’t working. I can’t figure out why.
I also tried closing CSIDE and opening again, no luck.
Any ideas?