Check the number of alive enemy in battle

zxdvas

Villager
Member
Joined
Mar 31, 2019
Messages
7
Reaction score
0
First Language
English
Primarily Uses
N/A
(I know this have been answered in RPG MV, but I am not skilled enough to implement it in ace)
I want to make a skill for an enemy that is only usable when there are at least 2 alive enemies.
The skill will "lock" the player so the other enemy can attack ignoring his defense and dodge. (this part I can handle it)
My would-be-implementation is to check at the end of each turn, whether there is at least 2 alive enemies, then open a switch
so that enemy can use that skill. Once it is no longer true, turn the switch off and change the "locked" state into something else.
(of course, I would also check if the player is already "locked" so in the rare occasion of multiple enemy using that skill, all later attempts fail or become something else)
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,461
Reaction score
1,598
First Language
English
Primarily Uses
RMMV
For the event that runs each turn, first inflict an invisible "alive" State on all enemies. Then, check for each enemy if they're inflicted with "Alive" with a conditional branch, and if so, add +1 on a "Monster Count" Variable (also, reset this to 0 at the start of the event). If it counts 2 or higher, turn on the Switch that allow the enemy to use their special Skill. If it counts less than 2, turn off the Switch.
 

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

Latest Threads

Latest Profile Posts

Hello I buyed RPG Maker VX Ace a long ago and I want to use it again but in the meantime I changed my pc but I lost the paper with my product key on so I can't use RPG maker again... someone can help me please ? or there is no hopes ?:'( ( I have a bad english I'm sorry )
I was away this days here in the forum but it was for a good cause!
The trailer of the demo of Luke Inn is on youtube and I am so happy!
I need to see the bugs of the game but I am happy that I have new content to show!

The last part of the modern interior will be ready soon. This will be a B-tile. With interior items for the kitchen, bathroom, toilet and storage room.
This frantic shooting ARPG plugin for MZ looks really great. Here is the link to a post from the official Japanese RPG Maker forum.

Forum statistics

Threads
102,941
Messages
996,126
Members
134,397
Latest member
Harwin
Top