Gamebook Copied Pages are Mirrored Issue

ProjectS
23 Aug 2022, 14:59

Hi, I just started using the gamebook for a game that I was making (duh) and I was messing around with it until I was trying to set up input for first and last names. Of course, I will be trying to be as lazy efficient as I can try to use the copy feature. I copy the page of the first name page and altered the script set variable to player.alias to player.alias1. However, when I went back and did the name input for both first name and last name ({player.alias} {player.alias1}) only the last name would show up. I then went back to check my script for the first name and realized that it was changed to player.alias1. I tested this again by making a new character name input page and copying it and it was mirrored. If I change the script of the original or the copy, the others will follow suit. The description does not mirror though. If I add a new script into the page, the others will also have that new script as well.

The only known fix I have to this atm is to copy the page I want, save and restart and the issue will be no more. I am not sure if this is a known bug or if it is just my client, but if there is another method of copying so I do not need to close my client every time, that would be great.


mrangel
23 Aug 2022, 22:00

I think I can see how this would happen, with the in-memory copy of the script.

First thing I'd test is whether saving and reloading the file fixes it… guess you already figured that out.
Then I'd ask if you're using the GUI script editor, or code view. Because as far as I'm aware, switching to code view serialises the script objects, which are then re-parsed. So it's possible that switching between the two editing modes would separate the two scripts.
If that doesn't work, I'd try editing in code view and then see if they're still attached. Or as a last resort, go to full code view, copy one of the objects, delete that object, and paste it back in.


mrangel
23 Aug 2022, 22:03

(Or, when duplicating a page do it in full code view. Find the page in the code, which will probably start with something like <object name="whatever its called"> and end with </object>. Copy and paste that chunk of XML to duplicate it, and change the name of the new one before leaving code view. As the script was never duplicated, it shouldn't have this problem)


ProjectS
24 Aug 2022, 20:17

So I was using the GUI script editor cause me bad at code.
But thanks for the help :)
However, sadly, I don't think Quest is for me as it doesn't have a lot of the things I want. I am currently trying my hand on Twine and that is a whole nother rabbit hole to dive into...
Might try Quest out again if I am planning to make a simpler game using Gamebook. Also, as a non-grass toucher (one that doesn't go outside much), the constant light mode hurts my eyes too much haha.
Once again, thank you for the response :) I will probably return once I get better at reading and writing code :V