var/a=roll(1,6)
var/a=roll(1d6)
proc/Pokeball()
var/B=roll(1d20)
if(1<=B<10)
world<< "Get Pokeball"
if(10<=B<16)
world<< "Get Greatball"
if(16<=B<19)
world<< "Get Ultraball"
if(19<=B)
world<< "Get Masterball"
Problem description:
Which of these do I use, both are giving errors and i need to narrow down the problem
You should also be containing those variables and procs within /mob and not globally.
And better yet, you can use prob() for probability rolls instead of dice rolls.