silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
This is probably a really simple thing, but how do I do the following

-Character A has buffs to a stat
-Character A attacks an Enemy

(here's the bit I can't seem to figure out)
-Character A loses the buffs to their stat.
 

BottleCapGames

Eventing Overlord
Veteran
Joined
Aug 19, 2017
Messages
63
Reaction score
34
First Language
English
Primarily Uses
RMMV
How long is the auto removal on your state/effect?
 

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
How long is the auto removal on your state/effect?

I'm not trying to remove a state/effect, that would be fairly easy as RPGMaker handles those separately. I also can't use states for this as those don't stack.

As it is I have the buff set to last 99 turns, since that's long enough for it to last until it gets removed.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,935
Reaction score
14,767
First Language
English
Primarily Uses
RMVXA

I've moved this thread to MV Support. Thank you.


What most people do is make a buff only last until the next action. Use it or lose it. Otherwise, you can use the damage formula to remove the buff, but I don't remember the code for that. May have to search for the thread on damage formula (for MV, as ACE is different) and see what is mentioned there.
 

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
[move]MV Support[/move]
What most people do is make a buff only last until the next action. Use it or lose it.
I thought about doing that, but given the choice I'd prefer to allow the effect to stack, in order to give more flexibility to the players.
 

Doktor_Q

I'm not a real doktor, but I am a real Q
Veteran
Joined
Aug 1, 2016
Messages
881
Reaction score
573
First Language
English
Primarily Uses
RMMV
If you're using the buff / debuff system and not states, I'm fairly sure applying a new buff will overwrite the old duration- so using another "buff until next turn" effect should stack and extend it until the next turn.
 

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
If you're using the buff / debuff system and not states, I'm fairly sure applying a new buff will overwrite the old duration- so using another "buff until next turn" effect should stack and extend it until the next turn.

1) that doesn't work.

2) even if it did, it wouldn't solve the issue of targeting, I need to target the character using the skill with the buff removal, but by default RPGmaker only allows targeting the target of the skill.
 

Doktor_Q

I'm not a real doktor, but I am a real Q
Veteran
Joined
Aug 1, 2016
Messages
881
Reaction score
573
First Language
English
Primarily Uses
RMMV
In a damage formula, you can remove the user's buff via "a.removeBuff(#); [actual damage formula here]" where the # should be the numeric ID of the stat being buffed. You'd need to put this for every single attack formula, though.
 

silent_drew

Veteran
Veteran
Joined
Aug 18, 2017
Messages
39
Reaction score
1
First Language
English
Primarily Uses
RMMV
Nevermind, I figured out how to do it with Yanfly's Action Sequences.
 

Latest Threads

Latest Profile Posts

Zombie status is now complete. I didn't have to do much in the way of changing how healing is applied to undead targets, was just a simple 3 line code. I thought I had to overhaul Game_Action lol. Everything else was doable by events. So.. Zombie: You turn undead. Your element changes to darkness. You're weak to light, you're strong to physical attacks and healing hurts you and revival items will kill you.
My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...
Terribly depressed. Worst birthday I've had in years, no motivation to work on anything. Still no income. At least I've got my computer running again.
Doing RPG Maker News for 19th September 2021

Forum statistics

Threads
115,213
Messages
1,088,099
Members
149,794
Latest member
relache
Top