A downloadable plugin

Download NowName your own price

Description

The Dynamic Enemy Levels system allows enemies to scale to your party's level based on configurable settings!

How to install

Note: Steps 1 and 2 only apply if you don't already have any battle scripts setup

1. Open your project in Bakin

2. Click Functions > Expanded Features > Copy Battle-Related Scripts to Game File (Default Battle)

3. Navigate to the directory your project is stored in and open the "battlescript" folder.

4. Replace the "BattleSequenceManager.cs" with the one downloaded

5. Copy the "SetDynamicLevelSettings.cs" file and paste it into to your project's "script" directory.


How to use

Changing the Scale setting

This plugin uses the value of a specific variable called "Dynamic Level Setting" to determine how the enemy levels should be set. If this hasn't already been created for you, create it manually.

There are 4 values that can be set for this variable and used:

  • 0 - This will revert to the default settings (enemy levels set to 1)
  • 1 - Enemy levels will be equal to the lowest-levelled party member
  • 2 - Enemy levels will be set to an average of your party's levels
  • 3 - Enemy levels will be equal to the highest-levelled party member

Setting a constant difficulty

If you're going to have just one difficulty throughout your game, you can simply set the "Dynamic Level Setting" variable to one of the options mentioned above via an event.

Changing the difficulty mid-game

To change the difficulty mid-game, simply create an event, assign the "SetDynamicLevelSettings.cs" and add a new "Call C# Program" command to the event (found in the Control category).

It should automatically show up with the "UpdateDynamicEnemyLevelSetting" method to call. All you need to do is set the value either using a variable or by entering the number directly.

Note: If you enter a number that isn't any of the 4 mentioned above, it will automatically set the difficulty back to the default settings (as though you'd entered 0)


Changing the other settings

In addition to changing the scale setting above, you can also globally set the following settings:

  • Gold Multiplier - Multiplies the base gold given by monsters in the database by the amount specified per level
  • Experience Multiplier - Multiplies the base experience given by monsters in the database by the amount specified per level
  • Plus Level Variation - After scaling the enemy level, increases the level further by a random number
  • Minus Level Variation - After scaling the enemy level, decreases the level by a random number

Level Variation Example

Let's assume an enemy's level has been scaled to level 10 and your plus level variation is set to 5 and the minus level variation is set to -3. This means the enemy's final level could be anywhere between 7 - 15.

Changing settings globally

If you want to change the settings globally for all monsters, you can do so by opening the "BattleSequenceManager.cs" file in your editor of choice (within the "battlescript" folder inside your project directory).

You then simply update the values of the properties (near the top of the file) to whatever you need them to be.


Note: Both the Plus and Minus level variations must be whole numbers. The Gold and Exp multipliers can be decimal numbers.

Changing settings per cast member

If you want to override the any of the global settings, you can do so.

To do this, open the database and select the cast member you want to configure.

In the selected cast member's Management Tags + Notes field at the bottom, add any of the following to override their respective setting:

  • $DLPlusVariation(5) - Sets the plus variation to 5
  • $DLMinusVariation(-3) - Sets the minus variation to -3
  • $DLGoldMultiplier(1.2) - Sets the gold multiplier to 1.2
  • $DLExpMultiplier(1.2) - Sets the exp multiplier to 1.2
  • $DLScaleSetting(3) - Sets the scale setting to 3 (meaning the scaled level will be equal to the highest-levelled party member)

Download

Download NowName your own price

Click download now to get access to the following files:

Dynamic Enemy Levels V2.0.2.zip 54 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.