here try this:
int Percent = 10+(c.playerLevel[7]-(Level/2));
int Chance = (int)(java.lang.Math.random()*100);
|
How could I make it so there is a 50 percent chance of something such as cooking? So like if I cook a fish, it will have a 50 percent chance of burning it.
here try this:
int Percent = 10+(c.playerLevel[7]-(Level/2));
int Chance = (int)(java.lang.Math.random()*100);
if (Misc.random(100) >= 50) {
oh then use dukes way.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |