[SOLVED] Change Luck's Effect

Howdy!

I just started working on a game through RPG Maker VX Ace, and I noticed that Luck (LUK) determines the change that you are affected by a state or not?

I was wondering if I could change that?

I want Luck to determine whether you can hit, crit and dodge.

If anyone could help me change that, it'd be great!

Thank you!

 ~Fons te Winkel

P.S.: I am new to Ruby, but familiar with C++ and Game-Maker's scripting language, so I know something about programming, just not with Ruby in particular, please keep that in your head when you are trying to explain me something?
There is a script that allows you to change a lot in the formulae:

http://yanflychannel.wordpress.com/rmvxa/core-scripts/extra-param-formulas/

If you're only after a few specific changes, it might be better to change the original default scripts in those parts instead of adding en entirely new script that changes a lot of other options as well. But if you consider changing several things, then it might be easier to use the linked script.

And in any case, the linked script should also point you into the correct area for changing the values and formulae without the script as well.
Wow, I've competely missed that one!

Thanks a lot!

(do you know by any change if the script can look at the opponent's stats too?

For example: a.luk / b.luk * 100 - 100 = hit rate ??)

Thanks anyways, this helps a lot!

EDIT:

 ~Fons te Winkel
Wow, I've competely missed that one!

Thanks a lot!

(do you know by any change if the script can look at the opponent's stats too?

For example: a.luk / b.luk * 100 - 100 = hit rate ??)

Thanks anyways, this helps a lot!

EDIT:

 ~Fons te Winkel
The term "a." refers to the battler (player or enemy) performing the action, and the term "b." refers to the target(s) of the action (player or enemy), so yeah it affects/checks stats of both. It would work fine.
The term "a." refers to the battler (player or enemy) performing the action, and the term "b." refers to the target(s) of the action (player or enemy), so yeah it affects/checks stats of both. It would work fine.
No, I've found it!

"a." and "b." go for damage formulas in items and skills.

But I have searched the original hit and critical rates, and turned then into "self.luk / luk * 100 - 100", and that seems to work perfectly. (didn't need Yanfly's script apparently, it kinda confused me too)
Wait a minute, were you able to make the luck stat affect just your critical hit rate by changing the orignial script or not?

Original thread: https://forums.rpgmakerweb.com/threads/solved-change-lucks-effect.19678/