How do you add a skill that boosts the power of another skill but resets after battle

CatBeanGod

Warper
Member
Joined
Mar 31, 2023
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I am working on a game and have run into an issue. An possible party member has a skill that is supposed to boost the power of another skill (fine, easy enough). However, I need the counter to reset at the end of battle since otherwise someone could grind the counter on weak enemies and then instakill a boss (also it makes more sense for the energy to be lost after battle). I cant use TP for this since I am already using it for something else currently.
 

BK-tdm

Waifumancer
Veteran
Joined
Jun 21, 2018
Messages
532
Reaction score
1,622
First Language
English
Primarily Uses
RMMV
Well you can make the boost skill boost a specific element, the offensive skill's attack element in this case which would reset after battle and if you want them to be mutually exclusive you can make up a new attack element only for that skill.

The other route is in case the boost skill "stacks" its boost, in which case you will need a variable that adds up on the boost skill use and then you use that variable as part of your damage calculation on the offensive skill (how is up to you), you can even do so that the offensive skill sets the variable back to 0 after use, common events run after skill execution so its a good place to put the reset on.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,827
Reaction score
1,372
First Language
English
Primarily Uses
RMVXA
There are some scripts that have extra parameters.
You could maybe use one to specify the boost stat and have the skill get boosted (multiplied) by the stat. Then you would just need to use a bit of code to reset the stat at the end of battle, but that shouldn't be too hard.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
3,225
Reaction score
2,594
First Language
English
Primarily Uses
RMMV
Just run an end-of-battle event on each encounter that resets the buff. My ACE guide (linked in signature) shows how to get there, only requiring to set up the base system.
 

CatBeanGod

Warper
Member
Joined
Mar 31, 2023
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I'm not sure how to add an end of battle event (other than making every future encounter event reset the variable after the battle, which is hard and annoying). Also in reference to what @BK-tdm said, the skill does in fact already reset in power when used. I am just worried about a player getting it really high against random enemies and then dealing like 1000 damage to a boss.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

oneOfUs.jpg
Streaming more Poppet Quest game even in about 12 minutes.
Some dog owners really impress me. I'm pushing 2-3 metric tons of garbage containers that destroy everything they hit. What do you think is going to happen to your tiny dog when I run it over? And why are you crossing my path to argue with me? Have you never been hit by 200kgs of garbage?

Lesson for you folks. Never mess with an angry garbage container. Or its driver.
I didn't dispose of a file properly and now my whole game won't start: I get a script error in the Scene Manager stage of game launch. What to do? Transfer it all to a new project? That's going to be tedious. Fortunately I am only nine workdays into it.

Forum statistics

Threads
131,679
Messages
1,222,170
Members
173,427
Latest member
gkgk
Top