Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Percentages!
#1
So what I have is this: two numbers with percentages attached to them.

1 = 30%
2 = 70%

I need to have 1 appear 30% of the time and 2 to appear 70% of the time.. I am thinking I need a third number? Or an amount of times it has to run through and then take an average or something? I don't know how to do it so I am asking for help! Haha, thanks.
Reply
#2
Thanks Lea, that's easy enough.

So.. What if the percentages aren't a static variable? Will this method still work?
Reply
#3
I do something like :

Code:
If Npc(NpcNum).Drop(i).Chance > (Rnd * 100) Then 'Whatever'

Where .Chance = whatever % you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)