timed events with 3 chances

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.
Post Reply
Message
Author
demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

timed events with 3 chances

#1 Post by demondog29 »

So right now, I want to try make an event where you have to fight and you will get attacked 3 times. And its a quick time event so if you can dodge 2 out of 3 hits then you win. Does anyone figure out how I can do this?

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: timed events with 3 chances

#2 Post by Kia »

the best option is using screens and timers: https://www.renpy.org/doc/html/screens.html#timer

demondog29
Newbie
Posts: 8
Joined: Fri Jan 18, 2019 6:24 am
Contact:

Re: timed events with 3 chances

#3 Post by demondog29 »

Kia wrote: Fri Jan 18, 2019 4:17 pm the best option is using screens and timers: https://www.renpy.org/doc/html/screens.html#timer
So i figured out how to make a timer. But i dont know how to add in points to show that as long as you dont get hit twice. Youll be fine.

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: timed events with 3 chances

#4 Post by Kia »

you need to have a variable counting the hits or misses then compare it with an if statement,study the page to learn how to make screen elements and this page: https://www.renpy.org/doc/html/screen_actions.html to learn how to use action to process the players input. it takes some time but it's worth is.

Post Reply

Who is online

Users browsing this forum: No registered users