Luck Stat Comparison Event

I am using RPG Maker MV 1.2.0


I want to create an event where someone asks my character a question. When they are finished, you have the ability to lie or tell the truth.


If you lie, it will take the event's luck and add a random number between 1-20, and the player's luck and add a random number between 


1-20. Afterward it will compare the two numbers and if the player's number is higher than the event's, they will pass the test and continue 


forward in the conversation like normal. If they fail, the event will get mad at them.


How can I do this? And is it possible to do it without a java script?


(This is my first post ever(in any forum), so I apologize if it is not in the right place. Thanks for any help you can give.)
yes - this is just a series of control variable commands to load the stat data, to perform mathematical operations on it and to generate a random number. all those options are part of that event command.


And then just a conditional branch comparing two variables
Thank you very much Andar,


Do you know of any tutorials on the subject? I am a bit of a visual learner. If not, I can experiment until I figure it out. 
Follow the link in my signature ("Starting Point"). It lists a lot of good tutorials to learn the basics - the important one here is the variables guide (which is a game you play first to see what can be done, and then open it to check the correct event coding of it).
Thanks a lot! I am about to check it out.
Ok, 


I have learned how to call up a random number between one and twenty and add it to agility. I have learned how to do the same for the event. I still am stuck


on how to compare these two and create a branch. Can I get help on this possibly?
Ok, with a lot of help from tutorials (thanks Andar) I have finally found out how to do the stat comparison on my own.


If anyone else searches for this forum and wants to know how to do this without looking at lots of tutorials, I made a


tutorial video on youtube. It is highly detailed and footnoted for time marks under the video. Hope this helps any future


game makers. Thanks again!


youtube link: 

Original thread: https://forums.rpgmakerweb.com/threads/luck-stat-comparison-event.65872/