I'm trying to create a plugin where Events and Actions get set after being created, during run time.
How do I go about doing this in the Javascript of my plugin?
How do I edit the Event sheet at runtime?
Develop games in your browser. Powerful, performant & highly capable.
You can't. Events are statically analysed and optimised at startup for performance reasons, so it would be extremely difficult to support this. Why on earth would you want to do that anyway? Morphing code is a really hard way to do anything useful.
You might design functions in event sheet, and call them at run-time by command strings, which could be read from external file, like this 3rd plugin.