Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: chaucer on March 06, 2012, 09:17:13 am

Title: [XP] critical rate
Post by: chaucer on March 06, 2012, 09:17:13 am
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?
Title: Re: [XP] critical rate
Post by: KK20 on March 06, 2012, 03:55:39 pm
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
Title: Re: [XP] critical rate
Post by: G_G on March 06, 2012, 04:00:41 pm
Critical Hit rate is calculated when the attack occurs. Not before.
Title: Re: [XP] critical rate
Post by: chaucer on March 06, 2012, 05:19:18 pm
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.
Title: Re: [XP] critical rate
Post by: ForeverZer0 on March 06, 2012, 06:50:09 pm
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?
Title: Re: [XP] critical rate
Post by: chaucer on March 06, 2012, 09:42:52 pm
 :facepalm: lol didnt see that reply alright well thanks anyways lol