Tried $game_party.leader.weapons.empty? didnt work any ideas?
Check if player has a weapon equipped
Javascript/Plugin Support$gameActors.actor(1).equips()[0] will return true if actor 1's weapon slot has an item in it.
Thanks, but where do you find these commands etc 😮 ?
It was trial and error for me.
Ahh... thought there was a common place where we could find these :s
Try this:
$gameParty.leader().weapons().length < 1All of these can be found on rpg_objects.js file in the js folder of your game. Just open them with notepad or any other text editors.
$gameParty.leader().weapons().length < 1All of these can be found on rpg_objects.js file in the js folder of your game. Just open them with notepad or any other text editors.
Oh! Thank Jeneeus i had no idea :333(New to RM's :s)
They both work your's and Maliki's :3
They both work your's and Maliki's :3
Here's a script call list you can use for reference.
https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0
https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0
Original thread: https://forums.rpgmakerweb.com/threads/check-if-player-has-a-weapon-equipped.49832/