Making and Importing Custom Cards

I enjoy using Magic Set Editor, and have made a script for the program in the past that allows users to export their cards for use on Cockatrice. What I'd love to be able to do next is be able to do the same with Forge.
I've seen how cards are scripted, and its a bit boggling. What are some good ways of learning to script the cards, as well as importing custom cards for use in Forge? I feel lost in learning how.
I understand it would bring in a mess of user made errors, yet I'd still like to learn how cards are scripted, and how I could apply myself into eventually making a program which lets users easily construct card scripts using an editor rather than doing it manually.
I've seen how cards are scripted, and its a bit boggling. What are some good ways of learning to script the cards, as well as importing custom cards for use in Forge? I feel lost in learning how.
I understand it would bring in a mess of user made errors, yet I'd still like to learn how cards are scripted, and how I could apply myself into eventually making a program which lets users easily construct card scripts using an editor rather than doing it manually.