Making a secret stat

Hello everyone! 

I am currently trying to make a secret stat via eventing / variables. 

I'm trying to make a hidden stat that is based around the hero's Luck stat that does random things in combat (Let's call it "Bonus")

As of right now, my common event has a 1/30 chance of triggering on a skill use (the skill calls this common event), yet I am looking to make it so that the Hero's Luck stat gradually increases the chance of it triggering, and it stopping at a 1/10 chance. if it helps at all, the max stat in my game is 255. 

I am completely stumped on the formula / eventing on how to do this (I am absolutely atrocious at math). 

I am also a visual learner, so screen shots are VERY much appreciated!

Thank you so much in advance! 
please show us a screenshot of your event so far - this is usually done with a sequence of control variable commands, but it depends on your event structure where and how to use them.
If you just need the math formula, try ((x/127)+1)/30. Its not exact, but it rounds to about where you want.
So, Is this about how my common event should work?

l7RBdbi.jpg
How do you want the evolution of the triggering chance ? Linear ? exponential ? logarithmic ?

This is how i see your system :

You generate a number between 1 and 100. 

You calculate the % of chance for your event to happen

if the random number is below the % of chance, the event triggers.
I think Linear? I'm looking for the bonus to trigger based around the hero's luck, starting with a 1/30 chance, and at max luck (255), I want it to be a 1/10 chance of triggering. 
Try something like this : 

variable1 = luck

Variable1 *= 275

Variable1 += 29725

Variable2 = randomNumber between 1 and 1000000

If Varible1<Variable2, then the event trigger

(I calculate this by setting your starting luck at 1)

EDIT : I didn't see that Zetu already gave you a formula. it works too, but it seems variables can only store integrer values, so i'm using only integrer. I can be wrong on this.
I'm really sorry, but I am still having some difficulty with this. the formulas don't seem to be doing anything, even if I set it to a 1/1 chance to trigger..
Maybe I'm reading the screenshot wrong, but... are you checking against a variable, or the character's LUCK stat?

Though, unless MV works drastically different than what I'm used to with RPG Maker engines, it's going to round the results of each math-related event-command to the lowest integer. So, for instance, if Seth's LUCK is less than 127, the event-command where it divides Seth's LUCK by 127 will make that variable 0.

I hope this helps!
Something just come up to my mind. Your skill call a common event, which calculate if the event really trigger, right ? Whant does your bonus is doing exactly ? Because while in combat, what you can do with events is limited...

The % chance system is working for me (i didn't try to see if it was really 1/30, but the "Doesn't happen..." ocur really often ^^) :

Spoiler
1451031195-capture.png


1451031160-capture.png


1451031133-capture.png
Spoiler
So, Is this about how my common event should work?


l7RBdbi.jpg
2eal5kz.png

Original thread: https://forums.rpgmakerweb.com/threads/making-a-secret-stat.53601/