check for filled equipment slot, + Actor sprite based on equipment?

dombo813

Veteran
Veteran
Joined
May 3, 2014
Messages
42
Reaction score
3
First Language
English
Primarily Uses
Hi there


I have two questions:


First, is there a way to check whether or not the player has a certain equipment slot filled, rather than a particular item? For example, lets say I have a combat arena that will only allow the player to enter if their Character 1 has no weapon or accessories equipped (ie, the Weapon and Accessory slots are both empty on Char 1). If they have a weapon or Accessory equipped, the arena guard will politely tell them to go away while silently flipping them off. If they are unarmed and have no accessory, then the guard moves aside and tells them to 'break a leg'. Is checking for whether equipment slots used or empty possible, either using a plugin or script?


Second, does anyone know of a way to change the sprite/battler of a character depending on the items they have equipped? Yanfly made a brilliant plugin that allows for changing of such based on class, and I was wondering if it might be possible to do the same thing for equipment? (Preferably one that also varies by actor, too - perhaps then, a plugin that uses Actor notetags and checks armour IDs / keywords would instead be better?)
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
$gameActors.actor(x).equips()[y]==null


Y is for equips index 


0 for weapon


1 for shield 


2 for head  /// and go on
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games. and, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top