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
95
Reaction score
27
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
32,923
Reaction score
8,256
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 Profile Posts

im getting so much better at editing resources I edited the RTP Bed to be a magical mana cover!
1624398588976.png
Learn RPG Maker MV is on sale again! Can I reach the $7,77 goal this time? :MV1:
RPG2KICO.pngRPG2KICOB.png
I'm trying to make a basic icon for an executable, I made two color variations. If anyone wants to give an opinion, I would be grateful. I'll add borders later to look better on the Desktop.
(The color palette I made just base)
More energy than ever! Let's do this!!
(๑•̀ㅂ•́)و✧
Come join us while I mess with TileD and GIMP for MZ :LZSjoy::LZSjoy::LZSjoy: (starting at 2PM ET)

Forum statistics

Threads
112,469
Messages
1,068,494
Members
146,129
Latest member
TheQuickT
Top