this system becomes very handy when you need to implement an AI, from simple to complex:
http://www.gamasutra.com/blogs/ChrisSimpson/20140717/221339/Behavior_trees_for_AI_How_they_work.php


Free world editor for 3D Gamestudio: MapBuilder Editor