Ryandor.com https://ryandor.com/forum/ |
|
DragonSP scripts, frequency https://ryandor.com/forum/viewtopic.php?f=2&t=2866 |
Page 1 of 1 |
Author: | RoseThorn [ Fri May 19, 2006 10:55 pm ] |
Post subject: | DragonSP scripts, frequency |
My boss says "find out what this frequency is based on!" so here I am ![]() Anyways, in DragonSP's scripts you have something like... //Willow Tree + green leaves 0175 0ce6 0000 0000 0000 0000 I know the 0175 is frequency (at least, I think it is!) I know the higher the number the more of em I'll end up with So the question is, what's the highest number? What's the range? Thanks! |
Author: | Dian [ Sat May 20, 2006 1:29 am ] |
Post subject: | |
Thats the 'frequency' for the overall items listed in that script.. it only changes the chance of placement, within the overall chance that the items.txt file gives it to begin with.. Anyways, the 0175 number is actually.. 17.5 the numbers are 4 diget, but is only from 0 - 100.. so, 0010 is 1.0, 0100 is 10.0, 1000 is 100.0 etc.. |
Author: | RoseThorn [ Sat May 20, 2006 8:44 am ] |
Post subject: | |
Quote: Anyways, the 0175 number is actually.. 17.5 the numbers are 4 diget, but is only from 0 - 100.. so, 0010 is 1.0, 0100 is 10.0, 1000 is 100.0 etc..
That's exactly what he wanted to know, thanks ![]() |
Author: | Stormcrow [ Sat May 20, 2006 10:36 am ] |
Post subject: | |
Actually I don't know about the decimal place on the weight (it does stand to reason as the rest of the program handles numbers like that). At any rate it is moot, because what matters in this calculation is the numbers in relation to the rest of the numbers. Frequency (or weight in mapgenerator) is like the number of times we throw their token in the hat. Then we pick 1 at random. |
Page 1 of 1 | All times are UTC - 7 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |