I have a scene_list and that works sequentially all good but now as I get a little more advanced and split the story into different directions I want to lead the player through complete separate scenes as the story differs greatly.
So if I have a .txt file the script should find it?
So for example
I have a file called example.txt yet when I try to load that scene using *goto_scene example it just lox’s and goes nowhere.
I’ve also tried *goto_scene “example” but I get the same result
The reason for the speech marks is because when I’m using create tags they don’t seem to actually check the tag without speech marks
I.e *if example = “example”
*goto a
Will work whereas
*if example = example
*goto a
Would not work, is it a similar case with goto scene what am I missing because I’m following the wiki ??
There is mention of a scene folder, perhaps is it as simple as creating a;
Are there no error messages? Also try using a specific label inside that scene to see if it works.
*goto_scene example test_label
And have a
*label test_label
Somewhere on your example.txt.
Also the wiki says there is no need for a *scene_list but did you try to set up one?
I.e *if example = “example”
*goto a
Will work whereas
*if example = example
*goto a
Would not work, is it a similar case with goto scene what am I missing because I’m following the wiki ??
Example 1 compares the content of variable example with the text “example”. If that is the actual content of the variable then it will be true. Example 2 compares if the content of the variable example equals the content of the variable example (itself). Since its comparing against itself it should always be true in this case, but if it was another variable it will only be true if the contents are the same.
Make sure the capitalization is correct. Scene files are case sensitive.
As for the conditional check, you need to take consideration of the variable’s datatype: “string”, boolean true/false, and numerical 012.
String is text, boolean is the basic on/off switch, numeric is number. If it’s text, use quote marks; boolean, use true or false w/o quote marks; numeric should be useable with either.
That’s a sign of infiniloop. If you don’t mind, can you post your code here? Inside the reply box, put the code between triple grave accent marks (`) like so (on keyboard, it should be below the ESC).