Salut,
Ya 2 moyen:
on entity shoot:
if event-entity is a player:
if {arrow.%attacker%} is true:
set {_r} to a random integer between 1 and 4
if {_r} = 1:
apply poison to the event-entity for 6 seconds #ton code du poison
if {_r} = 2:
#ton code fire
if {_r} = 3:
#ton code faiblesse
if {_r} = 4:
stop #ca fait rien
# OU SINON
chance of 25%:
#ton code fire
chance of 25%:
#ton code faiblesse
chance of 25%:
#ton code poison
chance of 25%:
stop #ca fait rien
#Ci le truc avec les "chance of 25%:" marche pas, fait comme ca:
chance of 25%:
#ton code fire
chance of 50%:
#ton code faiblesse
chance of 75%:
#ton code poison
chance of 100%:
stop #ca fait rien
Code non testé mais ca dois marcher :)