Issues with point based menu.

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
renanekogami
Newbie
Posts: 2
Joined: Tue Jan 01, 2013 11:38 pm
Projects: Ventio Mortis
Contact:

Issues with point based menu.

#1 Post by renanekogami »

I'm trying to implement a point based romance system.
Basically, it's an Otome game, and certain choices gain certain points with certain characters.

Below is the specific code I am having issues with. (ignore the text, it's just a test strand ahhhh... >w>)

(Lines 57-65)

Code: Select all

    menu:
        "I should check on Robbie": # add colons here, after menu choices
            $ Robbie Points_points += 1 # you don't need colons here
            H "I bet Napoleon needs help containing Robbie..."
        "It's should check on Drisdon": # and here, since it's another choice
            $ Drisdon_points += 1 # you don't need colons here
            H "Ahhh. I'll go check on Drisdon."
    
    H "I'm pretty hungry. something food. I'll go to the bank with someone. blerr blah blah."
Error is:

File "game/script.rpy", line 59: invalid syntax
Robbie Points_points += 1
^

Ren'Py Version: Ren'Py 6.13.12.1728



Also, I am new to this website and I'm not sure if I posted everything correctly! Forgive me v_v;
If you need the full code, just ask, I need all the help I can get, really...
Thanks in advanced for reading.

User avatar
Hiddlestoners
Regular
Posts: 126
Joined: Sun Jul 01, 2012 9:27 am
Completed: Thinking Of You [KN]
Projects: PERPLEXITY [Mystery VN], simplicity [KN,Fluff,GxB,BxG]
Contact:

Re: Issues with point based menu.

#2 Post by Hiddlestoners »

I think posting more of the code would really help; for instance, what have you called the variable for Robbie's points? I see that for Drisdon, you've called it 'Drisdon_points' but for Robbie it's 'Robbie Points_points'. Is this a mistake? If so, then you can solve it simply by correcting it to 'Robbie_points' or whatever your variable is.
ENOSHIMA BOWL!
Image

User avatar
renanekogami
Newbie
Posts: 2
Joined: Tue Jan 01, 2013 11:38 pm
Projects: Ventio Mortis
Contact:

Re: Issues with point based menu.

#3 Post by renanekogami »

fsgdfgdfgsdfg I was wracking my brain out about this and that was the issue.
Ahhhhhhasghdfgfg Thank you very much!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]