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,058
Reaction score
7,160
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

i just started uploading some of my selfmade Pixel Art on DA,
visit me there if you are interrested^^
Im sorry but..I Want to play a game.
Anyone here is familiar with the US Law ? I'm working on a game idea at the moment and I have several questions on my mind :p
I just lost an hour plus of time to trying to modify the _battlefield sprite... when in reality MZ calls it _battleField ;_;

Even when debugging for the "undefined value", it looked exactly the same to my 20/60 eyesight.

I really prefer this_naming_convention rather than thisNamingConvention !!

Forum statistics

Threads
109,108
Messages
1,042,147
Members
141,602
Latest member
justbobted25
Top