-
Notifications
You must be signed in to change notification settings - Fork 83
Game Goal
Daniel Saukel edited this page Oct 23, 2021
·
2 revisions
The game goal determines how a dungeon game ends.
Game goals are set through the gameGoal
game rule. They contain components, which are special game rules that specify how the goal works.
In YAML, e.g. in a map configuration, a game goal is a map that contains the type and its components:
gameGoal:
type: TYPE
component1: value
component2: value
Type | Description | Components |
---|---|---|
END | The game ends when an end sign is triggered by all group members. | timeToFinish |
LAST_MAN_STANDING | The game ends when only members of one group are left in the game. | |
SCORE | The game ends when a group reachs the set score. If no scoreGoal is set, the game does not end and the goal is to survive as long as possible to beat a highscore. | initialScore, scoreGoal, timeToFinish |
TIME_SURVIVAL | The game ends after time has passed. Players win if they survive until then. | timeToFinish |
Name | Explanation | Possible values | Default value | Annotation |
---|---|---|---|---|
timeToFinish | The time to finish the dungeon in seconds. If the group has no time left, the players get kicked. | Integer | -1 | -1 = no time limit |
initialScore | Score used for capture the flag and similar game types. | Integer | 3 | -1 = not used |
scoreGoal | The amount of goals to score before the game ends. | Integer | -1 | -1 = not used |
gameGoal:
type: "END"
timeToFinish: 120
gameGoal:
type: "LAST_MAN_STANDING"
gameGoal:
type: SCORE
initialScore: 3
scoreGoal: 6
timeToFinish: 120
gameGoal:
type: TIME_SURVIVAL
timeToFinish: 120
Wiki: © 2015-2021 Daniel Saukel and contributors, licensed under CC BY-SA (only unless otherwise stated)
- General information
- General setup and usage
- Dungeon setup
- Signs
- Game rules
- Linked dungeon configuration
- Dungeon world configuration
- Details
- Examples (WIP)
- Simple dungeon
- Bedwars TODO
- PVP arena TODO
- Mob arena TODO
- Tutorial TODO
- Data structure guide
- FAQ