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,257
Reaction score
8,711
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,257
Reaction score
8,711
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 Profile Posts

Sharing my past was a mistake. Will delete the post when I get access to a working internet connection again.
TFW you get a plugin working correctly with your other plugins ♡\( ̄▽ ̄)/♡

(CW for minor gore - Einar's Y incision is gone for his test portrait)

Cs5kAbZ.png
Doing some winter related edits for a cozy cottage!
I think it's the third time I am changing my skill info plugin, but as I get better at programming, I want to fix the trash I made earlier :p

Streaming while I am programming the plugin. Join in if you wish :)
Currently working on a side game for the One Map Game Challenge. :kaoblush:
3H2mUEI.png

As you can see, the game will be called "Welcome To November". Hopefully, I'll finish it before November ends. :dizzy:

Forum statistics

Threads
116,980
Messages
1,103,492
Members
152,844
Latest member
schuzz6
Top