[SOLVED] Please guys !

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
Soleina
Newbie
Posts: 4
Joined: Tue Oct 17, 2017 11:31 am
Contact:

[SOLVED] Please guys !

#1 Post by Soleina »

Hi guys, please I need help !
I'm trying to learn how Ren'PY works, but I'm so lost, I searched an issue for hours now...

Well... I wanted to give choices, two choices actually
So I made my lines, and when I tried to make it work...
A strange message appears

"Only one say menuitem may exist per menu"

I don't know how to show you images of my lines... Sorry I know I'm new...

( Sorry about my english too, if you don't understand. Actually, I'm french. I don't even understand the error message in itself... )
Last edited by Soleina on Tue Oct 17, 2017 12:29 pm, edited 1 time in total.

Soleina
Newbie
Posts: 4
Joined: Tue Oct 17, 2017 11:31 am
Contact:

Re: Please guys !

#2 Post by Soleina »

I finally managed to have a screenshot of my lines !

Image

So what's wrong ? :cry:

User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Please guys !

#3 Post by RicharDann »

Code: Select all

    menu: 
        "Go with Sterenn":
            #jump choice_2 

        "Go with Soleina":
            #jump choice_1
The choice statement is used in ATL: https://www.renpy.org/doc/html/atl.html ... -statement
Last edited by RicharDann on Tue Oct 17, 2017 1:03 pm, edited 1 time in total.
The most important step is always the next one.

Soleina
Newbie
Posts: 4
Joined: Tue Oct 17, 2017 11:31 am
Contact:

Re: Please guys !

#4 Post by Soleina »

I just did it, like this :

Image

But...

Image

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Please guys !

#5 Post by SundownKid »

First of all you forgot the colon after each choice. Programming is very exact and if you don't have it perfectly right it won't work at all. Second of all (and that's an issue with the example given by the last commenter) the jump statements are commented out and shouldn't have the "pound" symbol in front of them.

Here is what it should actually look like:

Code: Select all

menu:
	"Go with Sterenn":
		jump choice_2

        "Go with Soleina":
        	jump choice_1

User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Please guys !

#6 Post by RicharDann »

You need to add (:) after each menu choice, if you don't Ren'Py won't recognize it as a choice.

Code: Select all

    menu: 
        "Go with Sterenn": # <-- Notice the : symbol here
            #jump choice_2

        "Go with Soleina":
            #jump choice_1
If you need to post code, it's better to copy it from editra and paste it here between [code] and [/code] tags, so we can quickly copy the code and test to find what the problem is.
The most important step is always the next one.

Soleina
Newbie
Posts: 4
Joined: Tue Oct 17, 2017 11:31 am
Contact:

Re: Please guys !

#7 Post by Soleina »

God, it works !
Oh thank you very much, all of you ! Almost three hours that I was on this problem !

Have a nice day, thanks again !

User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Please guys !

#8 Post by RicharDann »

The commented out jumps didn't seem to be related to the error tc described, it seemed like they knew what the # were for so that's why I didn't mention it. Then again, I realize probably should have mentioned it just in case, sorry about that.
The most important step is always the next one.

Post Reply

Who is online

Users browsing this forum: Google [Bot]