Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
[RESOURCE]Chance function
« previous
next »
Print
Pages: [
1
]
Author
Topic: [RESOURCE]Chance function (Read 1835 times)
Alphadin
March 03, 2013, 10:42:57 PM
http://pastebin.com/KLGYk106
USAGE
It's a chance function. It uses a .txt in the config/list folder.
Code: (Sample.txt)
[Select]
30 A
40 B
It takes the numerical values (which must ALWAYS come first), adds them together, then uses the chance to return whatever comes after the chance value. The values do NOT have to add together to equal 100. In the sample, it would return B more than A. (Aprox 42% chance of it being A, 58% chance of it being B)
«
Last Edit: March 03, 2013, 10:47:29 PM by Alphadin
»
Ad Bot
Advertisement
DYLANzzz
March 03, 2013, 10:44:43 PM
Hmm, thats pretty cool.
May find a use for it
Greek2me
March 03, 2013, 10:51:07 PM
Cool little script. I like that people are making resources.
Perlin Noise
March 03, 2013, 11:50:12 PM
Cough cough
Cool though
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
[RESOURCE]Chance function