Calculate attack in battle and use that calculation to attack

Doopis_Doop

Warper
Member
Joined
Feb 2, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
I Want to make the combat random.
What I did was make a random common event that basically says:

Set User Attack Variable random (1-20)
Show text: "You got \V[attack variable]."
Set Enemy Defense Variable random (1-20)
Show text: "Your opponent got \v[enemy defense variable]."

Attack Variable - Enemy Defense Variable
Attack Variable + Attack [Stat]

I want to do all that before the attack, which is the normal attack skill. It's it at all possible?

I know I can set the formula to be the variable and I know how to do that, but I want to set the variable before the attack.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,267
Reaction score
5,439
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Rugman

Veteran
Veteran
Joined
Jun 11, 2020
Messages
260
Reaction score
76
First Language
English
Primarily Uses
RMMV
Put that event inside of a troop event. You can set it to run once at the start of battle or once before every turn. Use Yanfly’s base troop events plugin to copy it to all troops.
 

Latest Threads

Latest Posts

Latest Profile Posts

Of course, so, someone had covid at work today and I was exposed to them, so, I'm stuck at home for...TWO WEEKS!
oh god I'm going to die
AAAAAAAAi.png
Kind of relieved that I had medibang installed when I need to edit Sprite I was about to download gimp but I remember I had medibang installed lol
Voting for the first round of the Map Madness Tournament is now live! Vote for your favorite in each matchup!

Forum statistics

Threads
110,368
Messages
1,052,660
Members
143,402
Latest member
IBanana
Top