How make conditional branch based on Actor(ActorID) has "empty hands" aka no weapon equipped

Kilitar

Veteran
Veteran
Joined
Jul 28, 2015
Messages
141
Reaction score
41
First Language
czech
Primarily Uses
RMMV
Hello,

I need run some code, based on equiped type of weapon. I have no problem if weapon exist and has a type.

Problem is, when actor has NO weapon equipped (he should got skills Punch and Kick in this case)

I tried
If (($gameActors.actor(ActorID).isWtypeEquipped(0)) === true)
If (($gameActors.actor(ActorID).isWtypeEquipped(null)) === true)

No luck. I know how to script call weapon type equipped, just dunno how to check
"if ($gameActors.actor(ActorID).EmptyHands === true"

Thank you for help
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
680
Reaction score
523
First Language
French
Primarily Uses
Try this:
Code:
$gameActors.actor(actorId)._equips[equipmentIndex]._dataClass === ""
Index starts at 0 for the first slot, I.E. the weapon.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

40 card deck size, the plugin seems more sluggish.
Village theme I composed for a commission!
Stream will be live shortly with some Haunting Ground! Feel free to drop by!
welp, the stock market went down by 7% because of corona today. Time to buy stocks?
Man, being able to edit my game WHILE testplaying it is like the most convenient thing EVER. Thank you, MV...it even makes up for the OGG thing. Well, almost.

Forum statistics

Threads
94,560
Messages
921,889
Members
124,423
Latest member
Detulovnoc
Top