Тёмный

Ren'py Random Numbers & Values 

Visual Novel Design
Подписаться 29 тыс.
Просмотров 13 тыс.
50% 1

Learn how to set variables to random numbers, random choices, and randomize pre-set lists of elements with this short ren'py tutorial!

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@toughsun2704
@toughsun2704 4 месяца назад
One of the best tutorial videos I've ever seen. Short, to the point, with clear examples of both the code and the effects.
@lukashenrique4295
@lukashenrique4295 11 месяцев назад
Been nonstop watching your channel ever since I started making a project, you teach so many cool things and in such a simple way, thanks a lot for these tutorials!
@vimi
@vimi 11 месяцев назад
Thanks! I'm glad they're helpful!
@codemonkey5519
@codemonkey5519 2 года назад
This might be the most useful tutorial you've made so far. I've had trouble finding tutorials that explain this stuff in a way I can understand
@vimi
@vimi 2 года назад
Nice! I'm gonna try to make more, shorter tutorials like this over time that can get into more narrow focuses.
@miserablepumpkin9453
@miserablepumpkin9453 2 года назад
I'm so incredibly happy I found this channel. I've had so much trouble with Ren'py, but your videos clear things up for me!
@vimi
@vimi 2 года назад
I'm glad to hear that!
@mrt8bit692
@mrt8bit692 Год назад
I don’t even wanna believe that this channel exists, thank you all that you do
@VerticalVertex
@VerticalVertex 2 года назад
Played your games over at itch again and you are a Ren'py master. So creative with transitions and gameflow. Feels like Unity/other corp games.
@vimi
@vimi 2 года назад
Thank you! I put a lot into my work!
@VerticalVertex
@VerticalVertex 2 года назад
@@vimi If you ever run out of video ideas i would love to see some behind the scenes/making of King of the Cul-de-sac and Romancing Flesh.
@vimi
@vimi 2 года назад
@@VerticalVertex I have a few videos planned :)
@ActiveDayDreamer
@ActiveDayDreamer Год назад
Thank you so much! Your walkthrough was easy to understand and follow, and through your tutorial, I was able to do what I wanted to do with my code. Keep up the good work!
@vimi
@vimi Год назад
Glad it helped!
@yumarowen
@yumarowen 2 года назад
Thank you so much for all the videos you've made! I'm planning to do NaNoRenO this year and all your videos helped me so much!
@vimi
@vimi 2 года назад
Best of luck! I'll be rooting for you!
@D3stinySm4sher
@D3stinySm4sher Год назад
I'll have to check out some videos on how to create a 'dice roll' kind of deal, as I'm trying to create a turn-based RPG system that incorporates an element of chance with certain actions. This is pretty quick and easy for a number of uses, though!
@vimi
@vimi Год назад
Dice rolls use the randint function! I usually set them up like this: label d20: $ d20 = renpy.random.randint(1, 20) return Then, whenever I need to know the result of rolling a twenty sided die, I'll use "call d20", and it resets the variable "d20" to a new value between 1 and 20. I cover this stuff in my Renpy RPG Combat video!
@danielhcp1311
@danielhcp1311 2 года назад
Nice! I didn't knew about the last one. This will be usefull :)
@vimi
@vimi 2 года назад
I honestly had to learn the last one just for this video 😤 I haven't found an occasion where I needed to use it yet, but it's a nice thing to have in your programming rolodex!
@danielhcp1311
@danielhcp1311 2 года назад
@@vimi This could be good for a minigame that shuffles items around (imagine you having to reorganize the things in your desk after a messy coworker uses it).
@vimi
@vimi 2 года назад
​@UCmaPe0ET53Qw45lssEjVr2g I wish I had the time and opportunity to make half of the dumb mini game ideas I have. I would make some real weird garbage.
@jesterabbit
@jesterabbit 2 года назад
You are a LIFESAVER!
@vimi
@vimi 2 года назад
Glad to help!
@patnor7354
@patnor7354 2 месяца назад
Helpful as always
@Pawlo370
@Pawlo370 2 года назад
Can you make tutorial how to extract rpy files to rpa?
@igretrovods9189
@igretrovods9189 2 года назад
I set renpy.random.randint(2,8) for blinking, but it's always the same amount no matter what I do. So every blink is timed the same way despite "randint" command. So as a result, I gave up and set up blinking manually but complex enough so it doesn't look robotic. Still, feels like "change" and "randint" should have worked. I don't understand.
@vimi
@vimi 2 года назад
I'd have to see your code to see how you set up the timing???
@igretrovods9189
@igretrovods9189 2 года назад
@@vimi I tried this - image ken_slideshow: "ken normal" pause renpy.random.randint (2,8) "ken blink" repeat I also tried this - image ken_slideshow: "ken normal" choice pause 3 choice pause 5 choice pause 8 "ken blink" repeat
@vimi
@vimi 2 года назад
​@@igretrovods9189 That second one was almost right! Try this (with proper indentation, of course): Image ken_slideshow: "ken normal" choice: pause 3.0 choice: pause 5.0 choice: pause 8.0 "ken blink" pause 0.75 repeat
@Nw-vs9jq
@Nw-vs9jq 2 года назад
Hellooo, I was wondering if you could do a Video on how to make random choices appear in renpy because I surely don't know how xD
@vimi
@vimi 2 года назад
There are a few ways to do it, depending on what you mean, exactly? If you want each choice to be randomized, you can add an if statement to each menu option, that only activates when it is randomly chosen; or if you just want the text to be randomized, you can set the text to be a randomized variable itself. It really depends on what the purpose is!
@Nw-vs9jq
@Nw-vs9jq 2 года назад
@@vimi thankkk uuu for the replyyy
@markof_tv4138
@markof_tv4138 2 года назад
You are so f****g good, but my english is not enough for fullundersunding. I hope, soon, in Ukranian will be someone as good as you!
@igretrovods9189
@igretrovods9189 2 года назад
В снг визуальные романы популярнее, чем на западе. Интересно, почему так
@markof_tv4138
@markof_tv4138 2 года назад
@@igretrovods9189 Согласен с тобой, но в СНГ мало годных обучалок. Для новичков только, а я хочу уже что то более продвинутое.
@JuleSan_jk
@JuleSan_jk 2 года назад
On point! I was struggling these days with a not so random "renpy.random.randint(1,6)" because of getting every-time the same numbers while rolling my dice, only with restarting the game, like you said, there was a new random output. But I wanted to use it often without smashing the flow - so the only conclusion to solve that was: Create new variables doing the same stuff XD
@vimi
@vimi 2 года назад
I like to get to business 👔
@JuleSan_jk
@JuleSan_jk 2 года назад
@@vimi For sure! :3 And while I was editing my too early sent answer, you've answered me, too XD
@xp0nat
@xp0nat 8 месяцев назад
Hi, how can I use this here? So that every iteration I get a random number, and not just the first pass. define scream_timer_before = renpy.random.randint(1, 4) image main_menu_animated: "gui/main_menu.png" pause scream_timer_before choice: "gui/main_menu_3.png" pause 0.2 choice: "gui/main_menu_3.png" pause 0.2 pause 0.2 repeat
@karolinamoller7235
@karolinamoller7235 2 года назад
For some reason im heading an issue, where in line: $ gained_milk = renpy.random.randint(15, 20) Every time the number is either 15 or 20 and nothing in between. How do i fix that?
@vimi
@vimi 2 года назад
That line of code seems right - how are you evaluating the result? Is it some if/elif statements, is the number being adjusted elsewhere, or is directly added to a larger sum? When I have problems like that, I usually have a dialogue box or screen with the variable in it, like this,"[gained_milk]", so I can see exactly what value is spitting out, and I can use that information to see how that value is being processed elsewhere.
Далее
Create a Day/Night Cycle in Ren'py!
12:23
Просмотров 30 тыс.
Ren'py Transitions and Animation Tutorial
8:30
Просмотров 57 тыс.
Angry bird PIZZA?
00:20
Просмотров 8 млн
How to get skins for FREE? #standoff #skins #coins
00:34
What’s your height?🩷🙀💚
00:59
Просмотров 4,3 млн
📣5 Ren'py Tricks You Probably Didn't Know!
8:11
Просмотров 39 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 98 тыс.
Ren'Py #11 Using Classes
18:22
Просмотров 24 тыс.
🎮 Ren'py RPG Combat Engine! 🎮
15:56
Просмотров 81 тыс.
LEVEL UP Your Visual Novel Sprites!
15:31
Просмотров 69 тыс.
Making a DATING SIM Using Ren'Py! Part 1: Introduction
14:36
Simplified Ren'py Tutorial
12:21
Просмотров 135 тыс.
Angry bird PIZZA?
00:20
Просмотров 8 млн