Menu Variable help [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
spookyruthy
Newbie
Posts: 23
Joined: Fri Dec 10, 2010 7:54 pm
Completed: None at present.
Projects: Bells & Spires - A Suspense/Horror OELVN
Contact:

Menu Variable help [SOLVED]

#1 Post by spookyruthy » Fri Dec 24, 2010 10:41 am

Hi guys, need some help.

I've set variables to assess whether or not the player has asked certain questions to an in-game character. I have set these as simple defined variables which are either True or False.

Code: Select all

$ cathedral_info1_done = False
    $ cathedral_info2_done = False
    $ ghost_info1_done = False
    $ priest_info1_done = False
    $ eugene_info1_done = False
    $ jean_flirt_done = False

menu:
      "Ask about the Ghost." if ghost_info1_done == "False":
          jump ghost_info1
      
      "Ask about the History." if cathedral_info1_done == "False":
           $ knowledge_cathedral += 1
           jump cathedral_info1
           
      "Ask about Eugene." if eugene_info1_done == "False":
          jump eugene_info1
           
      "Ask about the Priests." if priest_info1_done == "False":
          $ knowledge_religion += 1
          jump priests_info1
           
      "Ask about whether she's single." if jean_flirt_done == "False":
          $ jean_score += 1
          jump jean_flirt
           
      "Don't ask anything.":
          me "Nothing I can think of at the moment."
          jump tues_morn
When I run it, none of the options except the last one show up. I'm not sure what the problem is. I only declare the variables to be True once in the determined label. It should logically work, but it doesn't.
Last edited by spookyruthy on Tue Dec 28, 2010 7:54 pm, edited 1 time in total.
Image
Bells & Spires - A Horror/Suspense OELVN - Still a looong way to go!!
Visit my DeviantArt!

User avatar
spookyruthy
Newbie
Posts: 23
Joined: Fri Dec 10, 2010 7:54 pm
Completed: None at present.
Projects: Bells & Spires - A Suspense/Horror OELVN
Contact:

Re: Menu Variable help

#2 Post by spookyruthy » Fri Dec 24, 2010 10:43 am

Aha, please ignore this. Just worked it out - remove the quotation marks, because you're dealing with a standard statement, not a user-defined one.
Image
Bells & Spires - A Horror/Suspense OELVN - Still a looong way to go!!
Visit my DeviantArt!

Post Reply

Who is online

Users browsing this forum: Google [Bot]