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
701
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,997
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

so... I decided since a park was an area in my game... here's an enemy that's slide with a hand behind it. cause why not.
Hot chocolate and music make studying and note-taking much easier :kaoluv:
Until my hand cramps up from writing too much!
Doing RPG Maker News for 21st September 2021


Malak is still waiting for Dark Deception Chapter 4... This was him yesterday after another sugar crash.
Again, he's fine. He's just bored at this point, considering he's exhausted his entire vacation bucket list.
Am I the only one who files custom resources under specific folders to remember who to credit? :kaoswt2:
1632263519730.png

Forum statistics

Threads
115,270
Messages
1,088,486
Members
149,875
Latest member
BlaireBear1
Top