Is it possible for someone to hack into an MMF2 game's code and see the object names and event scripting, etc.? If it is, is there any good way to prevent this from happening?
There is no available decompiler for MMF2 EXE files.
You might be able to read so strings included in the exe such as the object names but not the script itself.
In the age of MMF1.5 Clickteam had a decompiler for MMF exes for private in-Clickteam use, however the decompiler and its source were lost.
I'm not exactly sure how compiled code works, but would it actually keep the names of objects and the like? I'd assume such things would be strictly for the advantage of the game's creator while making the thing, and that they would be lost upon compiling, or at least converted to something a little more... efficient for its needs.