Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi Ramza, maybe an obscure question but is there a js script call to check the weapon type in the offhand? I'm interested in this plugin, but I don't use the default RM weapon system. I'm using WAY's custom equip plugin to determine the actor's battler graphic upon weapon equip and it doesn't work well with the default dual wield system. I'm hoping yours might have a better method to check the offhand weapon.

(+1)

It doesn't have anything special built in for doing that, but battler.weapons()[1] should give you the offhand weapon, if there is one. If there isn't one, though it would probably cause a crash. battler.equips()[1] would also give the item in the offhand slot, or the weapon, so you could use that and then do a second check for the items etypeId to see if it's a weapon or not.