sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
122
Reaction score
34
First Language
Turkish
Primarily Uses
RMVXA
Hello, I have a question about a battle event.
For example; I've 4 Enemies on the map. 2 of them are enemies and 2 of them are "objects" which they never attack but when they are destroyed it gives the player a buff.
How can I make those objects "neutral" in the battle scene? So it doesn't matter if they are destroyed or not. Is it possible to achieve a victory even when those 2 objects are alive? Maybe a script that makes those objects neutral in battle?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,975
First Language
German
Primarily Uses
RMMV
no need for a script

you can make them neutral by not giving them any skill that attacks (or give them a mix of skills that attack both sides randomly)

as for the battleend, just make one troop event run at the end of every turn checking the health of all enemies, and either kill them manually or generally abort battle if your objects are the only ones alive.
 

sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
122
Reaction score
34
First Language
Turkish
Primarily Uses
RMVXA
Hello Andar, thanks for the reply. I couldn't do that with checking enemy health, I don't know how to check both enemy health lol. Instead, I did a simple condition branch to fix that issue. That works for me right now ^.^
RPGMV_uPG6L8Mv83.png
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,975
First Language
German
Primarily Uses
RMMV
I don't know how to check both enemy health lol.
control variable to load the enemy HP into a variable and then check it with conditional branch.
the game data section of control variable is one of the most versatile and powrrful tools of the engine
 

Latest Threads

Latest Posts

Latest Profile Posts

d757 going live today
Me: *Decides to make a custom battle system for my game using events.*
One week later: *Decides to implement about 200% more tactics than originally planned.*
Another week later: *Decides to add in allies to battle and let you switch between them without using any of the default battle system or menu options at all because I'm a masochist.*
We got BASE COLOR, bois!! And sadness...
Hap2FPS.gifHap5FPS.gif
Happy

Sad2FPS.gifSad5FPS.gif
Sad
A game review, Eloquent Countenance by RachelDrawsThis.

Forum statistics

Threads
118,718
Messages
1,118,163
Members
155,862
Latest member
marytan123
Top