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,998
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,812
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 Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,661
Members
149,913
Latest member
badalias
Top