RMMV Referencing Number of Battlers (allies + enemies)

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,603
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,063
Reaction score
7,166
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,603
First Language
English
Primarily Uses
RMMV
Thank you so much!
 

Latest Threads

Latest Profile Posts

Binge-watched 6 episodes of the Erased anime... And that means I've watched half of it?! Sigh...
I'm bad at base-building games (looking at other players created an aesthetically beautiful base compared to me), but IDK why I keep playing the game and seek more of it.
Pyra and Mythra in smash ultimate are way too OP. They're basically Smash 4 Bayonetta 2.0, and not in a good way. Very toxic and unfair. At least they're hot tho.
attack on titan keep reaching a new height with each episode, aaa I can't wait another week for a new episode at this point
How do i make profile picture

Forum statistics

Threads
109,195
Messages
1,042,925
Members
141,692
Latest member
sakiika
Top