Making a dialogue speech appear only if right answer is chosen
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.
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.
Making a dialogue speech appear only if right answer is chosen
Hi guys, I'm kinda new at this and so I'm kinda suffering from last minute stuff. I was just wandering how to make a text(Not a menu choice) available on if a choice is chosen. It won't appear if a different choice was chosen.
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Making a dialogue speech appear only if right answer is chosen
You could use a variable i.e
default vChoices=0
When the player make a choice in the game that should effect something later you change the value of the variable.
$ vChoice=1
You then use the value of the variable to determine what will happen at a certain point in the game
Code: Select all
if vChoice==1:
pc1 "Let me tell you this very important piece of information......."
else:
pc1 "Niece weather we are having, no?"
Re: Making a dialogue speech appear only if right answer is chosen
Thanks I think I get it!Per K Grok wrote: ↑Fri Nov 30, 2018 1:35 amYou could use a variable i.e
default vChoices=0
When the player make a choice in the game that should effect something later you change the value of the variable.
$ vChoice=1
You then use the value of the variable to determine what will happen at a certain point in the game
Code: Select all
if vChoice==1: pc1 "Let me tell you this very important piece of information......." else: pc1 "Niece weather we are having, no?"
Who is online
Users browsing this forum: Google [Bot], henne, MisterPinetree