mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Page:
Game Goal
Pages
API tutorial
Administrator commands
Bedwars
Changelog
Contributions
Custom items
Data Structure Guide
Dungeon NPCs
Dungeon configuration
Dungeon items
DungeonSign ActionBar
DungeonSign Bed
DungeonSign Block
DungeonSign BossShop
DungeonSign Checkpoint
DungeonSign Classes
DungeonSign Command
DungeonSign Door
DungeonSign DungeonChest
DungeonSign End
DungeonSign Flag
DungeonSign Hologram
DungeonSign Interact
DungeonSign Leave
DungeonSign Lives
DungeonSign Lobby
DungeonSign MSG
DungeonSign Note
DungeonSign Place
DungeonSign Protection
DungeonSign Ready
DungeonSign ResourcePack
DungeonSign RewardChest
DungeonSign Script
DungeonSign SoundMessage
DungeonSign Start
DungeonSign Teleport
DungeonSign Title
DungeonSign Trigger
Dungeonkonfiguration
Einweisung
FAQ
Floor configuration
Game Goal
Game Initializer
Game rules
Getting started
Global structures
Grundlegende Informationen
Home
Legacy support
Multi group setups
Permissions
Plugin integration
Requirements
Schilder
Scripts
Signs legacy
Signs
Simple dungeon
Translations
2
Game Goal
Daniel Saukel edited this page 2021-10-23 02:13:29 +02:00
Table of Contents
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
Game goal types
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 |
Components
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 |
Examples
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
Home
Administrator's guide
- 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
Developer's guide
Wiki: © 2015-2021 Daniel Saukel and contributors, licensed under CC BY-SA (only unless otherwise stated)