Stat skills

Hey guys/gals, I need a bit of help with something that I had an idea for in my game. I want to make some skills that look at specific things in game. For example one of the skills looks at the users attack stat and compares it to the targets stat. If the users stat is higher then the damage is doubled, but if the targets stat is higher then the damage is cut in half. Same goes for the magic attack skill and a status skill will look at the hp. If anyone knows how this would be done please let me know. Thanks for the help.
damage formula coding, there is a specific pinned topic for this on the forum.
basically you need the RGSS-code for "if a.atk>b.atk then r=2*dmg else r=dmg/2;r"
damage formula coding, there is a specific pinned topic for this on the forum.
basically you need the RGSS-code for "if a.atk>b.atk then r=2*dmg else r=dmg/2;r"
Where would I start looking?
Search for "damage formula vx ace" on this forum and read through the pinned tutorial topic I mentioned above
Search for "damage formula vx ace" on this forum and read through the pinned tutorial topic I mentioned above
Still a bit confused. Looked for it by searching and nothing came up. Am I doing something wrong?

Original thread: https://forums.rpgmakerweb.com/threads/stat-skills.134158/