RPG Maker Forums Archive
Search Settings
Home › Game Development Engines › Legacy Engine Support › RPG Maker MV Support

scriptcall for "if actor is unarmed"

RPG Maker MV Support
Z Zheg
May 20, 2016 04:39
Hi, i need a conditional scriptcall like


if (actor is unarmed){


   do this


}


thx
V Victor Sant
May 20, 2016 04:42
assuming that 'actor' is a valid Game_Actor object, you can use


actor.weapons().length === 0

Original thread: https://forums.rpgmakerweb.com/threads/scriptcall-for-if-actor-is-unarmed.62125/

This is an unofficial, read-only archive preserved for the community. Original site: https://forums.rpgmakerweb.com

Want your posts removed? See removal requests or email [email protected]. · Preserved with Forum Ark · Privacy · About