Ren'Py : A choice in a choice ? [Sloved(In some way)]

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
KuroPan
Newbie
Posts: 14
Joined: Sun May 14, 2017 9:36 am
Projects: The Town
Deviantart: KuroYaakhu
Contact:

Ren'Py : A choice in a choice ? [Sloved(In some way)]

#1 Post by KuroPan »

Hello (again and again) !
I've got question:
Is it possible to put a choice in a choice ?
I mean something that will looks like :

---------------

Amy(your pretty assistant) : Who do you want to see first, Sir ?

[choice time !]

- The Old man
- The little child
- the policeman
- No one.

[You choose the policeman (for example).]
[ You talk with him]

Policeman: When I arrived, the victim was already dead.
You : Ok, then ?
Amy : You should ask him specific questions.
You : (Huh, she's right !)

[Choice Time !]

- Ask about the time of the crime
- Ask about the victim
- Ask about somethin else

---------------

Then, you've made all the possibilities for the policeman.
And you want to return at the first menu, when Amy asks who would you want to see.
Is it possible to do this ?
If : yes, it is
So : how can, we do that ?

END

Thanks to you ?
Last edited by KuroPan on Sat May 20, 2017 7:40 am, edited 1 time in total.
- Mystery Time -

"This story took place at the very beginning of our collaboration."
"At the time when everything seemed to be normal."


Oh, my ! Please, the story is in french.
But it would be nice if only there was an english version.
Maybe, a day, I will do a traduction.
A day.
When I finish the first chapter.
A day...
Peace !

THE TOWN (1.0)

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py : A choice in a choice ?

#2 Post by Imperf3kt »

Use conditionals:
https://www.renpy.org/doc/html/conditional.html
You need something to check if the choice has been made, and set the choice as made when it is selected.

If the documentation is too confusing (shouldn't be, its some of the most basic parts of Ren'Py you really should learn) then it can be arranged to give an example.
I'd give you an example now, except I gotta go to work in a few hours: https://puu.sh/vSQJe/1536602013.png
Last edited by Imperf3kt on Wed May 17, 2017 10:15 am, edited 1 time in total.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

KuroPan
Newbie
Posts: 14
Joined: Sun May 14, 2017 9:36 am
Projects: The Town
Deviantart: KuroYaakhu
Contact:

Re: Ren'Py : A choice in a choice ?

#3 Post by KuroPan »

I have a good level in English, but it's difficult to understand sometimes. Especially if there are plenty of codes.
Especially for french people.
It takes me a long time to actually understand.
That's not an excuse.
Thanks for the help !
- Mystery Time -

"This story took place at the very beginning of our collaboration."
"At the time when everything seemed to be normal."


Oh, my ! Please, the story is in french.
But it would be nice if only there was an english version.
Maybe, a day, I will do a traduction.
A day.
When I finish the first chapter.
A day...
Peace !

THE TOWN (1.0)

KuroPan
Newbie
Posts: 14
Joined: Sun May 14, 2017 9:36 am
Projects: The Town
Deviantart: KuroYaakhu
Contact:

Re: Ren'Py : A choice in a choice ?

#4 Post by KuroPan »

I found another way to do it ! (and it semms to work ^^')
But Thanks again !
- Mystery Time -

"This story took place at the very beginning of our collaboration."
"At the time when everything seemed to be normal."


Oh, my ! Please, the story is in french.
But it would be nice if only there was an english version.
Maybe, a day, I will do a traduction.
A day.
When I finish the first chapter.
A day...
Peace !

THE TOWN (1.0)

Post Reply

Who is online

Users browsing this forum: No registered users