Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
I saw this viewtopic.php?f=51&t=18047&start=15#p395926 post about making a simple combat minigame. I wanted to make the combat options text buttons instead, though. I cannot for the life of me figure out how to do that with this line of code. Any help would be appreciated!
DewyNebula wrote: ↑Mon Apr 29, 2024 2:33 pm
I saw this viewtopic.php?f=51&t=18047&start=15#p395926 post about making a simple combat minigame. I wanted to make the combat options text buttons instead, though. I cannot for the life of me figure out how to do that with this line of code. Any help would be appreciated!
menu:
"Atack!":
$ wolf_hp -= 2
r "K-y-aaa!!!11 (damage dealt - 2hp)"
"Eat cookie (got [cookies_left] cookies left)" if cookies_left > 0:
$ red_hood_hp = min(red_hood_hp+5, red_hood_max_hp)
$ cookies_left -= 1
r "Mmm, tasty... (restore 5hp)"
Menu choices in Renpy are by default made via textbuttons. So what exactly is it that you need help with? The code you provided looks okay to me, it will show combat options as textbuttons. o.O What am I missing? xD
DewyNebula wrote: ↑Mon Apr 29, 2024 2:33 pm
I saw this viewtopic.php?f=51&t=18047&start=15#p395926 post about making a simple combat minigame. I wanted to make the combat options text buttons instead, though. I cannot for the life of me figure out how to do that with this line of code. Any help would be appreciated!
menu:
"Atack!":
$ wolf_hp -= 2
r "K-y-aaa!!!11 (damage dealt - 2hp)"
"Eat cookie (got [cookies_left] cookies left)" if cookies_left > 0:
$ red_hood_hp = min(red_hood_hp+5, red_hood_max_hp)
$ cookies_left -= 1
r "Mmm, tasty... (restore 5hp)"
Menu choices in Renpy are by default made via textbuttons. So what exactly is it that you need help with? The code you provided looks okay to me, it will show combat options as textbuttons. o.O What am I missing? xD
Oh, sorry, let me rephrase. I wanted to create an Hbox with the attack to move around more easily. It would look like this.