Weighted RNG: Difference between revisions
Appearance
Created page with "Weighted RNG uh works by uh doin /scriptevent leaf:weighted_rng And uh it kinda works u do uh like /scriptevent leaf:weighted_rng Objective 75 1 25 2 and thats a uh 75% chance for 1 and a 25% chance for 2 just a listo f numbers its a percentage than value repeated forever like forever forever and uh u can repeat it like 25 1 25 2 30 3 20 4 and its a 25% chance for 1 25% chancve for 2 30% chance for 3 20% cahnce for 4 not all percentages need to add up to..." |
Fixed the page |
||
| Line 1: | Line 1: | ||
Weighted RNG | Weighted RNG works by doing /scriptevent leaf:weighted_rng | ||
'''Example:''' | |||
/scriptevent leaf:weighted_rng Objective 75 1 25 2 | /scriptevent leaf:weighted_rng Objective 75 1 25 2 | ||
that's a 75% chance for 1 and a 25% chance for 2 | |||
75% chance for 1 | |||
and a 25% chance for 2 | |||
'''For multiple numbers''' | |||
25 1 25 2 30 3 20 4 | 25 1 25 2 30 3 20 4 | ||
25% chance for 1 | 25% chance for 1 | ||
25% | 25% chance for 2 | ||
30% chance for 3 | 30% chance for 3 | ||
20% | 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 | |||