Godot 4 Weighted RNG Tutorial

preview_player
Показать описание
Quick tutorial on how to create weighted randomness in Godot 4!

Check out my RNG tutorial:
Рекомендации по теме
Комментарии
Автор

Keep it up and you'll be a powerhouse YouTube channel for godot, if you're not already! Thanks for all you do!

cd
Автор

Thank you for explaining instead of just doing a code tutorial, copying code helps this project, learning helps me.

GreenK
Автор

Adding this one to the notes, I recently started making a top-down RPG and you are saving my life with these tutorials

christianivy
Автор

i've been trying to understand this for so long and the fact that you explained at the beginning that the higher the number the greater the rarity was eye opening. thank you so much

nneptdotnet
Автор

Thank you for this. It’s awesome for implementing probability systems in godot, and I hope your channel will grow and get the reach it deserves!

azulcrescent
Автор

Thanks for the tutorial! I could definitely use this in my game.

MK_Codes
Автор

Gwizz always brightening up my day after a shit day

unpayasocualquiera
Автор

the moment the for loops where added i was comfused. They really really confuse me.
I started reading it more closely and now i kinda understand
nope i lied im confused lol.

jomeiisaboss
Автор

Obscure very-useful godot tutorials, lol thanks!

Marandal
Автор

Wow, I never thought to do this. Much better than what I was doing and just grabbing a random integer. 😅
I love how all of your tutorials don't waste any time and are easy to follow.
Do you think you could do one for a dialogue system? The ones available either use an addon or seen convoluted/ not scalable.

vrabo
Автор

how do i do that when you get a raritie like common something happens "if rarities[n] == common:"??

me
Автор

is there a way to make it keep in mind the last drop ? so lets say you dropped 5 commons, it would guarantee that next drop will be higher

TheMaJestic
Автор

I really like it but it only works if the rarities array is sorted by rarity the same way as seen in the video.

gyokzoli
Автор

It seems the same thing as what I’ve been using, just use a list [] and and using random numbers generator to pick 0 to 5 to get the index

rogelioayus
Автор

Could rarities be an enum? Like "enum rarities {COMMON = 1000, RARE = 500, EPIC = 250, LEGENDARY = 100}"? Did you just choose a dictionary because it's simpler?

bbrainstormer
Автор

very neat way to create the weightage. The greater the weightage the higher chances, right?

FateflyYip
Автор

for me it says "member "rarities" is not a function but i did everything you did

rubysworld