Weighted RNG: Difference between revisions
Appearance
Fixed the page |
m Changed some stuff ig |
||
| Line 1: | Line 1: | ||
Weighted RNG works by doing /scriptevent leaf:weighted_rng | Weighted RNG works by doing /scriptevent leaf:weighted_rng | ||
'''Example:''' | === '''Example:''' === | ||
/scriptevent leaf:weighted_rng <objective> 75 1 25 2 | |||
/scriptevent leaf:weighted_rng | |||
that's a 75% chance for 1 and a 25% chance for 2 | that's a 75% chance for 1 and a 25% chance for 2 | ||
'''For multiple numbers''' | ===== '''For multiple numbers''' ===== | ||
25 1 25 2 30 3 20 4 | 25 1 25 2 30 3 20 4 | ||
| Line 18: | Line 16: | ||
20% chance for 4 | 20% chance for 4 | ||
Latest revision as of 04:08, 17 November 2026
Weighted RNG works by doing /scriptevent leaf:weighted_rng
Example:
/scriptevent leaf:weighted_rng <objective> 75 1 25 2
that's a 75% chance for 1 and a 25% chance for 2
For multiple numbers
25 1 25 2 30 3 20 4
25% chance for 1
25% chance for 2
30% chance for 3
20% chance for 4
not all percentages need to add up to 100% but results can become unpredictable
- Techna
PS: Trashy was high asf making this