Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 2.18 KB

Game-rules.md

File metadata and controls

61 lines (48 loc) · 2.18 KB

One of the most important things you need to understand in order to work effectively with DungeonsXL is the game rule priority system. Game rules define the frame conditions of your DXL games.


  1. Inheritance system
  2. Rules

Inheritance system

Game rules can be fetched from multiple sources. In case of a conflict, only one rule will finally affect the game. Which one is determinated by the inheritance system:

1. Game type

The game type you specify on the ready sign.

2. Dungeon config override values

3. Floor config values

Note that not all floor configuration values are game rules, like for example the list of invited players.

4. Dungeon config default values

5. Main config default values

6. Internal default values

If no values are set, DXL will use its internal default values.

Rules

Name Explanation Possible values Default value Annotation
isLobbyDisabled If the Lobby is disabled. Boolean false Works only with singleplayer dungeons without classes.
timeUntilKickOfflinePlayer The time until a player who left the game gets kicked from the dungeon. Integer -1 (=never)
timeToNextPlay
timeToNextLoot
timeToNextWave
timeToFinish
gameMode
playerVersusPlayer
friendlyFire
gameCommandWhitelist
mustFinishOne
mustFinishAll
timeLastPlayed
requirements
keepInventoryOnEnter
keepInventoryOnDeath
keepInventoryOnFinish
keepInventoryOnEscape
build
initialLives
message
secureObjects
gamePermissions
  • Boolean: "true" or "false"
  • Integer: Numeric value; no decimals
  • Double: Numeric value, decimals allowed
  • String: Text
  • List: A list of values
  • Map: A list of key / value pairs