09-25-2024, 08:37 AM
KEnemySwitch XP
by Kyonides
Introduction
Have you as a game developer ever wanted to switch between different enemy troops during battle?
I mean, you would force the party to face 2 or more troops in a single battle like






The catch here would be that the player might not really know when that switch is supposed to happen at all.

Guess what? Now you can do that!

The Steps
Code:
# First you need to go set the values of 2 game variables, namely CHANCE_VAR_ID
# and TURNS_VAR_ID. The former stands for a percentage while the latter should
# always be an positive integer (1+).
# Then include additional Troops via Script Call:
# KEnemy.add_troops(TroopID1, etc.)
# Finally, setup your Battle Processing event command as usual!
Notes
Version 1.0.0
The final release that includes the possibility of setting a minimum number of troops you have to defeat to win the battle.
Version 0.11.0
This release allows you to define how many enemy troops should be defeated before battle ends, namely 1 or ALL of them!

Version 0.9.0
Once you defeat any of the available troops, the battle is over.


Compatible with the Default Battle System.
Terms & Conditions
Free for use in non commercial games.
Due credit is mandatory!
Mention this forum in your game credits.
That's it!
