Save-Point
Increased critical hit rate by a script - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: Increased critical hit rate by a script (/thread-5218.html)



Increased critical hit rate by a script - Eagleeye1990 - 07-15-2014

Hey folks, just signed in. Quite a nice community!
At the moment im working on a project. (RPG XP) Iam in need of a script which increases the critical hit rate when the acotr is inflicted with a state.
Im talking about this:
Actor is inflicted with state 21 (for example). Now his critical hit rate increases about 50%.
The rate of icreasement of the critical hit should be defined by me. As well as the state id.

I need it for the rpg xp.
I hope you can help me guys!! :)


RE: Increased critical hit rate by a script - KasperKalamity - 07-15-2014

set the state to make dexterity 150%


RE: Increased critical hit rate by a script - MechanicalPen - 07-15-2014

Critical hits apply only to attacks and not skills mind, but yes that is the easiest way to do it!

critical hit formula is (4*Attacker‘s DEX/Target‘s AGI)%

fyi if you want to learn how to do interesting things in battle, this is a good read http://rmrk.net/index.php/topic,76.0.html


RE: Increased critical hit rate by a script - Eagleeye1990 - 07-16-2014

No, you didint understand me.

I know that cirtical hit only happens with a normal attack. I didint ask for a skill which makes critical hit.
I want a little script, that adds a status which raises the chance to critical hit once the player is inflicted with this status.
How hard is this to understand?


MechanicalPen: What does this have to do with me? Nothing.


RE: Increased critical hit rate by a script - MetalRenard - 07-16-2014

Before dismissing everyone as wrong and "not understanding", then sounding a little offensive by saying "how hard is it to understand", have a look into what they're suggesting.
Kasper is actually correct: http://www.rpg-maker.fr/dl/monos/aide/xp/index.html?page=source%2Frpgxp%2Frules.html
According the the formula here, increasing the dexterity would increase the chance of a critical hit. Therefore you need an event that increases the character's dexterity during battle and that would solve your issue.

Furthermore, I typed "rpg maker xp critical hit" into Google, clicked the first link and got a forum with a link to Victor Saint's Critical Hits Effects script.
http://victorscripts.wordpress.com/rpg-maker-vx-ace/gameplay-scripts/critical-hits-effects/
Here you go.

This community is nice, you're right, so please treat everyone with respect.


RE: Increased critical hit rate by a script - Eagleeye1990 - 07-16-2014

First of all: Im not offened at all. I feel sorry If I sounded a bit angry.

Im gonnna recheck what mechnialpen has posted as a link.
But I really asked for a clear script and not for a little change by adding DEX.

And to you: The download of the site you posted is broken.
But I am pretty sure, that your posted script is for RPG VX.

I try my best respecting everyone


RE: Increased critical hit rate by a script - MetalRenard - 07-16-2014

Increasing dexterity doesn't need a script though, that's what I mean. You can create an attack that gives the state "crit up" or something, then make that state give 150% dexterity. Done! :)

Oh and the link was a VX script, my bad.


RE: Increased critical hit rate by a script - KasperKalamity - 07-16-2014

yeah everyone on the internet is way too script happy. figuring out as much as you can without turning to scripts keeps them from becoming a crutch. not every script is compatible with every other script, so you're best off doing as much as possible without scripts first.


RE: Increased critical hit rate by a script - MechanicalPen - 07-16-2014

Alternatively, you could learn how to script yourself, then you could do anything.