Do you have a game where players can visually see what enemies are using? For example, depending on what armor they wear, their appearance will change.
Or perhaps you have a stealing mechanic that allows you to steal enemy weapons and armors, which would lower the enemy’s strength and defense after those equips have been pilfered!
This plugin provides you with the ability to give enemies equips.
Enemies will receive all of the parameter bonuses and traits that the equip provides. If a skill requires a certain weapon type to be equipped, enemies must have the weapon in order to use the skill.
Plugin: download here (right-click and save-as)
- Equip Slots Core (Nov 20, 2015 version or later)
Start by installing the required plugins first.
Then, download ths plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_EnemyEquips plugin.
Once it is in your list of plugins, turn the plugin on.
Setting up Equip Slots
For details information on how to set up equip slots, please see the usage section for Equip Slots Core.
If you already know how to set up equip slots, basically just note-tag enemies with
<equip slot: ETYPE>
If you want to set up initial equipment, use the note-tag of the following format:
<equip slot: ETYPE ITEM_CODE>
Setting up Equip Traits
Just a reminder, but like actors, enemies will need to have the appropriate “equip” features so that they can actually equip weapons and armors.
Changing Equips During the Game
You can use script calls to change enemy equips during the game. I will provide an example.
We start by getting the enemy that we want to change equips.
var enemy = $gameTroop.members()[INDEX];
Where the INDEX is the index of the enemy you want to choose. 0 is the first enemy, 1 is the second enemy, and so on.
Once you have your enemy, you will need a weapon or an armor. Let’s say you wanted to get weapon 3 from the database. You
would use this script call
var weapon = $dataWeapons;
Next, you just need to have the enemy change equips, using the following script call:
Where the SLOT_ID is which slot you want to set the equip to. 0 is the first slot, 1 is the second slot, and so on.
So the whole script call would look something like this:
var enemy = $gameTroop.members()[INDEX]; var weapon = $dataWeapons; enemy.changeEquip(0, weapon);
If successful, your equip will now be using weapon 3.
Show Weapons During Battle
This plugin provides functionality for equipping enemies. However, this does not mean your battle system will automatically display weapon animations. You will need to have the battle system you’re using updated to support enemy equips.