Butterfly (Quiz)
By
MwthornCreated: 2015/09/08 13:36:03 UTC-07:00 (9 years and 108 days ago)
Edited: 2015/09/08 13:36:03 UTC-07:00 (9 years and 108 days ago)
Likes: 0
Denizen Version: 0.9.7-SNAPSHOT
Script Version: 1.0
Description:
## Created by Mwthorn
## A quiz with 15 questions
## Version 1.0
## Original used in my hub to change others gameplay when playing any gamemodes on my server.
## It works kinda like in the Walking Dead or Until Dawn (getting different quests, objectives and scenes).
## At the same time its also a form of feedback or experiment on what the players mostly like.
## This script features a global result, showing what others answered compared to what you have answered (currently only server-side)
## Commands:
## /butterfly
## The main command to take the quiz
## /result
## Shows your answers and compared what the others answered.
Download script |
View raw script## Created by Mwthorn
## Version 1.0
## Original used in my hub to change others gameplay when playing any gamemodes on my server.
## It works kinda like in the Walking Dead or Until Dawn (getting different quests, objectives and scenes).
## At the same time its also a form of feedback or experiment on what the players mostly like.
## This script features a global result, showing what others answered compared to what you have answered.
## Commands:
## /butterfly
## The main command to take the quiz
## /result
## Shows your answers and compared what the others answered.
ButterflyCommand:
type: command
name: butterfly
script:
## Shows the first question menu
- inventory open d:in@ButterflyQuiz1
## This is the config part. Edit these to something you prefer.
ButterflyConfig:
type: yaml data
config:
material:
## The materials of the item shown in the question menu
1A: 397<&co>3
1B: 397<&co>2
2A: COOKIE
2B: BREAD
3A: FLINT_AND_STEEL
3B: DIAMOND_CHESTPLATE
4A: CAKE
4B: GOLDEN_APPLE
5A: PAPER
5B: DIAMOND_SWORD
6A: BOOK
6B: MINECART
7A: 397<&co>4
7B: CHEST
8A: TNT
8B: RED_ROSE
9A: REDSTONE
9B: DISPENSER
10A: BRICK
10B: IRON_SWORD
11A: LONG_GRASS<&co>2
11B: LONG_GRASS<&co>1
12A: SANDSTONE<&co>2
12B: STONE
13A: EMERALD
13B: DIAMOND_PICKAXE
14A: COMMAND
14B: POTION
15A: EYE_OF_ENDER
15B: SMOOTH_BRICK
quiz:
## The text shown in the answers (colors can replace the default one)
1A: PVP
1B: PVE (Co-op)
2A: Cookie
2B: Bread
3A: Griefing
3B: Moderating
4A: Having Fun
4B: Challenges
5A: Stories
5B: Action
6A: Reading
6B: Watching
7A: Horror
7B: Adventure
8A: Chaos
8B: Peace
9A: Logic
9B: Random
10A: Building
10B: Fighting
11A: Singleplayer
11B: Multiplayer
12A: Fancy
12B: Simple
13A: Modded/Custom
13B: Normal/Vanilla
14A: Technology
14B: Magic
15A: Future
15B: Medieval
## I am unable to include the question asked in the config list.
## Its because of the 32 character limit that also includes tags as characters.
## This means you'll have to manually scroll down and edit all of them if you wish.
ButterflyMainEvents:
type: world
events:
## Just to make sure that all player's choices are saved and not lost.
on server stop:
- execute as_server "denizen save"
## Quiz 1
## Choice A
on player clicks ButterflyQuiz1A in ButterflyQuiz1:
## Here we check if its the player's first time.
- if <player.has_flag[ButterflyQuiz1]> {
## To make sure that players can't keep adding scores to the total, this makes sure of that.
- if <player.flag[ButterflyQuiz1]> != "A" {
- flag server ButterflyQuizAnswer1A:++
- flag server ButterflyQuizAnswer1B:--
}
}
## If it is its first time, then add a new number to the total.
else {
- flag server ButterflyQuizAnswer1A:++
}
## Changes the player's choice, useful for the other servers connected to the hub
- flag player ButterflyQuiz1:A
## An usual "the items are fake!" thing.
- determine cancelled passively
- inventory close d:<context.inventory>
## Move on to the next question
- inventory open d:in@ButterflyQuiz2
## Choice B
on player clicks ButterflyQuiz1B in ButterflyQuiz1:
## Here we check if its the player's first time.
- if <player.has_flag[ButterflyQuiz1]> {
## To make sure that players can't keep adding scores to the total, this makes sure of that.
- if <player.flag[ButterflyQuiz1]> != "B" {
- flag server ButterflyQuizAnswer1B:++
- flag server ButterflyQuizAnswer1A:--
}
}
## If it is its first time, then add a new number to the total.
else {
- flag server ButterflyQuizAnswer1B:++
}
## Changes the player's choice, useful for the other servers connected to the hub
- flag player ButterflyQuiz1:B
## An usual "the items are fake!" thing.
- determine cancelled passively
- inventory close d:<context.inventory>
## Move on to the next question
- inventory open d:in@ButterflyQuiz2
## Quiz 2
on player clicks ButterflyQuiz2A in ButterflyQuiz2:
- if <player.has_flag[ButterflyQuiz2]> {
- if <player.flag[ButterflyQuiz2]> != "A" {
- flag server ButterflyQuizAnswer2A:++
- flag server ButterflyQuizAnswer2B:--
}
}
else {
- flag server ButterflyQuizAnswer2A:++
}
- flag player ButterflyQuiz2:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz3
on player clicks ButterflyQuiz2B in ButterflyQuiz2:
- if <player.has_flag[ButterflyQuiz2]> {
- if <player.flag[ButterflyQuiz2]> != "B" {
- flag server ButterflyQuizAnswer2B:++
- flag server ButterflyQuizAnswer2A:--
}
}
else {
- flag server ButterflyQuizAnswer2B:++
}
- flag player ButterflyQuiz2:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz3
## Quiz 3
on player clicks ButterflyQuiz3A in ButterflyQuiz3:
- if <player.has_flag[ButterflyQuiz3]> {
- if <player.flag[ButterflyQuiz3]> != "A" {
- flag server ButterflyQuizAnswer3A:++
- flag server ButterflyQuizAnswer3B:--
}
}
else {
- flag server ButterflyQuizAnswer3A:++
}
- flag player ButterflyQuiz3:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz4
on player clicks ButterflyQuiz3B in ButterflyQuiz3:
- if <player.has_flag[ButterflyQuiz3]> {
- if <player.flag[ButterflyQuiz3]> != "B" {
- flag server ButterflyQuizAnswer3B:++
- flag server ButterflyQuizAnswer3A:--
}
}
else {
- flag server ButterflyQuizAnswer3B:++
}
- flag player ButterflyQuiz3:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz4
## Quiz 4
on player clicks ButterflyQuiz4A in ButterflyQuiz4:
- if <player.has_flag[ButterflyQuiz4]> {
- if <player.flag[ButterflyQuiz4]> != "A" {
- flag server ButterflyQuizAnswer4A:++
- flag server ButterflyQuizAnswer4B:--
}
}
else {
- flag server ButterflyQuizAnswer4A:++
}
- flag player ButterflyQuiz4:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz5
on player clicks ButterflyQuiz4B in ButterflyQuiz4:
- if <player.has_flag[ButterflyQuiz4]> {
- if <player.flag[ButterflyQuiz4]> != "B" {
- flag server ButterflyQuizAnswer4B:++
- flag server ButterflyQuizAnswer4A:--
}
}
else {
- flag server ButterflyQuizAnswer4B:++
}
- flag player ButterflyQuiz4:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz5
## Quiz 5
on player clicks ButterflyQuiz5A in ButterflyQuiz5:
- if <player.has_flag[ButterflyQuiz5]> {
- if <player.flag[ButterflyQuiz5]> != "A" {
- flag server ButterflyQuizAnswer5A:++
- flag server ButterflyQuizAnswer5B:--
}
}
else {
- flag server ButterflyQuizAnswer5A:++
}
- flag player ButterflyQuiz5:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz6
on player clicks ButterflyQuiz5B in ButterflyQuiz5:
- if <player.has_flag[ButterflyQuiz5]> {
- if <player.flag[ButterflyQuiz5]> != "B" {
- flag server ButterflyQuizAnswer5B:++
- flag server ButterflyQuizAnswer5A:--
}
}
else {
- flag server ButterflyQuizAnswer5B:++
}
- flag player ButterflyQuiz5:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz6
## Quiz 6
on player clicks ButterflyQuiz6A in ButterflyQuiz6:
- if <player.has_flag[ButterflyQuiz6]> {
- if <player.flag[ButterflyQuiz6]> != "A" {
- flag server ButterflyQuizAnswer6A:++
- flag server ButterflyQuizAnswer6B:--
}
}
else {
- flag server ButterflyQuizAnswer6A:++
}
- flag player ButterflyQuiz6:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz7
on player clicks ButterflyQuiz6B in ButterflyQuiz6:
- if <player.has_flag[ButterflyQuiz6]> {
- if <player.flag[ButterflyQuiz6]> != "B" {
- flag server ButterflyQuizAnswer6B:++
- flag server ButterflyQuizAnswer6A:--
}
}
else {
- flag server ButterflyQuizAnswer6B:++
}
- flag player ButterflyQuiz6:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz7
## Quiz 7
on player clicks ButterflyQuiz7A in ButterflyQuiz7:
- if <player.has_flag[ButterflyQuiz7]> {
- if <player.flag[ButterflyQuiz7]> != "A" {
- flag server ButterflyQuizAnswer7A:++
- flag server ButterflyQuizAnswer7B:--
}
}
else {
- flag server ButterflyQuizAnswer7A:++
}
- flag player ButterflyQuiz7:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz8
on player clicks ButterflyQuiz7B in ButterflyQuiz7:
- if <player.has_flag[ButterflyQuiz7]> {
- if <player.flag[ButterflyQuiz7]> != "B" {
- flag server ButterflyQuizAnswer7B:++
- flag server ButterflyQuizAnswer7A:--
}
}
else {
- flag server ButterflyQuizAnswer7B:++
}
- flag player ButterflyQuiz7:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz8
## Quiz 8
on player clicks ButterflyQuiz8A in ButterflyQuiz8:
- if <player.has_flag[ButterflyQuiz8]> {
- if <player.flag[ButterflyQuiz8]> != "A" {
- flag server ButterflyQuizAnswer8A:++
- flag server ButterflyQuizAnswer8B:--
}
}
else {
- flag server ButterflyQuizAnswer8A:++
}
- flag player ButterflyQuiz8:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz9
on player clicks ButterflyQuiz8B in ButterflyQuiz8:
- if <player.has_flag[ButterflyQuiz8]> {
- if <player.flag[ButterflyQuiz8]> != "B" {
- flag server ButterflyQuizAnswer8B:++
- flag server ButterflyQuizAnswer8A:--
}
}
else {
- flag server ButterflyQuizAnswer8B:++
}
- flag player ButterflyQuiz8:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz9
## Quiz 9
on player clicks ButterflyQuiz9A in ButterflyQuiz9:
- if <player.has_flag[ButterflyQuiz9]> {
- if <player.flag[ButterflyQuiz9]> != "A" {
- flag server ButterflyQuizAnswer9A:++
- flag server ButterflyQuizAnswer9B:--
}
}
else {
- flag server ButterflyQuizAnswer9A:++
}
- flag player ButterflyQuiz9:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz10
on player clicks ButterflyQuiz9B in ButterflyQuiz9:
- if <player.has_flag[ButterflyQuiz9]> {
- if <player.flag[ButterflyQuiz9]> != "B" {
- flag server ButterflyQuizAnswer9B:++
- flag server ButterflyQuizAnswer9A:--
}
}
else {
- flag server ButterflyQuizAnswer9B:++
}
- flag player ButterflyQuiz9:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz10
## Quiz 10
on player clicks ButterflyQuiz10A in ButterflyQuiz10:
- if <player.has_flag[ButterflyQuiz10]> {
- if <player.flag[ButterflyQuiz10]> != "A" {
- flag server ButterflyQuizAnswer10A:++
- flag server ButterflyQuizAnswer10B:--
}
}
else {
- flag server ButterflyQuizAnswer10A:++
}
- flag player ButterflyQuiz10:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz11
on player clicks ButterflyQuiz10B in ButterflyQuiz10:
- if <player.has_flag[ButterflyQuiz10]> {
- if <player.flag[ButterflyQuiz10]> != "B" {
- flag server ButterflyQuizAnswer10B:++
- flag server ButterflyQuizAnswer10A:--
}
}
else {
- flag server ButterflyQuizAnswer10B:++
}
- flag player ButterflyQuiz10:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz11
## Quiz 11
on player clicks ButterflyQuiz11A in ButterflyQuiz11:
- if <player.has_flag[ButterflyQuiz11]> {
- if <player.flag[ButterflyQuiz11]> != "A" {
- flag server ButterflyQuizAnswer11A:++
- flag server ButterflyQuizAnswer11B:--
}
}
else {
- flag server ButterflyQuizAnswer11A:++
}
- flag player ButterflyQuiz11:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz12
on player clicks ButterflyQuiz11B in ButterflyQuiz11:
- if <player.has_flag[ButterflyQuiz11]> {
- if <player.flag[ButterflyQuiz11]> != "B" {
- flag server ButterflyQuizAnswer11B:++
- flag server ButterflyQuizAnswer11A:--
}
}
else {
- flag server ButterflyQuizAnswer11B:++
}
- flag player ButterflyQuiz11:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz12
## Quiz 12
on player clicks ButterflyQuiz12A in ButterflyQuiz12:
- if <player.has_flag[ButterflyQuiz12]> {
- if <player.flag[ButterflyQuiz12]> != "A" {
- flag server ButterflyQuizAnswer12A:++
- flag server ButterflyQuizAnswer12B:--
}
}
else {
- flag server ButterflyQuizAnswer12A:++
}
- flag player ButterflyQuiz12:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz13
on player clicks ButterflyQuiz12B in ButterflyQuiz12:
- if <player.has_flag[ButterflyQuiz12]> {
- if <player.flag[ButterflyQuiz12]> != "B" {
- flag server ButterflyQuizAnswer12B:++
- flag server ButterflyQuizAnswer12A:--
}
}
else {
- flag server ButterflyQuizAnswer12B:++
}
- flag player ButterflyQuiz12:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz13
## Quiz 13
on player clicks ButterflyQuiz13A in ButterflyQuiz13:
- if <player.has_flag[ButterflyQuiz13]> {
- if <player.flag[ButterflyQuiz13]> != "A" {
- flag server ButterflyQuizAnswer13A:++
- flag server ButterflyQuizAnswer13B:--
}
}
else {
- flag server ButterflyQuizAnswer13A:++
}
- flag player ButterflyQuiz13:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz14
on player clicks ButterflyQuiz13B in ButterflyQuiz13:
- if <player.has_flag[ButterflyQuiz13]> {
- if <player.flag[ButterflyQuiz13]> != "B" {
- flag server ButterflyQuizAnswer13B:++
- flag server ButterflyQuizAnswer13A:--
}
}
else {
- flag server ButterflyQuizAnswer13B:++
}
- flag player ButterflyQuiz13:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz14
## Quiz 14
on player clicks ButterflyQuiz14A in ButterflyQuiz14:
- if <player.has_flag[ButterflyQuiz14]> {
- if <player.flag[ButterflyQuiz14]> != "A" {
- flag server ButterflyQuizAnswer14A:++
- flag server ButterflyQuizAnswer14B:--
}
}
else {
- flag server ButterflyQuizAnswer14A:++
}
- flag player ButterflyQuiz14:A
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz15
on player clicks ButterflyQuiz14B in ButterflyQuiz14:
- if <player.has_flag[ButterflyQuiz14]> {
- if <player.flag[ButterflyQuiz14]> != "B" {
- flag server ButterflyQuizAnswer14B:++
- flag server ButterflyQuizAnswer14A:--
}
}
else {
- flag server ButterflyQuizAnswer14B:++
}
- flag player ButterflyQuiz14:B
- determine cancelled passively
- inventory close d:<context.inventory>
- inventory open d:in@ButterflyQuiz15
## Quiz 15
on player clicks ButterflyQuiz15A in ButterflyQuiz15:
- if <player.has_flag[ButterflyQuiz15]> {
- if <player.flag[ButterflyQuiz15]> != "A" {
- flag server ButterflyQuizAnswer15A:++
- flag server ButterflyQuizAnswer15B:--
}
}
else {
- flag server ButterflyQuizAnswer15A:++
}
- flag player ButterflyQuiz15:A
- determine cancelled passively
- inventory close d:<context.inventory>
- narrate "<&a>All your responses has been recorded."
- narrate "<&7>Please note that these records are used for gameplay changes and improvements towards the server. This also means they may have impact on individual experience and make every player have a different outcome."
- narrate "<&7>You can check yours and others answers with <&b>/result"
on player clicks ButterflyQuiz15B in ButterflyQuiz15:
- if <player.has_flag[ButterflyQuiz15]> {
- if <player.flag[ButterflyQuiz15]> != "B" {
- flag server ButterflyQuizAnswer15B:++
- flag server ButterflyQuizAnswer15A:--
}
}
else {
- flag server ButterflyQuizAnswer15B:++
}
- flag player ButterflyQuiz15:B
- determine cancelled passively
- inventory close d:<context.inventory>
- narrate "<&a>All your responses has been recorded."
- narrate "<&7>Please note that these records are used for gameplay changes and improvements towards the server. This also means they may have impact on individual experience and make every player have a different outcome."
- narrate "<&7>You can check yours and others answers with <&b>/result"
ButterflyResults:
type: command
name: result
script:
- narrate "<&c>What do you like the most?"
- narrate "<&7><&l>----------------------------------"
- narrate "<&7>You = <&a>Green"
- narrate "<&7>Total/Global = <&9>Blue"
- narrate "<&7><&l>----------------------------------"
- if <player.has_flag[ButterflyQuiz15]> {
- if <player.flag[ButterflyQuiz1]> == "A" {
- narrate "<&7>1. <&a><s@ButterflyConfig.yaml_key[config.quiz.1A]><&9>(<server.flag[ButterflyQuizAnswer1A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.1B]><&9>(<server.flag[ButterflyQuizAnswer1B].as_int>)"
}
else {
- narrate "<&7>1. <s@ButterflyConfig.yaml_key[config.quiz.1A]><&9>(<server.flag[ButterflyQuizAnswer1A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.1B]><&9>(<server.flag[ButterflyQuizAnswer1B].as_int>)"
}
- if <player.flag[ButterflyQuiz2]> == "A" {
- narrate "<&7>2. <&a><s@ButterflyConfig.yaml_key[config.quiz.2A]><&9>(<server.flag[ButterflyQuizAnswer2A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.2B]><&9>(<server.flag[ButterflyQuizAnswer2B].as_int>)"
}
else {
- narrate "<&7>2. <s@ButterflyConfig.yaml_key[config.quiz.2A]><&9>(<server.flag[ButterflyQuizAnswer2A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.2B]><&9>(<server.flag[ButterflyQuizAnswer2B].as_int>)"
}
- if <player.flag[ButterflyQuiz3]> == "A" {
- narrate "<&7>3. <&a><s@ButterflyConfig.yaml_key[config.quiz.3A]><&9>(<server.flag[ButterflyQuizAnswer3A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.3B]><&9>(<server.flag[ButterflyQuizAnswer3B].as_int>)"
}
else {
- narrate "<&7>3. <s@ButterflyConfig.yaml_key[config.quiz.3A]><&9>(<server.flag[ButterflyQuizAnswer3A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.3B]><&9>(<server.flag[ButterflyQuizAnswer3B].as_int>)"
}
- if <player.flag[ButterflyQuiz4]> == "A" {
- narrate "<&7>4. <&a><s@ButterflyConfig.yaml_key[config.quiz.4A]><&9>(<server.flag[ButterflyQuizAnswer4A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.4B]><&9>(<server.flag[ButterflyQuizAnswer4B].as_int>)"
}
else {
- narrate "<&7>4. <s@ButterflyConfig.yaml_key[config.quiz.4A]><&9>(<server.flag[ButterflyQuizAnswer4A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.4B]><&9>(<server.flag[ButterflyQuizAnswer4B].as_int>)"
}
- if <player.flag[ButterflyQuiz5]> == "A" {
- narrate "<&7>5. <&a><s@ButterflyConfig.yaml_key[config.quiz.5A]><&9>(<server.flag[ButterflyQuizAnswer5A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.5B]><&9>(<server.flag[ButterflyQuizAnswer5B].as_int>)"
}
else {
- narrate "<&7>5. <s@ButterflyConfig.yaml_key[config.quiz.5A]><&9>(<server.flag[ButterflyQuizAnswer5A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.5B]><&9>(<server.flag[ButterflyQuizAnswer5B].as_int>)"
}
- if <player.flag[ButterflyQuiz6]> == "A" {
- narrate "<&7>6. <&a><s@ButterflyConfig.yaml_key[config.quiz.6A]><&9>(<server.flag[ButterflyQuizAnswer6A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.6B]><&9>(<server.flag[ButterflyQuizAnswer6B].as_int>)"
}
else {
- narrate "<&7>6. <s@ButterflyConfig.yaml_key[config.quiz.6A]><&9>(<server.flag[ButterflyQuizAnswer6A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.6B]><&9>(<server.flag[ButterflyQuizAnswer6B].as_int>)"
}
- if <player.flag[ButterflyQuiz7]> == "A" {
- narrate "<&7>7. <&a><s@ButterflyConfig.yaml_key[config.quiz.7A]><&9>(<server.flag[ButterflyQuizAnswer7A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.7B]><&9>(<server.flag[ButterflyQuizAnswer7B].as_int>)"
}
else {
- narrate "<&7>7. <s@ButterflyConfig.yaml_key[config.quiz.7A]><&9>(<server.flag[ButterflyQuizAnswer7A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.7B]><&9>(<server.flag[ButterflyQuizAnswer7B].as_int>)"
}
- if <player.flag[ButterflyQuiz8]> == "A" {
- narrate "<&7>8. <&a><s@ButterflyConfig.yaml_key[config.quiz.8A]><&9>(<server.flag[ButterflyQuizAnswer8A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.8B]><&9>(<server.flag[ButterflyQuizAnswer8B].as_int>)"
}
else {
- narrate "<&7>8. <s@ButterflyConfig.yaml_key[config.quiz.8A]><&9>(<server.flag[ButterflyQuizAnswer8A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.8B]><&9>(<server.flag[ButterflyQuizAnswer8B].as_int>)"
}
- if <player.flag[ButterflyQuiz9]> == "A" {
- narrate "<&7>9. <&a><s@ButterflyConfig.yaml_key[config.quiz.9A]><&9>(<server.flag[ButterflyQuizAnswer9A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.9B]><&9>(<server.flag[ButterflyQuizAnswer9B].as_int>)"
}
else {
- narrate "<&7>9. <s@ButterflyConfig.yaml_key[config.quiz.9A]><&9>(<server.flag[ButterflyQuizAnswer9A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.9B]><&9>(<server.flag[ButterflyQuizAnswer9B].as_int>)"
}
- if <player.flag[ButterflyQuiz10]> == "A" {
- narrate "<&7>10. <&a><s@ButterflyConfig.yaml_key[config.quiz.10A]><&9>(<server.flag[ButterflyQuizAnswer10A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.10B]><&9>(<server.flag[ButterflyQuizAnswer10B].as_int>)"
}
else {
- narrate "<&7>10. <s@ButterflyConfig.yaml_key[config.quiz.10A]><&9>(<server.flag[ButterflyQuizAnswer10A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.10B]><&9>(<server.flag[ButterflyQuizAnswer10B].as_int>)"
}
- if <player.flag[ButterflyQuiz11]> == "A" {
- narrate "<&7>11. <&a><s@ButterflyConfig.yaml_key[config.quiz.11A]><&9>(<server.flag[ButterflyQuizAnswer11A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.11B]><&9>(<server.flag[ButterflyQuizAnswer11B].as_int>)"
}
else {
- narrate "<&7>11. <s@ButterflyConfig.yaml_key[config.quiz.11A]><&9>(<server.flag[ButterflyQuizAnswer11A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.11B]><&9>(<server.flag[ButterflyQuizAnswer11B].as_int>)"
}
- if <player.flag[ButterflyQuiz12]> == "A" {
- narrate "<&7>12. <&a><s@ButterflyConfig.yaml_key[config.quiz.12A]><&9>(<server.flag[ButterflyQuizAnswer12A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.12B]><&9>(<server.flag[ButterflyQuizAnswer12B].as_int>)"
}
else {
- narrate "<&7>12. <s@ButterflyConfig.yaml_key[config.quiz.12A]><&9>(<server.flag[ButterflyQuizAnswer12A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.12B]><&9>(<server.flag[ButterflyQuizAnswer12B].as_int>)"
}
- if <player.flag[ButterflyQuiz13]> == "A" {
- narrate "<&7>13. <&a><s@ButterflyConfig.yaml_key[config.quiz.13A]><&9>(<server.flag[ButterflyQuizAnswer13A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.13B]><&9>(<server.flag[ButterflyQuizAnswer13B].as_int>)"
}
else {
- narrate "<&7>13. <s@ButterflyConfig.yaml_key[config.quiz.13A]><&9>(<server.flag[ButterflyQuizAnswer13A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.13B]><&9>(<server.flag[ButterflyQuizAnswer13B].as_int>)"
}
- if <player.flag[ButterflyQuiz14]> == "A" {
- narrate "<&7>14. <&a><s@ButterflyConfig.yaml_key[config.quiz.14A]><&9>(<server.flag[ButterflyQuizAnswer14A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.14B]><&9>(<server.flag[ButterflyQuizAnswer14B].as_int>)"
}
else {
- narrate "<&7>14. <s@ButterflyConfig.yaml_key[config.quiz.14A]><&9>(<server.flag[ButterflyQuizAnswer14A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.14B]><&9>(<server.flag[ButterflyQuizAnswer14B].as_int>)"
}
- if <player.flag[ButterflyQuiz15]> == "A" {
- narrate "<&7>15. <&a><s@ButterflyConfig.yaml_key[config.quiz.15A]><&9>(<server.flag[ButterflyQuizAnswer15A].as_int>)<&7><&l>- <&7><s@ButterflyConfig.yaml_key[config.quiz.15B]><&9>(<server.flag[ButterflyQuizAnswer15B].as_int>)"
}
else {
- narrate "<&7>15. <s@ButterflyConfig.yaml_key[config.quiz.15A]><&9>(<server.flag[ButterflyQuizAnswer15A].as_int>)<&7><&l>- <&a><s@ButterflyConfig.yaml_key[config.quiz.15B]><&9>(<server.flag[ButterflyQuizAnswer15B].as_int>)"
}
}
else {
- narrate "You have not answered all the questions."
}
##
## Quiz 1
##
ButterflyQuiz1:
type: inventory
inventory: CHEST
title: <&c>What do you like most? <&9>1/15
size: 9
definitions:
A: i@ButterflyQuiz1A
B: i@ButterflyQuiz1B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz1A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.1A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.1A]>
ButterflyQuiz1B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.1B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.1B]>
##
## Quiz 2
##
ButterflyQuiz2:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>2/15
size: 9
definitions:
A: i@ButterflyQuiz2A
B: i@ButterflyQuiz2B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz2A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.2A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.2A]>
ButterflyQuiz2B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.2B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.2B]>
##
## Quiz 3
##
ButterflyQuiz3:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>3/15
size: 9
definitions:
A: i@ButterflyQuiz3A
B: i@ButterflyQuiz3B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz3A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.3A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.3A]>
ButterflyQuiz3B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.3B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.3B]>
##
## Quiz 4
##
ButterflyQuiz4:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>4/15
size: 9
definitions:
A: i@ButterflyQuiz4A
B: i@ButterflyQuiz4B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz4A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.4A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.4A]>
ButterflyQuiz4B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.4B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.4B]>
##
## Quiz 5
##
ButterflyQuiz5:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>5/15
size: 9
definitions:
A: i@ButterflyQuiz5A
B: i@ButterflyQuiz5B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz5A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.5A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.5A]>
ButterflyQuiz5B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.5B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.5B]>
##
## Quiz 6
##
ButterflyQuiz6:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>6/15
size: 9
definitions:
A: i@ButterflyQuiz6A
B: i@ButterflyQuiz6B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz6A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.6A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.6A]>
ButterflyQuiz6B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.6B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.6B]>
##
## Quiz 7
##
ButterflyQuiz7:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>7/15
size: 9
definitions:
A: i@ButterflyQuiz7A
B: i@ButterflyQuiz7B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz7A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.7A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.7A]>
ButterflyQuiz7B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.7B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.7B]>
##
## Quiz 8
##
ButterflyQuiz8:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>8/15
size: 9
definitions:
A: i@ButterflyQuiz8A
B: i@ButterflyQuiz8B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz8A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.8A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.8A]>
ButterflyQuiz8B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.8B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.8B]>
##
## Quiz 9
##
ButterflyQuiz9:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>9/15
size: 9
definitions:
A: i@ButterflyQuiz9A
B: i@ButterflyQuiz9B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz9A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.9A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.9A]>
ButterflyQuiz9B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.9B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.9B]>
##
## Quiz 10
##
ButterflyQuiz10:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>10/15
size: 9
definitions:
A: i@ButterflyQuiz10A
B: i@ButterflyQuiz10B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz10A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.10A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.10A]>
ButterflyQuiz10B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.10B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.10B]>
##
## Quiz 11
##
ButterflyQuiz11:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>11/15
size: 9
definitions:
A: i@ButterflyQuiz11A
B: i@ButterflyQuiz11B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz11A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.11A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.11A]>
ButterflyQuiz11B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.11B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.11B]>
##
## Quiz 12
##
ButterflyQuiz12:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>12/15
size: 9
definitions:
A: i@ButterflyQuiz12A
B: i@ButterflyQuiz12B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz12A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.12A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.12A]>
ButterflyQuiz12B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.12B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.12B]>
##
## Quiz 13
##
ButterflyQuiz13:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>13/15
size: 9
definitions:
A: i@ButterflyQuiz13A
B: i@ButterflyQuiz13B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz13A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.13A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.13A]>
ButterflyQuiz13B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.13B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.13B]>
##
## Quiz 14
##
ButterflyQuiz14:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>14/15
size: 9
definitions:
A: i@ButterflyQuiz14A
B: i@ButterflyQuiz14B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz14A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.14A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.14A]>
ButterflyQuiz14B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.14B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.14B]>
##
## Quiz 15
##
ButterflyQuiz15:
type: inventory
inventory: CHEST
title: <red>What do you like most? <&9>15/15
size: 9
definitions:
A: i@ButterflyQuiz15A
B: i@ButterflyQuiz15B
slots:
- "[] [] [A] [] [] [] [B] [] []"
ButterflyQuiz15A:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.15A].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.15A]>
ButterflyQuiz15B:
type: item
material: <s@ButterflyConfig.yaml_key[config.material.15B].as_material>
display name: <green><s@ButterflyConfig.yaml_key[config.quiz.15B]>
View History