Is there any way on having a state that damages someone, but not the one who is under the state , but the one who attacks the one who is under that state?
I don't care if such a state can only work on the actors.
I already have Lunatic states I will check about the addon you say
You can do it in the damage formula.
Though the damage won't be displayed the same way. (It'll just happen.)
You can put:
dam = a.atk * 4 - b.def *2; if b.state?(x); a.hp-= dam/5; end; dam
Where x is the state you use for this.
Edit: If you have Lunatic States and know how to use it, that would be a good way to go.
I nearly posted something very similar (I'd put the if clause at the beginning), but then decided that this approach won't work.
I think the OP wants the damage to be to whoever attacks this actor/enemy, not that it is a function of a specific skill. For the damage formula to work, this if clause would have to go into every skill that might be used against that troop, including the default attack.
Right. I actually scripted my game to do just that for all physical attacks, so yeah you're right.
So, Lunatic States it is!
😀
That common shock was only meant to read in one line (there might be a way to change it to eval two lines, but I don't know it, and I foresee many problems if you just add a second line with a [2] instead of the [1]). I think you'll have to use the full add-on posted in that other thread for it to work well.
I must be missing something.
Because nothing seems to happen...
Ok seems like I solved it. Thanks guys.