Below you see 'MGSecretCode'
Any minigame can be started via an action (as part of activating a structure or choosing a response option in dialogue), and using simple syntax:
o.miniGame({type:"SecretCode",secret:"revel",success:function(){ /*result here*/ }});
Mini-games will be used to 'break out' of the normal in-map gameplay mechanics.
For simple things such as choosing options, entering text; or more complex things such as lock-picking, piecing together notes, pattern matching, etc.
This gives us a bit more leverage in how to implement parts of quests and secrets in the game.
Very nice.