[XP] critical rate

Started by chaucer, March 06, 2012, 09:17:13 am

Previous topic - Next topic

chaucer

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?

KK20

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

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

G_G

Critical Hit rate is calculated when the attack occurs. Not before.

chaucer

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.

ForeverZer0

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?
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

chaucer

 :facepalm: lol didnt see that reply alright well thanks anyways lol