あなたは敵に装備品を与えることができるプラグイン – HIME_EnemyEquips.js

タイトル
- Allows you to give enemies equips
作者名
ヘルプ
-------------------------------------------------------------------------
== Description ==

Video: https://www.youtube.com/watch?v=HRZp2narUWU

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.

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Contact me for commercial use

== Change Log ==

1.3 - Apr 26, 2016
supports "normal attack" animation for enemies now
1.2 - Dec 7, 2015
Display plugin loading error
1.1 - Nov 21, 2015
added some methods related to equips and animations
1.0 - Nov 20, 2015
initial release

== Required ==

Equip Slots Core
http://himeworks.com/2015/11/equip-slots-core/

== Usage ==

-- 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:

<equip slot: ETYPE ITEM_CODE>

-- Setting up Equip Traits --

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 --

To change enemy equips during the game, you can use script calls.
To access the enemy, you will need to use this script call

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[3];

Next, you just need to have the enemy change equips, using the
following script call:

enemy.changeEquip(SLOT_INDEX, EQUIP);

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[3];
enemy.changeEquip(0, weapon);

If successful, your equip will now be using weapon 3.

-------------------------------------------------------------------------
パラメータ
title Enemy Equips
version 1.3
date Apr 26, 2016
filename HIME_EnemyEquips.js
url http://himeworks.com/2015/11/enemy-equips/

If you enjoy my work, consider supporting me on Patreon!

https://www.patreon.com/himeworks

If you have any questions or concerns, you can contact me at any of
the following sites:

Main Website: http://himeworks.com
Facebook: https://www.facebook.com/himeworkscom/
Twitter: https://twitter.com/HimeWorks
Youtube: https://www.youtube.com/c/HimeWorks
Tumblr: http://himeworks.tumblr.com/

-------------------------------------------------------------------------
ライセンス表記
- Free for use in non-commercial projects with credits
- Contact me for commercial use

紹介ページ http://himeworks.com/2015/11/enemy-equips/