Randomized coding

CherryPopKelo

Newbie
Game Developer
Feb 9, 2020
92
357
So I would like to add some randomized coding into my game

What I want is a 1 in 5 chance of something breaking and needing a repair, looked at so forms and found renpy.random.randint(1, 5) however im not sure how this works or how to implement it.

Can someone help?
 

MFN

Well-Known Member
Game Developer
Mar 20, 2019
1,004
1,849
 

MFN

Well-Known Member
Game Developer
Mar 20, 2019
1,004
1,849
U can find more information on this site if you have good english :)