役者は自分が装備しているものしか戦闘に使えません – GALV_ActorEquipItems.js

タイトル
Actors can only use items in battle that they have equipped.
作者名
ヘルプ
Galv's Actor Equip Items
----------------------------------------------------------------------------
This plugin makes it so that each actor can equip and hold a certain amount
of items. In battle, actors only have access to the items that they
currently have equipped. Outside of battle the inventory works as usual,
with a new scene for the player to equip items to their actors.

ARMOR TYPE - FOR ITEMS
----------------------
You can set items to have a certain Armor Type by using a note tag (below).
Actors must have the trait "Equip Armor X" (X referring to the armor type
you set for the item) in order to equip the item for battle.

NOTE: This does NOT stop the items being used by anyone or on anyone in the
normal item menu. It just stops actors equipping them so they cant use
certain items in battle.

----------------------------------------------------------------------------
Note tag for ACTORS
----------------------------------------------------------------------------

<itemslots:x> x being the number of items they can equip

----------------------------------------------------------------------------

----------------------------------------------------------------------------
Note tag for ITEMS
----------------------------------------------------------------------------

<slotStack:x> x being the max item number the actor can
equip in the item slot.

<atype:x> set the Armor Type ID of the item. If no tag
is present it uses the plugin setting default
Armor types can be modified in the database:
Database > Types > Armor Types

----------------------------------------------------------------------------

----------------------------------------------------------------------------
SCRIPT CALLS
----------------------------------------------------------------------------
The below script calls have values as below:
--------------------------------------------
a = actor ID. The actor ID you are changing.
s = slot ID. The id of the equip slot you are changing
i = item ID. The id of an ITEM from the database
n = Number. The number of items you are equipping/removing
d = true or false. If true, destroy all items referenced
k = true or false. If true, keep items in inventory. false removes them
----------------------------------------------------------------------------

$gameActors.actor(a).clearAllActorItemSlots(d); clear all slots

$gameActors.actor(a).clearActorItemSlot(s,d); clear specific slot

$gameActors.actor(a).equipActorItemSlot(s,i,n,k); equip item to slot
make s = -1 to equip
to first free slot
(fails if none free)

$gameActors.actor(a).unEquipActorItemSlot(s,i,n,d); unequip item in slot
s = -1 to unequip
item from all slots

$gameActors.actor(a).removeFromActorItemSlot(s,n,k); remove no. items
from slot while
not knowing items
----------------------------------------------------------------------------
SCRIPT for CONTROL VARIABLE
----------------------------------------------------------------------------

$gameActors.actor(a).noActorItems(s,i); returns the number of a certain
item in the specified slot.
Use -1 to count the number of
the item in all slots

$gameActors.actor(a).noActorItems(s); returns the number of items in
the specified slot. Use -1 to
count number of items actor has
in all slots
パラメータ
param Item Slots
desc The number of item slots an actor has by default
default 6

param Stack Size
desc The amount of an item that can be equipped to each slot if not specified by item note
default 5

param Default Armor Type
desc The default armor type of the item - required for actors to have the trait to equip them.
default 1

param ----- Vocab -----
desc
default
param Menu Command
desc The text for the main menu command. Leave blank to disable in menu
default Pockets

param Empty Slot Text
desc Text displayed for an empty actor item slot.
default ---------

param Equip Text
desc Text used for equipping item command
default Equip

param Remove Text
desc Text used for removing item command
default Remove

param Use Text
desc Text used for using item command
default Use

param Clear Text
desc Text used for clearing all items command
default Clear

param Equip Amount Text
desc Text used for how many items to equip
default Equip Amount:

param Remove Amount Text
desc Text used for how many items to equip
default Remove Amount:

ライセンス表記

紹介ページ https://galvs-scripts.com/category/rmmv-plugins/mv-scenessystems/#post-1704