Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | nationality |
Suppose I want to make an external level editor for a game. I want the creator to be able to script triggers using a code editor, but using commands that are relevant to the engine to reduce the complexity for users. e.g.
Trigger:
if x == y:
Effect
The editor’s compiler will then translate this into something that gdscript could understand, example:
func trigger():
if x == y:
return true
How do I then programmatically compile this into a working script? Is there any documentation for doing something like this?