I want it so on Login there is a a 30% chance that someone would be a King Rathre than a Knight
Can Someone Tell me how
thanks
CloneGoku
ID:179857
![]() Oct 20 2001, 1:07 pm
|
|
![]() Oct 20 2001, 1:54 pm
|
|
comeon someone i need t know please
|
CloneGoku wrote:
comeon someone i need t know please Replying to your own post in less then a hour won't help your question be answered. |
Look up rand(), dice(), and prob() with F1 or the reference. I cant remember if the FAQ has an entry about it, but try to look anyways
Alathon |
Heres an example with rand()
mob/verb/Change_Random(ran as num, ranover as num) if(rand(ran) > ranover) icon = 'Booya_You_Passed.dmi' else icon = 'Awwwwwww.dmi' Alathon |
.....
if(prob(25)) icon = 'lalala.dmi' else if(prob(50)) icon = 'lalalalalala.dmi' Havent used prob() yet but I think thats how its used Alathon |
Sigh...Do you need it handfed? There are LOTS of ways to do it, and Ive given you info on all of them. If you dont understand them, read the FAQ, and the guide. Those proc's are very simple to use.
var/lala = rand(1,10) switch(lala) if(1) // lala var/rand_prob = prob(rand(1,100)) if(rand_prob <= 25) // whatever else if(rand_prob <= 50) // ...you get it Alathon |
CloneGoku wrote:
who said i did that i never did You weren't supposed to copy it as written either. You should spend more time learning the basics. |