- Dec 8, 2017
- 738
- 2,467
Hello guys, i decided to create my own game.
I already some of the writing and art done and now i need to implement it on Renpy.
It's going well so far and the start of the game, wich is a simple VN with choice and a one variable is nearly done.
But now i am doing the main part of it, and i was perhaps a little bit overamitious for a guy who knew only a little bit of htlm/php. But fuck it, you learn better by doing and i have no interest in doing a simple VN with branching story.
I have a few question tough, and i hope you will excuse me if i use some terms incorrectly. But i don't want to spend hours searching for things that cannot be done in Renpy so i you would help be i would be very thankful. The documentation online on renpy is very dry for beginner....
Beside, i cannot write and animate my scenes until i know for sure it will be doable, that would be an enormous loss of time.
1/ Can you use conditional statements with imagebuttons? I want to have greyed out locations until a flag is set to True. I intend to do that by replacing the image of my buttons who make up my "map" when a flag is set on True. Basically until the flag is set on true, or a variable reach a certain numerical value, the image is a greyed out version of the location. I would also put the properity "insensitive " of course.
It is doable? It is a good way of doing that? If yes, would one of you could point me to some code that use conditional statements in that context. So i see how it look like. The synthax a*still cause me problems...
2/I want to have the imagebutton of the location the mc is currrently in to be innactive and displaying another image (a version of the base image with an icon on it). But i am not sure how to do it.
The best way i could come with is : i would set a flag to True when inside the location, and to False when i leave it. Depending on the flag the location would display the appropriate image. So, when you click on the menu choice to leave the location, the flag is set to False. And set it to True when you click on the imagebutton of the location (or dismiss the map).
Is there a better way?
3/ I intend to have several love interests. Each one will have a variable associated to her representing her "level". I intend to use that so you cannot jump too far ahead in the story and have scenes who don't make sense.
Example: Lea has her first sex scene at level 6. Elisabeth at level 7 . If Lea is at level 6 but Elisabeth only at level 2, the threesome scene will not be avaiable. Same for the main story, both characters would have to be at a certain level for the next event in the main story to become avaiable.
It's something that i can code at my level, i think.
Is it a good way to structure my game? Can i do it in a better way?
And on that, i am going to work after a night trying to wrangle renpy and python. My boss id not going to be happy. Oh well....
Thank you very much in advance and i apologize for the bad english. Not an native speaker.
I already some of the writing and art done and now i need to implement it on Renpy.
It's going well so far and the start of the game, wich is a simple VN with choice and a one variable is nearly done.
But now i am doing the main part of it, and i was perhaps a little bit overamitious for a guy who knew only a little bit of htlm/php. But fuck it, you learn better by doing and i have no interest in doing a simple VN with branching story.
I have a few question tough, and i hope you will excuse me if i use some terms incorrectly. But i don't want to spend hours searching for things that cannot be done in Renpy so i you would help be i would be very thankful. The documentation online on renpy is very dry for beginner....
Beside, i cannot write and animate my scenes until i know for sure it will be doable, that would be an enormous loss of time.
1/ Can you use conditional statements with imagebuttons? I want to have greyed out locations until a flag is set to True. I intend to do that by replacing the image of my buttons who make up my "map" when a flag is set on True. Basically until the flag is set on true, or a variable reach a certain numerical value, the image is a greyed out version of the location. I would also put the properity "insensitive " of course.
It is doable? It is a good way of doing that? If yes, would one of you could point me to some code that use conditional statements in that context. So i see how it look like. The synthax a*still cause me problems...
2/I want to have the imagebutton of the location the mc is currrently in to be innactive and displaying another image (a version of the base image with an icon on it). But i am not sure how to do it.
The best way i could come with is : i would set a flag to True when inside the location, and to False when i leave it. Depending on the flag the location would display the appropriate image. So, when you click on the menu choice to leave the location, the flag is set to False. And set it to True when you click on the imagebutton of the location (or dismiss the map).
Is there a better way?
3/ I intend to have several love interests. Each one will have a variable associated to her representing her "level". I intend to use that so you cannot jump too far ahead in the story and have scenes who don't make sense.
Example: Lea has her first sex scene at level 6. Elisabeth at level 7 . If Lea is at level 6 but Elisabeth only at level 2, the threesome scene will not be avaiable. Same for the main story, both characters would have to be at a certain level for the next event in the main story to become avaiable.
It's something that i can code at my level, i think.
Is it a good way to structure my game? Can i do it in a better way?
And on that, i am going to work after a night trying to wrangle renpy and python. My boss id not going to be happy. Oh well....
Thank you very much in advance and i apologize for the bad english. Not an native speaker.