Titan Quest Fans Forum

Titan Quest - Anniversary Edition => Modifications => Difficulty Mods => Topic started by: WNG on 18 April 2020, 21:14:03

Title: [Tutorial] Create a difficulty mod!
Post by: WNG on 18 April 2020, 21:14:03
↜ Create a difficulty mod! by WNG ↝

Introduction

Hello! This guide will show you how to create a simple mod that adjusts difficulty settings of the game. Difficulty mods are very popular, and for a reason: they are simple to make and can modify the game experience by a lot. In this tutorial, we will look at numerous files that can be modified to change the difficulty of the game. There's more that you can do than simply spawning in more monsters; in fact, there's numerous ways to get creative here.

I may assume you have some basic knowledge and overlook some manipulations. Feel free to tell me if anything is unclear.

I. gameengine.dbr

Code: [Select]
records\xpack\game\gameengine.dbrThis file controls a myriad of general settings of the game. Here, you can alter some different options to make the game potentially harder. Let's have a look at some of them.

gameengine.dbr
Rewards and Penalties
deathPenaltyEquation: This equation controls the experience lost when a character dies.
deathPenaltyMin: Minimum of experience a character can lose upon death.
deathPenaltyMax: Maximum of experience a character can lose upon death.
RedemptionMultiplier: When the player recovers its grave, it will regain experience by the percentage set here. For reference, 1 would be equivalent to 100% and 0 to 0%.
OneShot Info
potionStackLimit: Amount of potions the player can stack per inventory square. Remember how you could only stack 5 in IT days? I do...
scrollStackLimit: Amount of scrollsthe player can stack on top of one another.
Monster Info
monsterRunSpeedCapMin/Max: The minimum and maximum values a monster's movement speed can have.
monsterSpellCastSpeedCapMin/Max: The minimum and maximum values a monster's casting speed can have.
monsterAttackSpeedMin/Max: The minimum and maximum values a monster's attack speed can have.
bossRunSpeedCapMin/Max: The minimum and maximum values a boss' movement speed can have.
bossSpellCastSpeedCapMin/Max: The minimum and maximum values a boss' monster's casting speed can have.
bossAttackSpeedMin/Max: The minimum and maximum values a boss' attack speed can have.
Player Info
playerDefenseCap: The maximum value the player's resistances can have.
playerDodgePercentCap: The maximum value the player's CTDA can have.
playerDodgeProjectileCap: The maximum value the player's CTAP can have.
playerRacialBonusPercentDefenseCap: The maximum value the player's Less Damage from X race can have.
playeCooldownReductionCap: The maximum value the player's Recharge can have.
playerManaCostReductionCap: The maximum value the player's Energy Cost Reduction can have.
characterDefensiveBlockRecoveryReductionCap: The maximum value the player's Shield Block Recovery Time Reduction can have.
playerRunSpeedCapMin/Max: The minimum and maximum values the player's movement speed can have.
playerSpellCastSpeedCapMin/Max: The minimum and maximum values the player's casting speed can have.
playerAttackSpeedCapMin/Max: The minimum and maximum values the player's attack speed can have.
Proxy Info
spawnMin/MaxModifier: Multiplier of the spawn rate of regular units in proxies (in percentage.)
championMin/MaxModifier: Multiplier of the spawn rate of champion units in proxies (in percentage.)

II. monstergamebalanceattributes.dbr

Code: [Select]
records\game\monstergamebalanceattributes.dbrThis file is referenced in the gameengine.dbr seen above and is used to improve monsters based on the number of players and the difficulty level you play on. For example, you can decide the bonus of health or damage granted to enemy creatures here.

Look over here to find details on the characteristics you can change (it is another tutorial but the same characteristics are seen in detail here) : https://titanquestfans.net/index.php?topic=886.0

Notice how each field is an array where you can input multiple values. You have 3 options:

III. femalepc01.dbr/malepc01.dbr

Code: [Select]
records\xpack\creatures\pc\femalepc01.dbr
records\xpack\creatures\pc\malepc01.dbr
These files are the actual characters you can control. You can modify some of their innate characteristics. The male and female characters have technically different files, although they look identical. You could, if you so desire, make them different in certain aspects.

femalepc01.dbr/malepc01.dbr
Character Bio
defaultGold: Starting amount of gold when you first create a character.
Natural Resistance: Innate resistances. By default, the character has no resistances.
Character Parameters
Self-explanatory, but you can also look at the link from step II.
Skill Manager
masteryIncrementLevel: Determines the levels where the player unlocks their first and second masteries.
reclamationPointTiers: Sets the increment tiers when reclaiming points from a mystic.
reclamationPointCosts: Sets the cost of each tier when reclaiming points from a mystic.

IV. playerlevels.dbr

Code: [Select]
records\creatures\pc\playerlevels.dbrThis file sets some parameters related to experience and the level-up system.

femalepc01.dbr/malepc01.dbr
Level Up Parameters
characterModifierPoints: Amount of attribute points received on level-up.
skillModifierPoints: Amount of skill points received on level-up.
initialSkillPoints: Starting amount of skill points when you first create a character.
lifeIncrement: When spending an attribute point in Health, it will go up by this much.
manaIncrement: When spending an attribute point in Energy, it will go up by this much.
strengthIncrement: When spending an attribute point in Strength, it will go up by this much.
dexterityIncrement: When spending an attribute point in Dexterity, it will go up by this much.
intelligenceIncrement: When spending an attribute point in Intelligence, it will go up by this much.
Experience Levels
maxPlayerLevel: Maximal level your character can reach.
SimplePortal 2.3.7 © 2008-2026, SimplePortal