About this mod
A customizable YYTK mod for Fields of Mistria that replaces an existing spell in the game with an entirely new one. In short, it turns the spell "Full Restore" into "Quake" that has a new name, icon, description, and NEW on-use effect when cast: IT DAMAGES EVERYTHING ON THE CURRENT DUNGEON FLOOR.
- Requirements
- Permissions and credits
Quake is an entirely custom spell that (with default settings) damages everything on the current dungeon floor when cast, including Ari (the player). Quake costs two mana (half a "dot") to cast despite the spell UI showing otherwise.
The mod is configurable allowing you to pick and choose some of the behavior for this custom spell (such as spell cost and if it damages Ari).
Important Notes
- Since this mod uses YYTK to change some of the game's code, it will only work on the Windows version of the game.
- The mod completely replaces the existing spell Full Restore.
- You can only cast Quake in the dungeon, once per floor.
- (Configurable) As already stated - Quake will damage Ari (the player) in addition to all monsters. This effect can kill Ari, so be careful!
- (Configurable) The spell UI won't display spell costs less than four mana (one "dot"). However, Quake does cost two mana (half a "dot")!
Customization
The mod is customizable and allows you to configure each of the options above independently. By default, the mod:
- Sets the cost of Quake to two mana (half a "dot").
- Allows Ari (the player) to be damaged by Quake.
- Does NOT ignore mimics (i.e., allows them to be damaged by Quake).
- Displays a screen flash when Quake is cast.
- Plays "rumbling" sound effects when Quake is cast.
NOTE: The configuration file will NOT exist until the game (and mod) have been started at least once. Therefore, if you wish to configure the mod, start the game until the title screen loads, then EXIT the game, and lastly edit the configuration file.
In order to customize the file, you must modify the properties in its configuration file. This file is located in the AppData directory that Fields of Mistria creates. Below is a directory tree view of where the configuration file exists beginning with AppData:
AppData
├─ Local
│ ├─ Fields of Mistria
│ │├─ mod_data
│ ││├─ QuakeSpell
│ │││├─ QuakeSpell.json
NOTE: The full "path" to the file will vary depending on which drive Windows is installed on along with your account's username. For example, with Windows on the C drive and the username "anna" the full path for the configuration file would be:
C:\Users\anna\AppData\Local\FieldsOfMistria\mod_data\QuakeSpell\QuakeSpell.json
The configuration file by default will look like the following:
{
"damage_ari": true,
"ignore_mimics": false,
"minimum_magnitude": 5,
"maximum_magnitude": 9,
"one_shot_monsters": true,
"screen_flash": true,
"sound_effects": true,
"spell_cost": 2
}
You can change each value as follows:
- The damage_ari, ignore_mimics, screen_flash, one_shot_monsters, and sound_effects values can be set to true or false to enable or disable those options.
- The spell_cost value adjusts how much mana Quake costs to cast. It must be a whole number between 0 and 12 (inclusive). Setting this value to zero makes the spell free! Keep in mind that one mana "dot" is actually equal to four mana.
- The minimum_magnitude value adjusts the minimum "magnitude" of the quake, and therefore affects the minimum damage dealt by the spell. It must be a whole number between 1 and 9 (inclusive). For example, when set to 5, quake will deal a minimum of 50 damage.
- The maximum_magnitude value adjusts the maximum "magnitude" of the quake, and therefore affects the maximum damage dealt by the spell. It must be a whole number between 1 and 9 (inclusive). For example, when set to 9, quake will deal a maximum of 90 damage. This value must be greater than or equal to the minimum_magnitude value.
Requirements
The Mods of Mistria Installer (MOMI) is required for installation.
Installation
HEY, LISTEN!
Back up your save game before trying this mod for the first time!
- Create a folder named mods where the game (FieldsOfMistria.exe) is located. If you're using Steam, you can easily locate that by right-clicking the game in your Library and going to Installed Files > Browse in the modal window. The game's directory path will look similar to what's below:
C:\Program Files (x86)\Steam\steamapps\common\Fields of Mistria
- Download the Quake Spell.zip file and save it inside the mods folder you created.
- Extract the zip file in this directory. There should now be a folder called Quake Spell inside the mods folder.
- Delete (or move) the original zip file. Leave the unzipped folder alone.
- Run MOMI and install the mod!
Usage
Run the game via Steam, or the the game executable (FieldsOfMistria.exe) directly. This mod requires no further configuration.
Uninstallation
Follow the standard uninstallation procedures specified by MOMI.
Source Code
- C++ Code: https://github.com/AnnaNomoly/YYToolkit/blob/stable/QuakeSpell/source/ModuleMain.cpp
- MOMI Package: https://github.com/AnnaNomoly/momi-mod-packages/tree/main/Quake%20Spell
Demo Video
FoM Quake Spell.mp4
Shout Outs
- Archie (@archie_uwu): For making Aurie + YYTK and teaching me how to use it.
- Garethp (@garethp): For MOMI.