FeliPereira97

Veteran
Veteran
Joined
Jun 27, 2018
Messages
33
Reaction score
2
First Language
Portuguese
Primarily Uses
RMMV
I wish to create an ability that buffs an ally's phys. defense, but debuffs the user's defense as a consequence. (A kind of transfer, but it'd be better to have the freedom to choose which stats to buff and debuff)

The game doesn't seem to give me this option. I took a look at YEP's Skill Core, and searched through google, youtube and this website. Found nothing.

Is such a skill possible?

Thanks in advance
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
stop using buffs, replace them with states so they do whatever you want.

when you want a buff do that instead:

if (target.isStateAffected(x)) {
target.removeState(x) } else {
target.addState(y) }
}

if this is a buff, x is the debuff y is the buff

with skill core you can use pre-damage or post-damage depending if you want the buff before or after the skill effect :

<After Eval>
if (target.isStateAffected(x)) {
target.removeState(x) } else {
target.addState(y) }
}
if (user.isStateAffected(y)) {
target.removeState(y) } else {
target.addState(x) }
}
<After Eval>
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,462
Reaction score
11,939
First Language
English
Primarily Uses
RMVXA
Games Mechanics Design is for looking at aspects of game play at a more conceptual level. "How do I...?" (Implementation) questions belong in the Support forum for the engine you are using.

[move]RPGMaker MV[/move]
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,081
Reaction score
5,750
First Language
English
Primarily Uses
RMVXA
Just have the skill add a state to the user. Add this to the beginning of the skill's formula (and don't forget the semicolon at the end): a.addState(x);

Replace x with the ID of the state that reduces the Defense stat. And have the skill add a Buff or State that increases Defense using the Features box, like you would for any buffing skill.
 
Last edited:

Daniasty

Warper
Member
Joined
Oct 4, 2017
Messages
4
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
I think Buff and States Core from Yanfly can do it very well manuel.
Look for it on his webpage.
 

Latest Threads

Latest Posts

Latest Profile Posts

my girlfriend calls all my little chibi art cute lol... funny considering that wasn't the original art style of the game.
100 problems in RMMZ 100 more problems take one down pass it around 101 Problems in RMMZ
Made some progress on my game, mostly mapping. Learned quite a bit in the process!.

M6eUoTT.png
16 Hr Video Course on MZ? Huge DLC Pack from MZ's RTP Artist | RPG Maker News #110

I spent the past couple of days transferring my RM2K3 project over to RMMV. I upscaled everything 3x and it looks so cute I can't T_T

Forum statistics

Threads
113,765
Messages
1,077,296
Members
147,802
Latest member
ariel638
Top