Hello, what I am thinking and trying to do is set up .rpy files for each book / Subject so for example, I have active_species.rpy which as my human_book = Book(parent=gloss_enc, title=_('Human'), subject=_('Species'), locked=False)
Then goes into the about_humans etc.
I also made a locations.rpy with pretty much the same setup with like so:
python: location = Book(parent=gloss_enc, title=_('Earth'), subject=_('Planet'), locked=False)
With the about_earth, and about_mars with Mars being locked, and I have about_mars_2 and so on. In my script.rpy I made a menu to ask about questions I.E.:
"Ask about Mars" j "Sure thing" $ about_mars.locked = False
with another question like so: "Ask about more facts on Mars" if not about_mars.locked: j "Ah yes, the rest of Mars" $ about_mars_2.locked = False
When getting to the show screen enc_button part, I get a trackback saying $ about_mars.locked = True NameError: name 'about_mars' is not defined? Before I started trying to organize things, everything worked, which I might go back to. Even though, I would like to put different entries into their own .rpy file.
My gloss_enc is in init 1 python: while my label setup_glos with the information on species are in just python:
Any help would be appreciated.
Hello, what I am thinking and trying to do is set up .rpy files for each book / Subject so for example, I have active_species.rpy which as my
human_book = Book(parent=gloss_enc, title=_('Human'), subject=_('Species'), locked=False)Then goes into the about_humans etc.
I also made a locations.rpy with pretty much the same setup with like so:
python: location = Book(parent=gloss_enc, title=_('Earth'), subject=_('Planet'), locked=False)With the about_earth, and about_mars with Mars being locked, and I have about_mars_2 and so on. In my script.rpy I made a menu to ask about questions I.E.:
"Ask about Mars" j "Sure thing" $ about_mars.locked = Falsewith another question like so:
"Ask about more facts on Mars" if not about_mars.locked: j "Ah yes, the rest of Mars" $ about_mars_2.locked = FalseWhen getting to the show screen enc_button part, I get a trackback saying
$ about_mars.locked = True NameError: name 'about_mars' is not defined? Before I started trying to organize things, everything worked, which I might go back to. Even though, I would like to put different entries into their own .rpy file.My gloss_enc is in init 1 python: while my label setup_glos with the information on species are in just python:
Any help would be appreciated.