Oh and thanks for checking into the actor chances too, that'd be a nice thing to have as well
No I think we are thinking of different things. I'm not really sure what you would want with actors.
What I meant was the percentage change getting adjusted based on the actors item or skill being used.
I quickly found what data to use to find that.
So this...
Spoiler: script
Ruby:
class Game_BattlerBase
#-----------------------------------------------------------------------------
# Create the state rate popup.
#-----------------------------------------------------------------------------
def make_state_chance_rate_popup(user, item, effect)
rate = state_rate(effect.data_id)
return if rate < 0 || rate >= 1.0
state = $data_states[effect.data_id]
return if state.icon_index == 0
flags = ["state", state.icon_index]
edr = (rate*100).to_i
adr = (effect.value1*100).to_i
tdr = (edr*adr/100).to_i
return if tdr < 0
text = "#{tdr}% #{state.name}"
rules = "DEFAULT"
create_popup(text, rules, flags)
end
end
class Game_Battler < Game_BattlerBase
def item_effect_add_state_normal(user, item, effect)
old_states = @states.clone
make_state_chance_rate_popup(user, item, effect)
th_state_rate_popup_item_effect_add_state_normal(user, item, effect)
new_states = @states - old_states
make_state_rate_popup(effect.data_id) unless dead? || new_states.include?(effect.data_id)
end
end
will process some data and give you this...
based on a similar set of percentages like what you provided.
All I did with this was a
basic calculation Found that most people say this is multiplicative not additive. Not that I am sure it is accurate. I'll have to investigate more to see if there is something going on that actual controls what the chance of the enemy getting the state applied to it actually is. since 89% chance of poison seems ok and 15% chance of silence getting applied where it does not seems correct. Seems the formula hidden in the code is Chance (%) = 100 + (user's luck - target's luck) ÷ 10
Then that somehow gets applied to the state rate chance.
Now the code above is also not condensed as it is passing data that is not used. But it may be used depending on what else you want or if you can explain what you wanted with actors.