I have noticed that nowhere in the devnotes is a battle royale mode mentioned. Adamant to not let dwarf fortress fall behind on the latest cheap gaming trend, I have taken it upon myself to create one myself. Introducing:
DWARF FORTRESS: BATTLE ROYALE MODEDOWNLOADWhat it is:As the name implies, Battle Royale Mode adds a new "game mode" (Though there isn't much interactivity) to dwarf fortress that's inspired by battle royale games like PUBG and Fortnite. Battle Royale Mode is designed to be played in the object testing arena. It spawns dwarves and randomized gear within a specified area. The dwarves will path towards the gear and pick it up, slowly upgrading their equipment from the starting platinum knife. They will fight to the death and loot from the corpses of their fallen enemies until only one victor remains.
With default settings in the provided arena, matches are usually over quickly, though it does rarely happen that one of the last dwarves becomes insane. Since dwarves only fight in encounters and do not actively hunt each other, the sane dwarf will let the insane one hang out in some corner of the map indefinitely, and intervention is required.
While it's possible to take control of one of the fighters in adventure mode, it doesn't tend to be very fun- The AI is not particularly competent, and you can easily win by just not participating in the starting bloodbath and going straight for the cornucopia.
Features:- Spawns randomized gear, with a cornucopia in the center where adamantine gear spawns
- Spawns dwarves in random locations around the arena
- Dwarves will path to the closest gear that's better than what they have, and pick it up. They will drop their current inferior gear if they have any
- Dwarves will fight any other dwarf they encounter, and loot good gear from corpses
- Dwarves will tend to move towards the cornucopia if not actively going after gear
- The script ends when only one dwarf is left alive
Installation:Installation of this script is very easy. From the .zip file, move
battleroyale.lua and the folder named "
battleroyale" into
<dwarf fortress directory>/hack/scripts. While it is not required, it is
highly recommended to also replace the vanilla
arena.txt file (found at
<dwarf fortress directory>/data/init) with the one provided, since the default arena doesn't have suitable terrain.
Usage:The base command for Battle Royale Mode is
battleroyale. At bare minimum, it requires an area in which the battle royale will occur to be specified. The following parameters are necessary, and the script won't run without them:
-x1: The x position of the first corner of the area
-y1: The y position of the first corner of the area
-z1: The z position of the first corner of the area
-x2: The x position of the second corner of the area
-y2: The y position of the second corner of the area
-z2: The z position of the second corner of the area
(Note: The script doesn't have a way to see coordinates yet, but running
teleport -showpos gives you the cursor's coordinates)
So for example,
battleroyale -x1 2 -y1 2 -z1 4 -x2 142 -y2 142 -z2 4
will begin a Battle Royale game between coordinates (2,2,4) and (142,142,4), which is just about the entirety of the ground level of the arena. This is, incidentally, what the default values for the other parameters are balanced for. If this is done in the vanilla arena, half of all the dwarves and gear will spawn over water/magma.
The script also accepts the following optional paramteres:
-equipment: The number of weapons/armour that will be spawned. This defaults to 200.
-units: The number of dwarves that will be spawned. This defaults to 48.
-cornucopiaradius: The radius of the "cornucopia". The cornucopia is an area at the center of the map where all spawned gear is made of adamantine.
For another example,
battleroyale -x1 2 -y1 2 -z1 4 -x2 142 -y2 142 -z2 4 -equipment 400 -units 96 -cornucopiaradius 50
will spawn twice as much gear and dwarves, and make most of the map inside the cornucopia, thus making most of the gear adamantine. You probably won't see a lot of dwarves wielding hammers in this setup. (Also, it would be pretty laggy!)
Gallery:A dwarf picking up bismuth bronze buckler, then being mauled to death by another, better-geared dwarf:
A winner stands in the depleted cornucopia, surrounded by corpses
5 dwarves in a mosh pit during the starting bloodbath. Only one of them will leave.
A dwarf walks through a city and upgrades his gear. Note that he drops some of his own gear in favour of the better equipment, while ignoring the gear that's worse than his.
The inventory of a typical mid-game survivor
The inventory of a typical winner