variable based on how many enemies still alive in battle?

Zheg

Veteran
Veteran
Joined
Apr 2, 2014
Messages
42
Reaction score
59
First Language
english
Primarily Uses
i dont know if this work

$game_variables[1] = $game_troop.membersplease help 
thanks
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
You want to get the size or length of the array of enemies.

Code:
$game_variables[1] = $game_troop.alive_members.size
 
Last edited by a moderator:

Zheg

Veteran
Veteran
Joined
Apr 2, 2014
Messages
42
Reaction score
59
First Language
english
Primarily Uses
You want to get the size or length of the array of enemies.

$game_variables[1] = $game_troop.alive_members.size
thanks hime, just what i wanted

i love your scripts ;)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top