Salut à tous,
J’en ai parlé sur un autre fil, je suis en train de rédiger une CYOA. Pour débuter, et histoire d’avoir un truc « interactif » facilement, j’ai choisi de travailler avec l’extension Adventure Book par Edward Griffiths, en Inform 7.
inform7.com/extensions/Edward%20 … index.html
J’ai donc commencé avec un exemple de la doc :
"The Hello World Story" by Edward Griffiths
Include Adventure Book by Edward Griffiths
The First Page is a page.
"You are at the beach. What would you like to do?"
A choice called TheFirstPageA is for The First Page. "Go for a walk." It triggers Go Walking.
A choice called TheFirstPageB is for The First Page. "Build a sand castle." It triggers Building a Sandcastle.
A choice called TheFirstPageC is for The First Page. "Go for a swim." It triggers Go Swimming.
Avec I7 6L38. Problème, ça ne compile pas…
J’ai donc retiré la ligne en question du code de l’extension :
[code]To rebuild the list of choices:
repeat through the Table of Options:
blank out the whole row;
repeat with possibility running through choices offered by the current page:
if the possibility is valid and the possibility is not a use:
choose a blank row in the Table of Options;
[change option entry to the possibility; retiré par Yoruk]
To decide if (possibility - a choice) is valid:
repeat with x running through flags required by possibility:
if x is off, decide no;
repeat with x running through flags which cancel possibility:
if x is on, decide no;
decide yes;[/code]
Et là ça compile. Mais le menu devant proposer les choix au joueur n’apparait pas…
Je penche pour un souci de rétro-compatibnilité… Mais n’étant pas un expert en I7, je ne sais pas trop quoi faire. Contacter l’auteur moi même ? Tenter de corriger l’erreur ? Trouver une autre extension ?
Merci d’avance…