Script call - check/eval Armor Type equiped in Armor Equipment types

Kilitar

Veteran
Veteran
Joined
Jul 28, 2015
Messages
141
Reaction score
41
First Language
czech
Primarily Uses
RMMV
Hello
I am using system, where actor visual appearance changes based on equipment (for field and for battler as well).
Notthing too hard or fancy - just 4 templates for each actor - purely based on Armor slot type of armor used.
I have 4 (well 5 with naked version :p) basic types of armor.
Armor types: (0 nothing equiped) 1 Clothing , 2 Light armor, 3 medium armor, 4 heavy armor

I need script call to check which type an actor has equipped on armor slot and change his appearance by that.

I tested it for weapon and it works really nice:
if (($gameActors.actor(ActorID).isWtypeEquipped(WeaponTypeID)) === true)

The only thing - I dont know how call such eval for Armor slot.
So I am looking for something like:
gameActors.actor(ActorID).ArmorSlot(ArmorSlotID).isAtypeEquipped(atypeId)
Thank you.
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,575
Reaction score
10,915
First Language
English
Primarily Uses
RMVXA

I've moved this thread to JavaScript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

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

Latest Threads

Latest Posts

Latest Profile Posts

That moment when you post the wrong download link to your game and wonder why it got so few downloads... :mad:
Trying to make it so my map is cleared of "random" events after the player leaves the map... to little success >.<
Had my first interaction with a legit homophobe concerning one of my games today. Tempting to engage, but pointless.
The BIGGEST immersion breaker for Sword Art Online is that Kirito keeps finding overpowered playstyles using "bad things nobody uses cuz its bad". Players WILL use bad gear BECAUSE it's bad.
When I said I'd make 20 games in 2020, I scared myself. Now it's mid-February, and I've made 6 games. So I got this. But, then again...do I got this?

Forum statistics

Threads
94,239
Messages
919,303
Members
123,946
Latest member
AstemirShaov
Top