So my game has been fine until I started getting complicated. (A Dog’s Life)
After you make your dog/wolf/coyote/hybrid, it takes you to the next scene (called Mother).
But after checking it a few minutes ago, it doesn’t do that anymore. Everyone starts off with the wolf beginning scene and continues into that.
Here’s what the txt says:
(choose name, then gender, then breed) #Breed
<goto_scene mother>
(at mother scene)
*if (breed = “Wolf”)
<wolf start
*if (breed = “Wolfdog LC”)
<supposed to be Wolfdog LC start, but starts off at Wolf start>
*if (breed = “Wolfdog HC”)
<supposed to be Wolfdog HC start, but starts off at Wolf start>
*if ((breed = “Coyote”) or (breed = “Coydog”))
<supposed to be Coyote/Coydog start, but starts off at Wolf start>
*if else
<supposed to be Dog start, but starts off at Wolf start>
Oh, that’s easy, just click on the Preformatted text button in order to put stuff like this (but I don’t know where your spacing is; you can do spacing in the thing below):
(choose name, then gender, then breed)
#Breed
<goto_scene mother>
(at mother scene)
*if (breed = “Wolf”)
<wolf start
*if (breed = “Wolfdog LC”)
<supposed to be Wolfdog LC start, but starts off at Wolf start>
*if (breed = “Wolfdog HC”)
<supposed to be Wolfdog HC start, but starts off at Wolf start>
*if ((breed = “Coyote”) or (breed = “Coydog”))
<supposed to be Coyote/Coydog start, but starts off at Wolf start>
*if else
<supposed to be Dog start, but starts off at Wolf start>
This may be a portion of the error: The necessary statement is *else, not *if else, It may not be the whole of the error, though. Try correcting this then re-testing. What happens once that’s been changed?
EDIT: Right now, your *if structure looks something like this:
*if
*if
*if
*if
*else
However, in that situation, the *else will only apply to the final *if, not to all of them. For the *else to apply to the whole chain of *if statements, it would need to look something like this:
*if
*elseif
*elseif
*elseif
*else
Also note, that unless implicit control flow is enabled, *else and *elseif will require *goto commands after each. That would look something like this:
*if
*goto next
*elseif
*goto next
*elseif
*goto next
*elseif
*goto next
*else
*goto next
*label next
Could you post your code as preformatted text, without the (what i assume to be, at least) comments? That would make it easier to see what might be the problem
#breed
info about breed
*goto_scene mother
(mother scene)
*if (breed = "Wolf")
wolf beginning
*if (breed = "Wolfdog LC")
wolfdog lc beginning (but turns out to be wolf beginning)
*if (breed = "Wolfdog HC")
wolfdog hc beginning (but turns out to be wolf beginning)
*if ((breed = "Coyote") or (breed = "Coydog"))
coyote/coydog beginning (but turns out to be wolf start)
*else
dog beginning (but turns out the be wolf start)