Effect, Add buff, DEF+25% is too much!

Hello,

"Using Yanfly: Engine, battle engine, victory aftermath."

I'd like to create a protect magic that rise current DEF by 10%.

I know there is an "effect setting", Parameters Tab, Add Buff, DEFEND 25%.

The problème is, I dont want 25% cause that's a way to much for what I need.

I tried to figure out another way with a "State" effect with a Features setting,

Parameters Tab, Parameter, DEF *110%.

This give exactely the state I wanted... but in the battle, when casting the

"Protect" Spell, the state popups as red instead of yellow, and that disturb me

a lot.

Does someone can help me to clear my mind?

Add: why some of benefit states popups as red?! I think about PROVOKE, GUARD, ...

[SIZE=12pt]Thanks in advance.[/SIZE]
Can you post a screenshot of what it looks like?

Perhaps you just need to adjust the popup settings within the Battle engine script you're using.

If I recall correctly, Yanfly's battle engine has a whole section where you can configure the color of popups.
Buffs are hard-coded to 25%.

You can change this in Game_BattlerBase using the following method:

#-------------------------------------------------------------------------- # * Get Rate of Change Due to Parameter Buff/Debuff #-------------------------------------------------------------------------- def param_buff_rate(param_id) @buffs[param_id] * 0.25 + 1.0 endJust change 0.25 to 0.10 to make it 10% instead.

Note, however, that this will change the increase to 10% for ALL buffs in the game.  To make each type of buff different, you'd need a more complex script.
for the color of the popup..

you could use Yami add-on if I'm not wrong...

https://yamiworld.wordpress.com/2011/12/10/yeas-add-on-damageheal-popup-image/the script :

Code:
[URL="https://github.com/suppayami/rmvxa-collection/blob/master/Battle%20Damage%20Popup.rb"]https://github.com/suppayami/rmvxa-collection/blob/master/Battle%20Damage%20Popup.rb[/URL]
If you only want one buff to be 10%, just create a state with that amount, and then use your skill to apply that state rather than the default buff.  You could also vary the number of turns it lasts while your at it, if you want to.

I have a range of states for non-default buffs and debuffs, and it seems to work pretty well.  You can use them for any Ex-Paramater or Sp-Parameter as well.
@Fernyfer775

I think there is something like that, but I am a totaly noob with "string" stuffs and I dont have any idea how to us it...

EDIT:  This?

# -----------------------------------------------------------------------------
# State Notetags - These notetags go in the state notebox in the database.
# -----------------------------------------------------------------------------
# <popup add: string>
# <popup rem: string>
# <popup dur: string>
# Status effects now create popups whenever they're inflicted. However, if you
# don't like that a certain status effect uses a particular colour setting,
# change "string" to one of the rulesets below to cause that popup to use a
# different ruleset.
#
# <popup hide add>
# <popup hide rem>
# <popup hide dur>
# Not everybody wants status effects to show popups when inflicted. When this
# is the case, insert the respective tag to hide popups from appearing when the
# state is added, removed, or during the stand-by phases.

@Wavelength

Thank you for it, I just found out it possible to cast it twice on the same target and it double the effect and I dont want it.

I'd like to know if it's possible to make it forbiden to recast on it. Or not boost the effect.

@Watcules

Thank you, I'll check it out.

@ksjp17

That's exactely my second choice, it works perfectely. I just have to find out how to get the wanted popups color.
I went ahead and pulled up the script itself:

Pay heed to the bolded part - that's where you will edit what color you want the popup to be.

Spoiler
# The following are the various rules that govern the individual popup
# types that will appear. Adjust them accordingly. Here is a list of what
# each category does.
# Zoom1 The zoom the popup starts at. Values over 2.0 may cause lag.
# Zoom2 The zoom the popup goes to. Values over 2.0 may cause lag.
# Sz The font size used for the popup text.
# Bold Applying bold for the popup text.
# Italic Applying italic for the popup text.
# Red The red value of the popup text.
# Grn The green value of the popup text.
# Blu The blue value of the popup text.
# Font The font used for the popup text.
POPUP_RULES ={
# Type => [ Zoom1, Zoom2, Sz, Bold, Italic, Red, Grn, Blu, Font]
"DEFAULT" => [ 2.0, 1.0, 24, true, false, 255, 255, 255, DEFAULT],
"CRITICAL" => [ 2.0, 1.0, 24, true, false, 255, 80, 80, DEFAULT],
"HP_DMG" => [ 2.0, 1.0, 36, true, false, 255, 255, 255, DEFAULT],
"HP_HEAL" => [ 2.0, 1.0, 36, true, false, 130, 250, 130, DEFAULT],
"MP_DMG" => [ 2.0, 1.0, 36, true, false, 220, 180, 255, DEFAULT],
"MP_HEAL" => [ 2.0, 1.0, 36, true, false, 160, 230, 255, DEFAULT],
"TP_DMG" => [ 2.0, 1.0, 36, true, false, 242, 108, 78, DEFAULT],
"TP_HEAL" => [ 2.0, 1.0, 36, true, false, 251, 175, 92, DEFAULT],
"ADDSTATE" => [ 2.0, 1.0, 24, true, false, 240, 100, 100, DEFAULT],
"REMSTATE" => [ 2.0, 1.0, 24, true, false, 125, 170, 225, DEFAULT],
"DURSTATE" => [ 2.0, 1.0, 24, true, false, 255, 240, 150, DEFAULT],
"DRAIN" => [ 2.0, 1.0, 36, true, false, 250, 190, 255, DEFAULT],
"POSITIVE" => [ 2.0, 1.0, 24, true, false, 110, 210, 245, DEFAULT],
"NEGATIVE" => [ 2.0, 1.0, 24, true, false, 245, 155, 195, DEFAULT],
"WEAK_ELE" => [ 0.5, 1.0, 24, true, false, 240, 110, 80, DEFAULT],
"IMMU_ELE" => [ 0.5, 1.0, 24, true, false, 185, 235, 255, DEFAULT],
"REST_ELE" => [ 0.5, 1.0, 24, true, false, 145, 230, 180, DEFAULT],
"ABSB_ELE" => [ 0.5, 1.0, 24, true, false, 250, 190, 255, DEFAULT],
"BUFF" => [ 2.0, 1.0, 24, true, false, 255, 240, 100, DEFAULT],
"DEBUFF" => [ 2.0, 1.0, 24, true, false, 160, 130, 200, DEFAULT],
} # Do not remove this.
Ok I did some test and it looks to "string".

I dont understand DURSTATE. What does "DUR" mean?

ADDitional ok / REMove / DUR???

Does the STATE lands 100% on the ally target or there is a chance "0.0001% miss?

I wondering, because of the setting "1000%"

In the skill setting, I put the "PROTECT 10% STATE" I setted and it can go up to 1000%.

Does the "1000%" is needed for a target that is a foe?
Unless I'm missing something, this is an easy setup.
 

Spoiler
L9bEg67.png
fiUgVnU.png

Original thread: https://forums.rpgmakerweb.com/threads/effect-add-buff-def-25-is-too-much.39186/