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
700
Reaction score
103
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,512
Reaction score
11,996
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,115
Reaction score
5,811
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

I always smile to myself when I see someone do the "immediate halt and spin around" from forgetting something. I find it sort of endearing how we all do it without ever being taught to.
I've been viewing trailers and product banners on Steam as part of studying marketing for videogames, specifically JRPGs. There's a huge gap between the top and bottom in terms of quality and even a mixed review game can have a much better look than a game with great reviews. I can see why skilled publishers become attractive (for hire) to many aspiring game devs.
Celebrating a milestone over at Twitter
Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG

Forum statistics

Threads
115,260
Messages
1,088,424
Members
149,862
Latest member
raeellee
Top