diff --git a/test.game b/test.game new file mode 100644 index 0000000..678a150 --- /dev/null +++ b/test.game @@ -0,0 +1,147 @@ +{ + "Explorateur": { + "taille": 3, + "connaissances": [], + "objets": [ + { + "nom": "tentative", + "qty": 3 + } + ] + }, + "Territoires": { + "Lieux": [ + { + "nom": "Énigme", + "description": "lieu de départ", + "deposable": "(false)", + "depart": "(true)", + "fin": "(false)", + "connaissances": [], + "personnes": [ + "Sphinx" + ], + "objets": [] + }, + { + "nom": "Succès", + "description": "lieu succès", + "deposable": "(false)", + "depart": "(false)", + "fin": "(true)", + "connaissances": [], + "personnes": [], + "objets": [] + }, + { + "nom": "Échec", + "description": "lieu échec", + "deposable": "(false)", + "depart": "(false)", + "fin": "(true)", + "connaissances": [], + "personnes": [], + "objets": [] + } + ], + "Chemins": [ + { + "lieu_in": "Énigme", + "lieu_out": "Succès", + "ouvert": "(true)", + "visible": "(connaissance_Réussite==1)", + "obligatoire": "(false)", + "connaissances_gift": [], + "objets_gift": [], + "objets_conso": [], + "descriptions": [ + { + "texte": "Le chemin de la victoire !", + "condition": "(true)" + } + ] + }, + { + "lieu_in": "Énigme", + "lieu_out": "Échec", + "ouvert": "(true)", + "visible": "(objet_tentatives==0)", + "obligatoire": "(false)", + "connaissances": [], + "objets": [], + "objets_conso": [], + "descriptions": [ + { + "texte": "Le chemin de la loose !", + "condition": "(true)" + } + ] + } + ] + }, + "Objets": [ + { + "nom": "tentative", + "taille": 1, + "visible": "(true)", + "descriptions": [ + { + "texte": "permet répondre une question du sphinx", + "condition": "(true)" + } + ] + } + ], + "Connaissances": [ + { + "nom": "Réussite", + "descriptions": [ + { + "nom": "Permet de se casser de là", + "condition": "(true)" + } + ] + } + ], + "Personnes": [ + { + "nom": "Sphinx", + "visible": "(true)", + "obligatoire": "(true)", + "interactions": [ + { + "connaissances_gift": [], + "objets_gift": [], + "visible": "(true)", + "actions": [ + { + "connaissances_gift": [ + "Réussite" + ], + "objets_gift": [], + "objets_conso": [ + { + "nom": "tentative", + "qty": 1 + } + ], + "visible": "(true)" + }, + { + "connaissances_gift": [], + "objets_gift": [], + "objets_conso": [ + { + "nom": "tentative", + "qty": 1 + } + ], + "visible": "(true)" + } + ] + } + ] + } + ], + "Transformations": [] +} \ No newline at end of file diff --git a/workspace/game/src/xtext/Game.xtext b/workspace/game/src/xtext/Game.xtext index 4cbd8da..0389fe3 100644 --- a/workspace/game/src/xtext/Game.xtext +++ b/workspace/game/src/xtext/Game.xtext @@ -92,8 +92,8 @@ Personne: '}' ; -Interraction: - 'Interraction' +Interaction: + 'Interaction' '{' actions+=Action+ connaissances+=Nom*