+ 1

How to create a rarity code in python?

I am trying to make a code where the player opens a chest and can receive a random item. But, I want some items to be rarer than others. how would I code this?

21st Nov 2017, 5:17 PM
Stef
Stef - avatar
2 Respuestas
+ 1
ex: legendary = ["God Sword", "God Shield"]
23rd Nov 2017, 12:46 AM
►► Ferontwix ◄◄
►► Ferontwix ◄◄ - avatar
0
I think that you can use lists to do it
23rd Nov 2017, 12:41 AM
►► Ferontwix ◄◄
►► Ferontwix ◄◄ - avatar