Passive self damage

Hi there,

I have created a class which is very powerfull but for balance i would like to add lets say trait or passive skill which would have 20% chance to confuse hero after each skill or basic attack.
Is it possible?

Thanks 🙂
This can be done through a passive state with the right plugins. The plugins you'll need are:

http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/

The effect will require what Yanfly calls Lunatic Mode. For the state, use this code:

<Custom Conclude Effect>
var chance = Math.random();
if (chance < 0.2) {
user.addState(ConfuseID#);
}
</Custom Conclude Effect>

Then use this notetag in the class:

<Passive State: StateID#>
This can be done through a passive state with the right plugins. The plugins you'll need are:

http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/

The effect will require what Yanfly calls Lunatic Mode. For the state, use this code:

<Custom Conclude Effect>
var chance = Math.random();
if (chance < 0.2) {
user.addState(ConfuseID#);
}
</Custom Conclude Effect>

Then use this notetag in the class:

<Passive State: StateID#>

Perfect!! I will try it as soon as i will get home. Thanks shockra you are awesome! 🙂
Hi there,

So i tried it and i am doing soemthign wrong.
I have created State "Insane mind" on position 0014 and i have added
<Passive State: 14> into class note. At this time every battle my character starts as confused.

So i put this into State notes
<Custom Conclude Effect>
var chance = Math.random();
if (chance < 0.2) {
user.addState(ConfuseID#);
}
< /Custom Conclude Effect>

But i dont know what is ConfuseID#? I put there number 14 there but no change, my hero is still confused from beggining of battle till his end

EDIT: Cant upload images as none of the upload pages works here.....
you don't need a plugin for that.
you can use the skill's own damage formula.
provided it's just one or two skills that do one simple thing, like adding a state, you don't need a larger framework for it.
you don't need a plugin for that.
you can use the skill's own damage formula.
provided it's just one or two skills that do one simple thing, like adding a state, you don't need a larger framework for it.
You are right, i can use simple command (i forgot thanks 🙂 )
Effects->Add state-> Insane Mind 20% and add this Effect line into each skill this Class is using.

But what about basic attack? i know that i can add same Effect line as above intoSkills->0001 Attack but that would mean that even other classes would be effected if they would use Basic attack right?
using the Add State command only adds the state to the *target* of that attack.
if you want to add a state for *self-damage* you have to use the formula.
they both happen sequencially, one after the other.
the only one that picks both the initiator of the action and the reciever of the effect, is the formula.
the effects list only affect the reciever.
Hi there,

So i tried it and i am doing soemthign wrong.
I have created State "Insane mind" on position 0014 and i have added
<Passive State: 14> into class note. At this time every battle my character starts as confused.

So i put this into State notes
<Custom Conclude Effect>
var chance = Math.random();
if (chance < 0.2) {
user.addState(ConfuseID#);
}
< /Custom Conclude Effect>

But i dont know what is ConfuseID#? I put there number 14 there but no change, my hero is still confused from beggining of battle till his end

EDIT: Cant upload images as none of the upload pages works here.....

That's not quite what I meant. Maybe I should have been clearer, but you'll need TWO different states for this to work. The passive state has the notetag for the class.

<Custom Conclude Effect>
var chance = Math.random();
if (chance < 0.2) {
user.addState(14);
}
< /Custom Conclude Effect>

Assuming state 14 is the confusion state, the passive should be a completely different state. Let's say 20 for the sake of this conversation. In the class notes:

<Passive State: 20>
Oh i understand now, my fault sorry 🙂

Thats great! Finally my hero will be happy 😀

Original thread: https://forums.rpgmakerweb.com/threads/passive-self-damage.86192/