Question regarding luck and effects.

Miyoko

Villager
Member
Joined
May 9, 2014
Messages
20
Reaction score
0
First Language
English
Primarily Uses
Hopefully I'm writing this in the right place...


So I am currently looking to change the effect of luck in my game, as I am sure many people have done before. My game uses low number power creep, in that statistical values are pretty small, so having a single point in strength causes a noticible difference. Enter luck.


So I know the effect of luck can be found in game_battler as follows:


def luk_effect_rate(user)
    [1.0 + (user.luk - luk) * 0.001, 0.0].max
 end


As it stands, there needs to be a -huge- difference in the users luck vs targets luck for there to be a noticible, or even moderate chance if status application.


I'm still unexperienced in programming. I am not entirely sure which part of the formula is doing what. If I wanted to change it so that a single point difference in luck was causing a 1% raise/lower status affect chance, what would I change the formula to?


Additionally, I want to add to the effect of luck, so that 1 luck = 1 crit%. I know this can be done with scripts like yanfly's https://yanflychannel.wordpress.com/rmvxa/core-scripts/extra-param-formulas/ but, if I do use that, will it overwrite and negate the base effect of luck?


I appreciate any help!


~


Additionally, while I'm here (and totally unrelated), is there a way to make combat text at the top of the screen not scroll by automatically, but rather, require a button input?
 

Faryn

Villager
Member
Joined
Sep 15, 2016
Messages
13
Reaction score
10
First Language
English
Primarily Uses
You will need to change it to:


[1.0 + (user.luk - luk) * 0.01, 0.0].max


0.01 = 1%.


Yanfly's script shouldn't conflict with Luck's original purpose. (But do remember that, for 1 Luck = 1% Critical, you need to use "luk * 0.01". Mentioning it because it's a common mistake. :3)
 

Miyoko

Villager
Member
Joined
May 9, 2014
Messages
20
Reaction score
0
First Language
English
Primarily Uses
You will need to change it to:



[1.0 + (user.luk - luk) * 0.01, 0.0].max


0.01 = 1%.


Yanfly's script shouldn't conflict with Luck's original purpose. (But do remember that, for 1 Luck = 1% Critical, you need to use "luk * 0.01". Mentioning it because it's a common mistake. :3)
Perfect! Thanks for the help, Faryn!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top