Before you can start using MacroLua, the first thing you need to do is install and configure a supported emulator. For arcade games, your primary choices are FBA-RR and MAME-RR. Both work fine, so choose whichever one you’re familiar with.
Due to the sheer number of built-in commands, the default control settings tend to have some overlapping key assignments. Sort those out first. For instance, FBA-RR has Load State 2 and Diagnostic both assigned to F2. Likewise, they have Load State 3 and Reset assigned to F3.
My general advice is clear everything that doesn’t look useful at first glance. The less clutter you have to deal with, the better. You can always add more stuff later.
You’ll be using Reset a lot, and you’ll need Diagnostic as well, so either map those to different keys, or remove the Load State assignments. It’s also a good idea to clear whatever hotkey is assigned to Tab, because you’ll be using Alt+Tab frequently to switch back and forth between your emulator and your script file.