RMMV Referencing Number of Battlers (allies + enemies)

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,602
First Language
English
Primarily Uses
RMMV
Ok, so I'm trying to make some modifications to a turn order display. In order to get the correct x offset, I need some code to count how many battlers are currently alive in a battle. I imagine it would be the .length of "something". I just don't know what that "something" is.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,055
Reaction score
7,143
First Language
Indonesian
Primarily Uses
RMVXA
Code:
$gameTroop.aliveMembers().length + $gameParty.aliveMembers().length
Probably ...
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,602
First Language
English
Primarily Uses
RMMV
Thank you so much!
 

Latest Threads

Latest Profile Posts

I once thought about a boss gauntled game. I actually did it.
Stream will be live shortly with some Gex 3! Feel free to drop by!
Snippet from a game I'm working on. Not much happening here. Mostly look at atmosphere. May upload a longer version. Still need to make up some enemy arts.
Been slightly struggling with developing the latest chapter, I think I will downscale my ambitions and make it more linear.

Forum statistics

Threads
109,056
Messages
1,041,687
Members
141,541
Latest member
spectrallax
Top