MV Skill helllpppp

So yh i decide to return to rpg devving for ce, and uhhhh yh i looked at my notes and theirs a few things i wanted help with:

btw i have all yanfly plugins and most olivia plugins, and could buy any plugins requited for any of my skills below:

"a passive that increases; (either damage, defence or crit rate) the lower the units current hp is."
"a ""bleed"" state that stacks every time its inflicted"

now heres a doozey

"a "magia drive" passive state, where a certain number of turns need to pass (3 for example), then it applies 1 or more states to the unit"

any help i would love<3

gfd
Welcome back! Can you edit your thread to have a title that describes the support issue? “Bruh, hello again,” is not a good support thread title. Thank you!
Welcome back! Can you edit your thread to have a title that describes the support issue? “Bruh, hello again,” is not a good support thread title. Thank you!
ooh yesh, no problemo sorry bout that
"a passive that increases; (either damage, defence or crit rate) the lower the units current hp is."
Is ether damage supposed to be magic? an element? changing battler stats directly through code isnt the easiest, but you can very easily change damage dealt/taken
Code:
<Custom Respond Effect>
if (this.isDamage())
  value = Math.ceil(value * (1 - (-target.hpRate()*.2+.2)));
</Custom Respond Effect>

<Custom Confirm Effect>
if (this.isDamage())
  value = Math.ceil(value * (1 + (-user.hpRate()*.2+.2)));
</Custom Confirm Effect>
now damage taken is reduced and damage dealt is increased the lower the battler with that state's hp is up to 20%. then you can just change the if statement to be more particular about what it increases/decreases beyond just damage

"a ""bleed"" state that stacks every time its inflicted"
Code:
<Custom Apply Effect>
user._bleed = user._bleed + 10 || 10;
user.setStateCounter(stateId, user._bleed);
</Custom Apply Effect>

<Custom Regenerate Effect>
user.gainHp(-user._bleed);
<Custom Regenerate Effect>

<Custom Remove Effect>
delete user._bleed
<Custom Remove Effect>

"a "magia drive" passive state, where a certain number of turns need to pass (3 for example), then it applies 1 or more states to the unit"
number of turns from the start of battle and only the start of battle? is the state it applies temporary?
Code:
<Custom Turn Start Effect>
if ($gameTroop.turnCount()==4)
  user.addState(applied state's Id);
</Custom Turn Start Effect>
that just adds the state after 3 turns have passed. if its just one state youre applying, you can just have the passive have the effect and give the passive a requirement that more than 3 turns must have passed
Code:
<Custom Passive Condition>
condition = $gameTroop.turnCount() > 3;
</Custom Passive Condition>
Is ether damage supposed to be magic? an element? changing battler stats directly through code isnt the easiest, but you can very easily change damage dealt/taken
Code:
<Custom Respond Effect>
if (this.isDamage())
  value = Math.ceil(value * 1 - (-target.hpRate()*.2+.2));
</Custom Respond Effect>

<Custom Confirm Effect>
if (this.isDamage())
  value = Math.ceil(value * 1 + (-user.hpRate()*.2+.2));
</Custom Confirm Effect>
now damage taken is reduced and damage dealt is increased the lower the battler with that state's hp is up to 20%. then you can just change the if statement to be more particular about what it increases/decreases beyond just damage


Code:
<Custom Apply Effect>
user._bleed = user._bleed + 10 || 10;
user.setStateCounter(stateId, user._bleed);
</Custom Apply Effect>

<Custom Regenerate Effect>
user.gainHp(-user._bleed);
<Custom Regenerate Effect>

<Custom Remove Effect>
delete user._bleed
<Custom Remove Effect>


number of turns from the start of battle and only the start of battle? is the state it applies temporary?
Code:
<Custom Turn Start Effect>
if ($gameTroop.turnCount()==4)
  user.addState(applied state's Id);
</Custom Turn Start Effect>
that just adds the state after 3 turns have passed. if its just one state youre applying, you can just have the passive have the effect and give the passive a requirement that more than 3 turns must have passed
Code:
<Custom Passive Condition>
condition = $gameTroop.turnCount() > 3;
</Custom Passive Condition>
OOOH yesh thanks so much for this, ill try them out and give my feedback
Is ether damage supposed to be magic?
It says either 🤣
either damage
It says either
*squints*
So it does Turan, so it does 🤣. Looks like the optometrist is going to be seeing me earlier than expected this year 😎
Is ether damage supposed to be magic? an element? changing battler stats directly through code isnt the easiest, but you can very easily change damage dealt/taken
Code:
<Custom Respond Effect>
if (this.isDamage())
  value = Math.ceil(value * (1 - (-target.hpRate()*.2+.2)));
</Custom Respond Effect>

<Custom Confirm Effect>
if (this.isDamage())
  value = Math.ceil(value * (1 + (-user.hpRate()*.2+.2)));
</Custom Confirm Effect>
now damage taken is reduced and damage dealt is increased the lower the battler with that state's hp is up to 20%. then you can just change the if statement to be more particular about what it increases/decreases beyond just damage


Code:
<Custom Apply Effect>
user._bleed = user._bleed + 10 || 10;
user.setStateCounter(stateId, user._bleed);
</Custom Apply Effect>

<Custom Regenerate Effect>
user.gainHp(-user._bleed);
<Custom Regenerate Effect>

<Custom Remove Effect>
delete user._bleed
<Custom Remove Effect>


number of turns from the start of battle and only the start of battle? is the state it applies temporary?
Code:
<Custom Turn Start Effect>
if ($gameTroop.turnCount()==4)
  user.addState(applied state's Id);
</Custom Turn Start Effect>
that just adds the state after 3 turns have passed. if its just one state youre applying, you can just have the passive have the effect and give the passive a requirement that more than 3 turns must have passed
Code:
<Custom Passive Condition>
condition = $gameTroop.turnCount() > 3;
</Custom Passive Condition>
do i replace addState with the state id in the 2nd to last one?
do i replace addState with the state id in the 2nd to last one?
replace whats in between the parentheses with the id. eg. user.addState(13);

Original thread: https://forums.rpgmakerweb.com/threads/skill-helllpppp.165430/