How do I make variables update after every attack in a battle?

vivi

Villager
Member
Joined
Jan 5, 2020
Messages
10
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I'm trying to make a battle event where a variable increases after every forced attack, it's an event where the player can only defend and the enemy attacks over and over and after a certain threshold is reached something happens and the enemy stops attacking. It seems variables only update after the enemy stops attacking, not inbetween attacks in a single turn. The enemy doesn't stop attacking ever as if the games doesn't realize the variable is increasing between each attack.
 

Binder28

Veteran
Veteran
Joined
Sep 15, 2020
Messages
90
Reaction score
26
First Language
Portuguese
Primarily Uses
RMVXA
you can sort of get "around" this system by just making him atack a number of times in a turn? like...if you want the variable to hit 5 then just make thim atack you five times...maybe I misunderstood but it doesn't seem like a variable is even needed...
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,809
Reaction score
7,885
First Language
German
Primarily Uses
RMMV
you need to modify the attack command for that - either by adding to the variable in the damage formula, or by adding a common event to the skill.

Main problem is that everyone uses attack all time, so you'l have to check and reset the variable either in the common event itself or in the troop events. It's probably tricky and tedious to do, but short of a custom script that is the only way.
 

Latest Threads

Latest Posts

Latest Profile Posts


I ended up needing to do a chapter one world map remake. It's still WIP but coming along nicely. =D
Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.

Forum statistics

Threads
107,748
Messages
1,031,857
Members
139,889
Latest member
MapleFoxEdit
Top