Jump to content

Weighted RNG: Difference between revisions

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 Objective 75 1 25 2


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