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.
Say like this
two basic options, if you go outside the game would go much differently than staying inside.
Is there something you can do like have the game say If you clicked on "go outside" you jump to an outside scene and go throughout the game that way. If you clicked "Stay inside" you stay inside and different things happen for the rest of the game.
I am aware if the program is able to do this it will take a lot of work.
Also I would need to have a lot of branches I guess thats what you would call them?
Start: - go outside -Stay inside
(outside option1)Play (outside option2)explore
(inside option 1)read (inside option 2)draw
(outside-play)ending 1 (outside-explore)ending 2 (Inside-read)ending 3 (Inside-draw)ending 4
I dont know codes for this at all.
Thank you to anyone who helps me with this...
- Eileen-Class Veteran
- Posts: 1386
- Joined: Wed Dec 12, 2012 1:37 pm
- Completed: https://gbpatch.itch.io/
- Projects: Floret Bond, XOXO Blood Droplets, Our Life
- Organization: GB Patch Games
- Tumblr: gb-patch
- itch: gbpatch
Code: Select all
label start: #You have to define points ahead of time if you want to use them in your game. $ read_points = 0 $ draw_points = 0 $ play_points = 0 $ explore_points = 0 "The game has started." menu: "Stay inside.": call insidepath "Go outside.": call outsidepath #You call the outside or inside path and when those are over it comes back here and moves into the ending. "This is the end of the game." if play_points > max(read_points, explore_points, draw_points): call playend elif read_points > max(play_points, explore_points, draw_points): call readend elif draw_points > max(play_points, explore_points, read_points): call drawend else: call exploreend "The End." return label insidepath: "I am inside." menu: "Read.": "Reading is fun." $ read_points += 1 #If these outcome of these choices are long you can create another label and call that instead of writing it all here. "Draw.": "I love to draw." $ draw_points += 1 return label outsidepath: "I am outside." menu: "Play": "Playing is great." $ play_points += 1 "Explore.": "Exploring is exciting." $ explore_points += 1 return label drawend: "I drew." return label readend: "I read." return label playend: "I played." return label exploreend: "I explored." return
Really what you want to do depends on how your game is going to work. If your game isn't as simple as this inside/outside game you will probably have to switch things up in some aspects.
I hope this isn't too hard to understand. I just don't want to give you the impression that my example is the only way for this sort of thing to work.
Floret Bond, XOXO Blood Droplets, Our Life
A Foretold Affair, My Magical Divorce Bureau, XOXO Droplets, Lake of Voices
- Posts: 132
- Joined: Thu May 09, 2013 12:02 pm
- Projects: Shooting Stars, REBORN
As Googaboga mentioned, there's this way to do it which involves points. But, there is also this other way to do it (you will need to be very, and I mean very accurate with your blocks), which is, easier if you're new to coding - and the points might confuse you. (I normally use the method that Googaboga has showed however, this one might be easier, I don't know.)
Okay let's start:
Code: Select all
# You can place the script of your game in this file. # Declare images below this line, using the image statement. # eg. image eileen happy = "eileen_happy.png" # Declare characters used by this game. define e = Character('Eileen', color="#c8ffc8") # The game starts here. label start: e "Should I go outside or just stay inside today?" menu: "Go outside": jump choice_outside "Stay inside": jump choice_inside label choice_outside: e "Should I play today or explore?" menu: "explore": jump choice_explore "play": jump choice_play label choice_explore: e "You got the 1st Ending 'Outside-Explore' " jump choice_return label choice_play: e "You got the 2nd Ending 'Outside-Play' " jump choice_return label choice_inside: e "Should I read today or draw?" menu: "read": jump choice_read "draw": jump choice_draw label choice_draw: e "You got the 3rd Ending 'Inside-Draw' " jump choice_return label choice_read: e "You got the 4th Ending 'Inside-Read'" jump choice_return label choice_return: return
- Eileen-Class Veteran
- Posts: 1775
- Joined: Thu Oct 14, 2010 3:53 am
- Completed: 14 games released -- and Counting.
- Organization: DarkErotica Games
- Deviantart: OokamiKasumi
- Location: NC, USA
For a good tutorial that explains how to do all these things simply, but thoroughly, and with examples, go here: How to Make a Simple Otome GameScreewolf wrote:So this is one of my biggest questions. I have an options menu come up after something happens, is this program able to have a game with different endings...?
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar