About this mod
Spawns enemies into your game by reading a text file.
- Requirements
- Permissions and credits
This Mod reads information from a file and can then spawn the enemy into the game.
You can use this to allow external programs to interact with your game. An example program can be found here. The example program can either connect to a Twitch chat and spawn enemies through chat messages or use the user interface to add them directly.
If you have an idea how this could be used in a cool/unique way, feel free to contact me.
Features
Monsters are identified by their UUID (so no mod update is necessary to support every NPC in the game) and can be spawned with the "now" or "combat" tag. "now" spawns the enemy immediately, while "combat" spawns it into the next combat (it will not spawn into a currently active combat).
Instructions
The mod creates two files in the folder:
%localappdata%\Larian Studios\Baldur's Gate 3\Script Extender
SpawnEnemy.txt is the file used for transferring data to the game and is emptied after reading by the mod.
SpawnEnemy_Config.txt contains a single setting, how often the mod reads data from the spawnfile in miliseconds (default 5000 = 5 seconds). Smaller values mean less delay between interaction and spawn, but increase load. 5 seconds is very conservative, I would not assume problems with any value 1 second or higher. Significantly smaller values are untested.
Disclaimer & Future Updates:
BG3 does not just create enemies by their UUID, but adds abilities, spells and equipment afterwards. The mod currently only spawns the BASE version of the monster and there is currently no support to add gear or abilities to them, but could be added in a future update.
It would also be possible to allow spells to be cast from the outside (e.g. Fireball on a random enemy or Heroes Feast on the Party).