Code:
if state 1 apply state 2
elsif state 2 apply state 3
elsif state 3 refresh state 3
else apply state 1.if state 1 apply state 2
elsif state 2 apply state 3
elsif state 3 refresh state 3
else apply state 1.if state 1 apply state 2
elsif state 2 apply state 3
elsif state 3 refresh state 3
else apply state 1.a.state?(1) ? a.add_state(2) : a.state?(2) : repeat many times you wantx=14;a.state?(14) ? x=15 : a.state?(15) ? x=16 : a.state?(16) ? x=16 : a.add_state(x);a.add_state(x)def selection_state(a,b)
#--------------------------------------------
# State ID to check => State ID to add
# Edit here:
#--------------------------------------------
states = {
2 => 3,
3 => 4,
4 => 5,
}
#--------------------------------------------
states.keys.each do |state_id|
if a.state?(state_id)
a.remove_state(state_id)
a.add_state(states[state_id])
return <damage formula here> # <-- Edit here
end
end
# Else
a.add_state(<whatever you want>) # <-- Also here
return <damage formula here> # <-- Also here
endselection_state(a,b) states = {
14 => 15,
15 => 16,
16 => 16,
}