Voici le livre... il y a pas mal de bugs dont je ne vois pas l'origine.
Par exemple, Linotte arrive à mélanger les "premier ticket, deuxième ticket, troisième ticket etc..." sans que je le lui ai demandé... il est évident que ça ne doit pas faire ça.
Aussi, j'ai réinitialisé les variable n1, en testant, et ca ne marche pas... les statistiques continuent donc à baisser...
Help! quelqu'un peut m'aider????^^
Livre : EuroMillions version Linotte
(Spécification Linotte 0.5.5)
Grands rôles :
choixnombretickets est un nombre vide
choixduticket est un texte vide
n1 est un nombre valant 59
n2 est un nombre valant 59
n3 est un nombre valant 59
n4 est un nombre valant 59
n5 est un nombre valant 59
é1 est un nombre valant 9
é2 est un nombre valant 9
sélections est un texte vide
Paragraphe: présentation
efface le tableau
"Pour consulter les règles du jeu, lisez le fichier ''règles de l'EuroMillions version Linotte.txt''! N'oubliez pas d'activer l'affichage des messages dans ''Edition''"!
parcours choix du nombre tickets
Paragraphe: choix du nombre tickets
"Combien de tickets voulez-vous acheter?"!
choixnombretickets ?
si choixnombretickets est égal à 0 alors parcours choix 0
si choixnombretickets est plus grand que 10 alors parcours choix c'est trop
si choixnombretickets est moins grand que 11 alors parcours choix supérieur
termine
Paragraphe : Sélection des numéros
Actions :
mélange n1
mélange n2
mélange n3
mélange n4
mélange é1
mélange é2
concatène "Voici les numéros gagants:" " ", n1, " ", n2, " ", n3, " " ,n4, " ", n5, " ", "." dans sélections
tu affiches les sélections
concatène "Voici les deux étoiles:", " ", é1, " ", é2, " ","." dans sélections
tu affiches les sélections
termine
Paragraphe : choix 0
actions:
Affiche "Très bien. Puisque vous ne voulez pas en acheter, j'en déduis que vous voulez partir. Au revoir et à bientôt!"
termine
Paragraphe: choix supérieur
si choixnombretickets est égal à 1 alors parcours choix: 1
si choixnombretickets est égal à 2 alors parcours choix: 2
si choixnombretickets est égal à 3 alors parcours choix: 3
si choixnombretickets est égal à 4 alors parcours choix: 4
si choixnombretickets est égal à 5 alors parcours choix: 5
si choixnombretickets est égal à 6 alors parcours choix: 6
si choixnombretickets est égal à 7 alors parcours choix: 7
si choixnombretickets est égal à 8 alors parcours choix: 8
si choixnombretickets est égal à 9 alors parcours choix: 9
si choixnombretickets est égal à 10 alors parcours choix: 10
termine
Paragraphe: choix c'est trop
actions:
affiche "Vous n'avez pas assez d'argent."
parcours choix du nombre tickets
Paragraphe: choix: 1
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre premier ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
termine
Paragraphe: choix: 2
concatène "Voici les numéros de votre premier ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 3
concatène "Voici les numéros de votre troisième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 4
concatène "Voici les numéros de votre quatrième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 5
concatène "Voici les numéros de votre cinquième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 6
concatène "Voici les numéros de votre sixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 7
concatène "Voici les numéros de votre septième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 8
concatène "Voici les numéros de votre huitième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 9
concatène "Voici les numéros de votre neuvième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 10
concatène "Voici les numéros de votre dixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 010
Paragraphe: choix: 02
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre deuxième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 3 alors parcours choix: 03
si choixnombretickets est égal à 4 alors parcours choix: 03
si choixnombretickets est égal à 5 alors parcours choix: 03
si choixnombretickets est égal à 6 alors parcours choix: 03
si choixnombretickets est égal à 7 alors parcours choix: 03
si choixnombretickets est égal à 8 alors parcours choix: 03
si choixnombretickets est égal à 9 alors parcours choix: 03
si choixnombretickets est égal à 10 alors parcours choix: 03
termine
Paragraphe: choix: 03
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre troisième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 4 alors parcours choix: 04
si choixnombretickets est égal à 5 alors parcours choix: 04
si choixnombretickets est égal à 6 alors parcours choix: 04
si choixnombretickets est égal à 7 alors parcours choix: 04
si choixnombretickets est égal à 8 alors parcours choix: 04
si choixnombretickets est égal à 9 alors parcours choix: 04
si choixnombretickets est égal à 10 alors parcours choix: 04
termine
Paragraphe: choix: 04
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre quatrième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 5 alors parcours choix: 05
si choixnombretickets est égal à 6 alors parcours choix: 05
si choixnombretickets est égal à 7 alors parcours choix: 05
si choixnombretickets est égal à 8 alors parcours choix: 05
si choixnombretickets est égal à 9 alors parcours choix: 05
si choixnombretickets est égal à 10 alors parcours choix: 05
termine
Paragraphe: choix: 05
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre cinquième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 6 alors parcours choix: 06
si choixnombretickets est égal à 7 alors parcours choix: 06
si choixnombretickets est égal à 8 alors parcours choix: 06
si choixnombretickets est égal à 9 alors parcours choix: 06
si choixnombretickets est égal à 10 alors parcours choix: 06
termine
Paragraphe: choix: 06
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre sixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 7 alors parcours choix: 07
si choixnombretickets est égal à 8 alors parcours choix: 07
si choixnombretickets est égal à 9 alors parcours choix: 07
si choixnombretickets est égal à 10 alors parcours choix: 07
termine
Paragraphe: choix: 07
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre septième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 8 alors parcours choix: 08
si choixnombretickets est égal à 9 alors parcours choix: 08
si choixnombretickets est égal à 10 alors parcours choix: 08
termine
Paragraphe: choix: 08
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre huitième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 9 alors parcours choix: 09
si choixnombretickets est égal à 10 alors parcours choix: 09
termine
Paragraphe: choix: 09
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre neuvième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 10 alors parcours choix: 010
termine
Paragraphe: choix: 010
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre dixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
termine
Par exemple, Linotte arrive à mélanger les "premier ticket, deuxième ticket, troisième ticket etc..." sans que je le lui ai demandé... il est évident que ça ne doit pas faire ça.
Aussi, j'ai réinitialisé les variable n1, en testant, et ca ne marche pas... les statistiques continuent donc à baisser...
Help! quelqu'un peut m'aider????^^
Livre : EuroMillions version Linotte
(Spécification Linotte 0.5.5)
Grands rôles :
choixnombretickets est un nombre vide
choixduticket est un texte vide
n1 est un nombre valant 59
n2 est un nombre valant 59
n3 est un nombre valant 59
n4 est un nombre valant 59
n5 est un nombre valant 59
é1 est un nombre valant 9
é2 est un nombre valant 9
sélections est un texte vide
Paragraphe: présentation
efface le tableau
"Pour consulter les règles du jeu, lisez le fichier ''règles de l'EuroMillions version Linotte.txt''! N'oubliez pas d'activer l'affichage des messages dans ''Edition''"!
parcours choix du nombre tickets
Paragraphe: choix du nombre tickets
"Combien de tickets voulez-vous acheter?"!
choixnombretickets ?
si choixnombretickets est égal à 0 alors parcours choix 0
si choixnombretickets est plus grand que 10 alors parcours choix c'est trop
si choixnombretickets est moins grand que 11 alors parcours choix supérieur
termine
Paragraphe : Sélection des numéros
Actions :
mélange n1
mélange n2
mélange n3
mélange n4
mélange é1
mélange é2
concatène "Voici les numéros gagants:" " ", n1, " ", n2, " ", n3, " " ,n4, " ", n5, " ", "." dans sélections
tu affiches les sélections
concatène "Voici les deux étoiles:", " ", é1, " ", é2, " ","." dans sélections
tu affiches les sélections
termine
Paragraphe : choix 0
actions:
Affiche "Très bien. Puisque vous ne voulez pas en acheter, j'en déduis que vous voulez partir. Au revoir et à bientôt!"
termine
Paragraphe: choix supérieur
si choixnombretickets est égal à 1 alors parcours choix: 1
si choixnombretickets est égal à 2 alors parcours choix: 2
si choixnombretickets est égal à 3 alors parcours choix: 3
si choixnombretickets est égal à 4 alors parcours choix: 4
si choixnombretickets est égal à 5 alors parcours choix: 5
si choixnombretickets est égal à 6 alors parcours choix: 6
si choixnombretickets est égal à 7 alors parcours choix: 7
si choixnombretickets est égal à 8 alors parcours choix: 8
si choixnombretickets est égal à 9 alors parcours choix: 9
si choixnombretickets est égal à 10 alors parcours choix: 10
termine
Paragraphe: choix c'est trop
actions:
affiche "Vous n'avez pas assez d'argent."
parcours choix du nombre tickets
Paragraphe: choix: 1
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre premier ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
termine
Paragraphe: choix: 2
concatène "Voici les numéros de votre premier ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 3
concatène "Voici les numéros de votre troisième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 4
concatène "Voici les numéros de votre quatrième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 5
concatène "Voici les numéros de votre cinquième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 6
concatène "Voici les numéros de votre sixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 7
concatène "Voici les numéros de votre septième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 8
concatène "Voici les numéros de votre huitième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 9
concatène "Voici les numéros de votre neuvième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 02
Paragraphe: choix: 10
concatène "Voici les numéros de votre dixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
parcours choix: 010
Paragraphe: choix: 02
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre deuxième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 3 alors parcours choix: 03
si choixnombretickets est égal à 4 alors parcours choix: 03
si choixnombretickets est égal à 5 alors parcours choix: 03
si choixnombretickets est égal à 6 alors parcours choix: 03
si choixnombretickets est égal à 7 alors parcours choix: 03
si choixnombretickets est égal à 8 alors parcours choix: 03
si choixnombretickets est égal à 9 alors parcours choix: 03
si choixnombretickets est égal à 10 alors parcours choix: 03
termine
Paragraphe: choix: 03
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre troisième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 4 alors parcours choix: 04
si choixnombretickets est égal à 5 alors parcours choix: 04
si choixnombretickets est égal à 6 alors parcours choix: 04
si choixnombretickets est égal à 7 alors parcours choix: 04
si choixnombretickets est égal à 8 alors parcours choix: 04
si choixnombretickets est égal à 9 alors parcours choix: 04
si choixnombretickets est égal à 10 alors parcours choix: 04
termine
Paragraphe: choix: 04
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre quatrième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 5 alors parcours choix: 05
si choixnombretickets est égal à 6 alors parcours choix: 05
si choixnombretickets est égal à 7 alors parcours choix: 05
si choixnombretickets est égal à 8 alors parcours choix: 05
si choixnombretickets est égal à 9 alors parcours choix: 05
si choixnombretickets est égal à 10 alors parcours choix: 05
termine
Paragraphe: choix: 05
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre cinquième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 6 alors parcours choix: 06
si choixnombretickets est égal à 7 alors parcours choix: 06
si choixnombretickets est égal à 8 alors parcours choix: 06
si choixnombretickets est égal à 9 alors parcours choix: 06
si choixnombretickets est égal à 10 alors parcours choix: 06
termine
Paragraphe: choix: 06
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre sixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 7 alors parcours choix: 07
si choixnombretickets est égal à 8 alors parcours choix: 07
si choixnombretickets est égal à 9 alors parcours choix: 07
si choixnombretickets est égal à 10 alors parcours choix: 07
termine
Paragraphe: choix: 07
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre septième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 8 alors parcours choix: 08
si choixnombretickets est égal à 9 alors parcours choix: 08
si choixnombretickets est égal à 10 alors parcours choix: 08
termine
Paragraphe: choix: 08
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre huitième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 9 alors parcours choix: 09
si choixnombretickets est égal à 10 alors parcours choix: 09
termine
Paragraphe: choix: 09
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre neuvième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
si choixnombretickets est égal à 10 alors parcours choix: 010
termine
Paragraphe: choix: 010
mélange n1
mélange n2
mélange n3
mélange n4
mélange n5
concatène "Voici les numéros de votre dixième ticket:", " ", n1, " ", n2, " ", n3, " ", n4, " ", n5, " ", "." dans choixduticket
affiche choixduticket
termine