Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-23-2003, 10:34 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Cool Infinite probabillities

Well.. I'm trying to create a type of infinite probabillity, in which say... lets use basketball as an example, a player can be good, but no one, can ever, score ALL the baskets they take. Begginners will be able to score some baskets, 1 in 10 chance say, Amateurs will be able to score say 6 in 10, and Pros, say 9 in 10, but no matter how good they will get they won't ever score 10 in 10.. (Though some people will but, just imagine they cant ;D)

At first to tackle this I thought, half lives!

e.g...

10, 5, 2.5, 1.25, 0.625..... etc etc.. Always halves the number, but never reaches 0... That is great and all.. But i cant think how to apply this to my problem. x.x And besides the leap from level 1, 10, to level 2, 5, thats huge. :X Thats a whole 5 units :O. Yeah.

NPC Code:

chance = random(1,10);
if (chance == ?) {
//...
}


What would ? be substituted for, even if half lives were used to calculate the probabillity?.. It's confusing. ! I either need help with this, or a brand new concept. x.x
__________________
-Chrisz
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.