sawworm

Sir Waste Time A Lot
Veteran
Joined
Jul 28, 2013
Messages
119
Reaction score
33
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,356
Reaction score
8,771
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
119
Reaction score
33
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,356
Reaction score
8,771
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

Well, someone "reviewed" my game. Didn't credit me anywhere in the video and spent 2 minutes insulting it. Going to ignore that and move on.
To cut down on map lag, I've been researching how to implement a lighting layer as a single map overlay instead of a bunch of individual lights. Hopefully I'll have a screenshot soon!
Imagine having a game broken up into a whole bunch of chapters? Like Chapter 11 should be about the party members going bankrupt.
Over 1/4th of the calendars are already out :eek: Have you already put something to a good use?

Forum statistics

Threads
117,261
Messages
1,105,921
Members
153,431
Latest member
shadowking1901
Top