10-24-2010, 05:54 PM
(This post was last modified: 10-24-2010, 07:30 PM by corpsegirl.)
I tried looking at it but none of the terms I used seemed to work. I'm not sure how to call the stats an do math to them.
I think tahts what I need to change. how do I call a stat + a stat? I'm not sure what the line n *= $data_states[i].hit_rate / 100.0 is doing.
maybe I should be lookign in game battler 3 in this section instead?
I need I need hit_result to be
so say both def stats are 10 and both att stats are 5 that total is 60 rand needs to be 60 or less to hit. I'm not sure how to call the stats for the formula.
*From DerVV: I just wrapped your script samples in CODE bbcode.
Thanks. I should have used the,. Sorry for the inconvenience.
Code:
def hit
n = 100
for i in @states
n *= $data_states[i].hit_rate / 100.0
end
return Integer(n)
end
I think tahts what I need to change. how do I call a stat + a stat? I'm not sure what the line n *= $data_states[i].hit_rate / 100.0 is doing.
maybe I should be lookign in game battler 3 in this section instead?
Code:
#--------------------------------------------------------------------------
# First hit detection
hit_result = (rand(100) < attacker.hit)
# If hit occurs
if hit_result == true
I need I need hit_result to be
Code:
hit_result ((rand(100)) < (50 + (def stat + def stat) - (att stat + att stat) + element bonus/penalty)
*From DerVV: I just wrapped your script samples in CODE bbcode.
Thanks. I should have used the,. Sorry for the inconvenience.