Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
ressource:logiciel:twine:start [2025/01/29 16:16] emoc [Quizz] |
ressource:logiciel:twine:start [2025/01/29 23:08] (Version actuelle) emoc [Quizz] |
||
---|---|---|---|
Ligne 196: | Ligne 196: | ||
(en) vidéo d’intro très bien : https://www.youtube.com/watch?v=lhn39SPETMM | (en) vidéo d’intro très bien : https://www.youtube.com/watch?v=lhn39SPETMM | ||
- | ===== Quizz ===== | + | ===== Aides thématiques ===== |
+ | ==== Quizz ==== | ||
- | (avec Sugarcube 2.37.3) Pour créer un quizz type magazine : les réponses dessinent un profil que l'on découvre à la fin\\ | + | |
+ | (avec Sugarcube 2.37.3) Pour créer un **quizz type magazine : les réponses dessinent un profil que l'on découvre à la fin**\\ | ||
doc : http://www.motoslave.net/sugarcube/2/docs/ | doc : http://www.motoslave.net/sugarcube/2/docs/ | ||
<accordion> | <accordion> | ||
- | <panel title="quizz.twee (cliquer pour afficher le code)"> | + | <panel title="quizz_type_magazine.twee (cliquer pour afficher le code)"> |
- | <code quizz.twee> | + | <code quizz_type_magazine.twee> |
:: StoryTitle | :: StoryTitle | ||
quizz | quizz | ||
Ligne 294: | Ligne 296: | ||
</accordion> | </accordion> | ||
- | (avec Sugarcube 2.37.3) Pour afficher la réponse sur demande et passer à la question suivante :\\ | + | (avec Sugarcube 2.37.3) Pour **afficher la réponse sur demande et passer à la question suivante** :\\ |
doc : http://www.motoslave.net/sugarcube/2/docs/ | doc : http://www.motoslave.net/sugarcube/2/docs/ | ||
Ligne 311: | Ligne 313: | ||
<</linkreplace>>\ | <</linkreplace>>\ | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | |||
+ | (avec Sugarcube 2.37.3) Pour créer un **quizz à points avec résultat à la fin**\\ | ||
+ | doc : http://www.motoslave.net/sugarcube/2/docs/ | ||
+ | |||
+ | <accordion> | ||
+ | <panel title="quizz_a_points.twee (cliquer pour afficher le code)"> | ||
+ | <code quizz_a_points.twee> | ||
+ | :: StoryTitle | ||
+ | quizz_a_points | ||
+ | |||
+ | |||
+ | :: StoryData | ||
+ | { | ||
+ | "ifid": "D51B5239-87D3-4062-9C79-9B6628D5A31B", | ||
+ | "format": "SugarCube", | ||
+ | "format-version": "2.37.3", | ||
+ | "start": "Question 1", | ||
+ | "zoom": 1 | ||
+ | } | ||
+ | |||
+ | |||
+ | :: Question 1 {"position":"500,225","size":"100,100"} | ||
+ | Question 1: L'escargot est un ... | ||
+ | |||
+ | <<link "mammifère" "Question 2">><<set $points += 0>><</link>> | ||
+ | <<link "marsupial" "Question 2">><<set $points += 0>><</link>> | ||
+ | <<link "gastéropode" "Question 2">><<set $points += 1>><</link>> | ||
+ | |||
+ | |||
+ | :: Question 2 {"position":"625,225","size":"100,100"} | ||
+ | Question 2: le loup est un ... | ||
+ | |||
+ | <<link "mammifère" "Results">><<set $points += 1>><</link>> | ||
+ | <<link "marsupial" "Results">><<set $points += 0>><</link>> | ||
+ | <<link "gastéropode" "Results">><<set $points += 0>><</link>> | ||
+ | |||
+ | |||
+ | :: Results {"position":"500,350","size":"100,100"} | ||
+ | Bravo vous avez marqué $points points | ||
+ | |||
+ | <<if $points gte 0 and $points lte 2>> | ||
+ | Profile A | ||
+ | <<elseif $points gte 3 and $points lte 5>> | ||
+ | Profile B | ||
+ | <<elseif $points gte 6 and $points lte 8>> | ||
+ | Profile C | ||
+ | <<else>> | ||
+ | ERROR: The total number of points is outside the expected range, please contact the Developer. | ||
+ | <</if>> | ||
+ | |||
+ | |||
+ | :: StoryInit {"position":"500,100","size":"100,100"} | ||
+ | <<set $points to 0>> | ||
+ | </code> | ||
+ | </panel> | ||
+ | </accordion> | ||
+ | |||