Luck Stat Clarification

darkmatter404

Villager
Member
Joined
Feb 2, 2014
Messages
28
Reaction score
4
First Language
English
Primarily Uses
Hey all. I'm trying to make luck in my game the primary way to increase status effect chance on your abilities, but I'm not sure exactly what the formula "Math.max(1.0 + (user.luk - target.luk) * 0.001, 0.0)" is doing.

I know that it means every 100 points of difference between your luck and their luck adds a 1% status effect chance, but that's where I'm confused. If I change that formula to "Math.max(1.0 + (user.luk - target.luk) * 0.1, 0.0)," does that mean every point of luck over my opponents adds a 1% chance to my base status effect chance?

One more question. If I have 10 more luck than my opponent with the above formula, would that be a flat 10% increase to all status effect chances inflicted on them or would it multiply my status effect chance by 1.10? (if its a base 50% status effect move, would it be 50% + flat 10%, or 50% x 1.10 for 55%?) Luck is extremely important in my game so I need to get it right.

Thanks for reading.
 

Doktor_Q

I'm not a real doktor, but I am a real Q
Veteran
Joined
Aug 1, 2016
Messages
873
Reaction score
562
First Language
English
Primarily Uses
RMMV
To break down the formula: 1.0 is 100%, so 0.001 is 0.1%. user.luk - target.luk gives you the advantage / disadvantage. The 0.0 is just a minimum value so things don't go negative, not very relevant to us.

So it reads something like this: "100% base + 0.1% per luck difference", or "100% + 1% per 10 luck"
So 0.01 would make it 1% per luck, 0.1 would make it 10% per luck, and 1.0 would make it 100% per luck difference and that's probably too much.
Because it starts at 100%, you can pretty much immediately assume it's multiplicative- so if I get enough luck for the formula to spit out 1.2, and the status effect has a 50% base chance, I would actually have a 60% chance to inflict, assuming the enemy wasn't resistant.
 

darkmatter404

Villager
Member
Joined
Feb 2, 2014
Messages
28
Reaction score
4
First Language
English
Primarily Uses
Gotcha. So it's multiplicative and 0.1 = 10% bonus. Since stats in my game cap at 20 (and few characters will spec that far into one stat) I think I'll go with 0.1 per point. Thank you so much for the quick reply.
 

mathmaster74

just...John
Veteran
Joined
Jun 12, 2016
Messages
285
Reaction score
193
First Language
English
Primarily Uses
RMMV
@darkmatter404 Are you using this skill for both actors and enemies?

EDIT: status effect chance both ways?
 

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