#Déclaration des scoreboards (1 exécution)
/scoreboard objectives add result dummy
#Fonction permettant de reset et annoncer un echec
/tellraw @a[tag=quest_failed] {"text":"Et c'est a côté!!! T'es nul!"}
/scoreboard players set @a[tag=quest_failed] result 0
/scoreboard players tag @a[tag=quest_failed] remove quest_failed
#Proposer les questions et les réponses...
/tellraw @a[tag=quest_wantPlay] ["",{"text":"Je suis une question stupide\n["},{"text":"rep0","clickEvent":{"action":"run_command","value":"/scoreboard players set @s result 1"}},{"text":"] - ["},{"text":"rep1","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"] - ["},{"text":"rep2","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"]"}]
/scoreboard players tag @a[tag=quest_wantPlay] remove quest_wantPlay
/tellraw @a[score_result_min=1,score_result=1] {"text":"\n\n\n\n\n\n\n\n\n\n\n "}
/tellraw @a[score_result_min=1,score_result=1] ["",{"text":"Je une question inutile\n["},{"text":"rep0","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"] - ["},{"text":"rep1","clickEvent":{"action":"run_command","value":"/scoreboard players set @s result 3"}},{"text":"] - ["},{"text":"rep2","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"]"}]
/scoreboard players set @a[score_result_min=1,score_result=1] result 2
/tellraw @a[score_result_min=3,score_result=3] {"text":"\n\n\n\n\n\n\n\n\n\n\n "}
/tellraw @a[score_result_min=3,score_result=3] ["",{"text":"Tu t'amuses?\n["},{"text":"rep0","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"] - ["},{"text":"rep1","clickEvent":{"action":"run_command","value":"/scoreboard players set @s result 5"}},{"text":"] - ["},{"text":"rep2","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"]"}]
/scoreboard players set @a[score_result_min=3,score_result=3] result 4
/tellraw @a[score_result_min=5,score_result=5] {"text":"\n\n\n\n\n\n\n\n\n\n\n "}
/tellraw @a[score_result_min=5,score_result=5] ["",{"text":"C'est la fin\n["},{"text":"rep0","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"] - ["},{"text":"rep1","clickEvent":{"action":"run_command","value":"/scoreboard players set @s result 7"}},{"text":"] - ["},{"text":"rep2","clickEvent":{"action":"run_command","value":"/scoreboard players tag @s add quest_failed"}},{"text":"]"}]
/scoreboard players set @a[score_result_min=5,score_result=5] result 6
/tellraw @a[score_result_min=7,score_result=7] {"text":"\n\n\n\n\n\n\n\n\n\n\n "}
/tellraw @a[score_result_min=7,score_result=7] {"text":"C'est bien? T'as fini? T'es fier de toi?"}
/scoreboard players set @a[score_result_min=7,score_result_7] result 8