I really don't understand the point-based game part of the Remembering User Choices page.
For example, what if I want an ending that needs an amount of affection points ranging between numbers x and y...?
:/ the same applies for choices.
There's that part of the code there about turtle racing, and only being able to do it if and only if the player's gift is a tortoise.
I want to apply that, only with points. So what if statement do I put if...say, I only want the certain choice to appear if the player has 51 to 60 affection points...? (And then there's a seperate choice for 61 to 70 points....etc.)
Gosh, I can't finish Amarilyo without this @A@;
Point-based game questions.
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.
- silversporksama
- Regular
- Posts: 114
- Joined: Tue Jul 27, 2010 4:57 am
- Completed: Senpai WataMite, Last Couple Minutes
- Organization: Tokkimeki
- Tumblr: Tokkimeki
- Deviantart: Tokkimeki
- itch: tokkimeki
- Location: Philippines
- Contact:
- Anima
- Veteran
- Posts: 448
- Joined: Wed Nov 18, 2009 11:17 am
- Completed: Loren
- Projects: PS2
- Location: Germany
- Contact:
Re: Point-based game questions.
Code: Select all
if variable >= 51 and variable <= 60:
do stuff
elif variable >= 61 and variable <= 70:
do different stuff
Avatar created with this deviation by Crysa
Currently working on:
Currently working on:
- Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III
- silversporksama
- Regular
- Posts: 114
- Joined: Tue Jul 27, 2010 4:57 am
- Completed: Senpai WataMite, Last Couple Minutes
- Organization: Tokkimeki
- Tumblr: Tokkimeki
- Deviantart: Tokkimeki
- itch: tokkimeki
- Location: Philippines
- Contact:
Re: Point-based game questions.
I guess soAnima wrote:Something like that?Code: Select all
if variable >= 51 and variable <= 60: do stuff elif variable >= 61 and variable <= 70: do different stuff
Thanks, Anima! ^^
Who is online
Users browsing this forum: Bing [Bot]
