Alistair

Treasure Hunter
Veteran
Joined
Jun 15, 2014
Messages
283
Reaction score
198
First Language
English
Primarily Uses
RMMZ
~ Critical Hit~​
 ​
For the latest updates please visit my blog. I won't update this thread anymore.
 ​
This script will allow you to control Critical Hits a little more.

It will provide you with two Notetags:

<critical: +x%> and <critical_damage: +x%>

The first one will raise/lower the skill's critical hit chance by x%.

The second one will raise/lower the skill's critical hit damage by x%.

You may change the default formula for critical damage as well. By default, a critical hit will multiply the damage by 3.

The script will allow you to use a formula instead if you desire. This will enable you to have even greater control over the critical damage.

Instructions:

Place this script below most of your other scripts. I mostly only use Yanfly Scripts so there MAY be compatibility issues with other scripts which modify the same methods.

Technical Stuff inside.

I didn't redefine the all famous make_damage_value which most combat scripts alter, because it would totally break compatibility with those scripts. Instead I was able to alias make_damage in Game_ActionResult. It shouldn't break anything, since it's aliased.
Screenshot:

Can't really show anything but for the sake of clearness, here you are.


This skill will have a high chance of inflicting a critical hit but its critical damage is reduced to 20% in compensation.

Script:

Get it at my Dropbox.

Changelog:

V1.1.1

Changes:

- It should not crash anymore if you choose a skill from the menu (e.g. using Heal outside of Battle)

- It should no longer only grab the very last state's critical damage.

V1.1

Changes:

- States can now increase a battler's critical damage!
Future Versions:

As always: I'm open for ideas but I cannot guarantee anything.

Thanks to:

- Yanfly for his scripts from which I've learnt a lot about scripting

Terms of Use:

Direct link to my Terms of Use document: CLICK
 
Last edited by a moderator:

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,958
Reaction score
1,354
First Language
English
Primarily Uses
RMMV
Thank you so much, Alistair! I've been looking for a Crit Control script, but the only one that seems to be out there is Victor's but his conflicts with everything I have so I couldn't use them.

Also would there be a way to to add the notetags to states too?
 
Last edited by a moderator:

Alistair

Treasure Hunter
Veteran
Joined
Jun 15, 2014
Messages
283
Reaction score
198
First Language
English
Primarily Uses
RMMZ
  • A state can increase critical hit chance by default. No script needed.
  • I don't know if it's possible for a state to increase a specific skill's critical hit chance. It most likely is possible somehow but I will have to look into that.
  • Having a state raise the critical damage of a hero sounds rather simple at first. I'll look into it.
I think I went through everything or were you talking about something else?
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,958
Reaction score
1,354
First Language
English
Primarily Uses
RMMV
Nope your right. I completely forgot about that option :p
 

Alistair

Treasure Hunter
Veteran
Joined
Jun 15, 2014
Messages
283
Reaction score
198
First Language
English
Primarily Uses
RMMZ
Oh I see. Well I've updated the script anyway.

See the first post for more information.
 

Alistair

Treasure Hunter
Veteran
Joined
Jun 15, 2014
Messages
283
Reaction score
198
First Language
English
Primarily Uses
RMMZ
Fixed some bugs, new version is up.

See the first post for more information.
 

Latest Threads

Latest Posts

Latest Profile Posts

You know.. I... I kinda lost my interest in living a long time ago. What sustains me is a lack of interest in dying.
Like a star that is balanced between the forces of gravity and outward pressure, I feel like the energy to produce that outward pressure is weakening. I feel like I should pull a Stardew Valley and revert to a more primitive lifestyle, away from others. :(
made more sprite for the Time passing game that I may or may not actually make. At least now I have a better idea how to make Rtp Walk sprites actually look wrinkly and old, since the Generator doesn't do that.
Well, now all of my Refreshable Events scripts also feature some brand new demos to let people see how easy it is to let the script handle the refreshing of a given set of events. All of this with just one specific script call per event!
Sorry Kitty...I'm practicing my harmonics. RIP your ears.
I noticed they now have a Gremlins cartoon. Nothing like striking when the iron is hot then trying to make a reboot from a movie made 34 years ago.

Forum statistics

Threads
131,585
Messages
1,221,264
Members
173,284
Latest member
untamedeventuality
Top