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,293
Reaction score
7,637
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

Evil7 added!


I did a bit of a remake on one of the maps, also I made a particle for jumping into the portal, and one for traveling through the portal. I'll probably add more sparkles later to embellish it. :LZSwink:
Polished the animation and added details :kaojoy:
Ami
What do you think about the Wood Bridge inside of Volcano?
Yet another gaming question, i'm currently playing Last of Us 2 and want to get another game to play next but can't decide between Ghost of Tsushima, Miles Morales & Jedi Fallen Order. After the latest mandalorian i AM on a star wars kick, but i also LOVED the last spiderman game that prequels Miles Morales. Ghost of Tsushima is the bottom of my list but i heard it was AWESOME. Just want a good story & fun gameplay.

Forum statistics

Threads
105,686
Messages
1,015,535
Members
137,362
Latest member
sdramose
Top