I think you'd probably get a bit better performance for complex algorithms than the event editor. You could also write re-usable functions.

For example, pathfinding is very CPU heavy, it would be...