yea i just need help on the choice again. I try do something growth academy do and that once you pick the choice you return back to selection choice but one choice become different… I check how to do it on tutorial but don’t explain about how one choice become different choice when you select… until i need do like multi thread thing like twine. I need do copy and past the choice with different to it… Am i?
im assuming your reffering to https://forum.weightgaming.com/t/renpy-help-choice-and-romance-point/44912
My guess is its indentation of renpy blocks, and or your use of jump or call. Keep in mind if you use jump that it moves you to the beginning of the label you jumped to, and renpy will execute each line in order right through that label into the next if there is a following one if there is one. Also if its hits the end of a file without another jump or call being called renpy would end the current call stack and if there is nothing to return to that would end the game and dump the player at the main menu.
By the look at your other post there is no jump at the end of your labels meaning when your menu choice jumps you to the label because the other label follows it when your done with the label renpy proceeds to execute the following label.
A knowlegable member @dingotush made a post about renpy, may wann have a look at it here → https://forum.weightgaming.com/t/some-notes-about-renpy/20786/1
yea and sorry that… Thank you for it. I understand it not going be easy with the code and all. But I want to make game that people use other system can play. I been using quest and get tired of people keep asking me about why it window only…
ok i have trouble to hide the choice I try look for yt video on them but it seem no one have the freaking detail how to!!! WTH?! IF you know a site or way for me hide the choice please tell me.
see the renpy documentation here
An if-clause consists of the keyword if, followed by a Python expression. The menu choice is only displayed if the expression is true. In the following menu:
menu:
"Go left.":
...
"Go right.":
...
"Fly above." if drank_tea:
...
The third choice will only be presented if the drank_tea variable is true. (However if, the config.menu_include_disabled variable is set to True, it will be shown as a disabled button.)
If all menu options have their if conditions unfulfilled, the menu will be skipped and control will advance to the statement following it.
thank you. I really need this.
ok waht am I doning wrong I did what the renpy documentation did and say and I got this
I did these
only problem the one say the city didn’t fade and the forest didn’t light up. What am I doing wrong now!? I swear part of me want to quit. But I want get it rights.
well i cant say for sure without seeing the whole script file, but for starters the menu in the third photo, has the jump statements before the individual python lines setting the variables, which means renpy would jump before ever executing those and setting the variables, without seeing the rest of the script i really can say why.
Two things order and indentation in renpy script and python really matter. Make sure the order things happen in the script is the order you want them to happen. When reading your script for review read the statements literally when you come to a jump, jump, you dont pass go, and don’t collect the $200 on the next line.
Also side note, may help you but vscode has an extension for renpy script for syntax highlighting, may want to install it.
Side note when makeing yoru game launching it from the sdk the develpment tools are enabled. This means you have access to the console such that you can check and see what variables current values are use Shift+O to open the console, then you can type any python comand in to execute it. Just typing a variable name in and hitting enter would show you its value. if you put variable_name = value in you would set its value.
Point being you can debug where things are going wrong by seeing if variables you would have expect to be changed after an interaction are changed
thank again. I swear I wish i am better programmer.
ok I’m sending my game… I try everything, if there someone want to look at it and see what I did wrong the link to it is here
I am literally about to cry out or rage from this! And the sites and google are not happen! I try do what they say but I keep failing! PLEASE I AM DESPAERATE!!!
ok sorry for this post… I might delete be reason I am so upset because I have other project to do, as well future project. Bad enough there are people keep ask me do stuff… bad enough i can’t say no…
I will look at it in depth later, i cant right now, although i did take a peak. Looks like you don’t have all your jumps and labels in the right places, at first glance, minor things.
Really this is not that bad take a breath and calm down. Outside of being new to renpy and not understanding how all of the script language works its actually quite good at first glance. Weather you continue to work on it or not is up to you.
P.S. later means probably tommorw in this case
ok thank… and take your time. I swear I wish i wasn’t stressful mode
I think you need to approach the labels and jumps like a choose your own adventure goosebumps book, the label is like leaving a page number and jump is the like the go to page number the reader finds and does, when reading the goose bumps book. (except in this case its the renpy script engine doing the reading)
The renpy game engine reads line by line when it hits a line with a jump it immediately goes to the new label and does not read/execute any lines below the line with the jump on it instead starting at that new jumped to label. You have some important code after jumps that the renpy engine needs to read before it jumps.
Next note the indentation changes i made. Each label is technically to the renpy engine a block it makes it more clear where and what is part of each label to have the correct indentation. Also the renpy engine cannot mistake the whats with what label, also no script can be on its own its all part of some label.
Back to the blocks i just mention any time you indent your making a new script block if you jump from inside any block you can assume any lines after that block will not be read. For example if you jump from inside a menu block clearly any lines after the menu block will not be read, because your moving to somewhere else in the scrip.
I highly recommend renaming this script adding it to your game folder, then in the vscode explorer side bar with the game folder opened there, selecting it and your original script file for compare, so you can easily see and find the indentation changes i made, and comments. Select for compare is a right click option.
script.zip (6.6 KB)
thank you very much. I do hope i get better in the future.
Ok in regards to the image manipulation from youtube are your refering to this https://github.com/kyouryuukunn/renpy-ActionEditor3?
If so, give me some time to take a peak at it and i might be able to help you use it?
so I guess is should change jump to pass right?
well I just need how to made the choice appear and the last choice disappear, and yea i use that ot help me with my placement. Why?
Ok without context at this point im fairly sure you need 0 pass’s only jumps. Which jump are you referring to?
Why, what?