I've been trying to find a way to display the players critical chance number cant seem to figure it out. any help? i'm trying to fit it into
"#{critical % would be here}"
anyone know of a way to show the critical rate?
Depends on where you want it posted and how critical rate is calculated. RMXP default critical rate requires the attacked monster's agility.
You can also use the method .to_s
Critical Hit rate is calculated when the attack occurs. Not before.
I've modified the it a little here's what i did and i'm tryin to display it in wizered67's ultimate mouse menu i wasnt sure how to display the number i'm using "#{ }" to display the number i tried "#{"#{$game_actors[1].rand(100) < id"}}" and a few other ways
if rand(100) < 5 * attacker.agi / self.dex + [Integer((agi - 1)*1), 0].max
self.damage *= 2
self.critical = true
i tried a few way's of displaying it none worked any idea's? just cant figure out the way to display the number.
Quote from: game_guy on March 06, 2012, 04:00:41 pm
Critical Hit rate is calculated when the attack occurs. Not before.
How do you plan to show a stat on a menu that is calculated based off the current enemy being attacked?
:facepalm: lol didnt see that reply alright well thanks anyways lol