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

vivi

Villager
Member
Joined
Jan 5, 2020
Messages
9
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
50
Reaction score
13
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,322
Reaction score
7,649
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts



So I figured out how to put words and pictures in the screen transition. It even wipes away from both the top and bottom. The possibilities are endless! :LZSexcite: I'm going to devise secret messages now for them because I'm a terrible wonderful person like that. :kaopride:
December has arrived and with that, an ¡update for Aletoir Feast! a game made it for the One Map Challenge. I will use some of the remaining switches, variables, and events from the challenge limit to add more content but keep it within the requirements. ¡Have a nice day Everybody!
What I worked on today. :LZSjoy:

No stream today, make a game in MZ is continuing next week!
It seems MOG Weather only has a "clear" function to instantly erase a given weather effect. Probably works well if weather only changes at map transfer, etc, but looks very abrupt if weather effects are continuously changing. So my next challenge: script a "fade" function to gradually fade the sprites and wait to "clear" the current weather until the opacity of all its sprites hits zero... or something like that! XD

Forum statistics

Threads
105,758
Messages
1,016,212
Members
137,444
Latest member
NeoRetro
Top