RPG Maker Forums Archive
Search Settings
Home › Game Development Engines › RPG Maker Javascript Plugins › Javascript/Plugin Support

MZ Store the number of enemies (visible and alive) in a variable?

Javascript/Plugin Support
I Indinera
Mar 1, 2025 12:29
Is this possible using a script line?
R Robro33
Mar 1, 2025 12:43
iirc hidden enemies dont count as being alive, so try this
Code:
$gameTroop.aliveMembers().length
I Indinera
Mar 1, 2025 20:50
That worked, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/store-the-number-of-enemies-visible-and-alive-in-a-variable.175909/

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