It's absolutely possible in SMBX2, but you'd have to learn a little Lua coding for the memory. If you need help with figuring things out join the codehaus discord server and people will be happy to help!
I can't say for sure about 1.4 but I think it's possible. However, you'll probably have a harder time figuring it out due to limited learning resources for Teascript.
Jesus is my savior.