ID:163439
 
How would I make a code that gives a chance of a player being created with something, like a rare race? Then if that is to happen, I would like to give them a special icon for their race, how would I do that?
Looking up prob by pressing F1 in DM or in reference
In response to Monkeykid0049
I see. But could you provide me with an example?
In response to OneWingedDemon
No cuz I don't know how to use it either =P I was hoping you'd be able to figure it out since I'm pretty bad at programming. Here's an example of how I make random stuff....
mob
var
Race

mob
Login()
Race = rand(1,100)//makes Race equal a random number between 1 and100
if(Race >= 10)//if its 10 or less...
Race = "Rare Race"//you get a special race
else
Race = "Normal Race"//if not then you get a normal race

It gives you a 10% chance of getting a rare race but it's a terrible way how to do it so I don't really suggest using it...
In response to Monkeykid0049
Or you can do this:
if(prob(10))
that's also giving a 10% chance.

if(prob(% chance of happening))
It happens!
else
Ill-luck :(
In response to GhostAnime
Yeah I was trying to figure that out..... so yeah...use what GhostAnime provided and not mine =D
In response to Monkeykid0049
Thanks alot!