What to put in the Notetags/Damage Formula for a certain skill I have? (Question about Yanfly's Targ

Okay! So I've created a Skill called Loud Blast. It awakens an ally from Sleep, and is a Bard class exclusive skill. What I think would be really cool is if the ensuing blast ALSO hurt the enemies as well (is it possible to have it so they all get hit, but the foes in the front row take the biggest amount of damage while rows further behind take less and less damage depending on the row?), whether the ally is asleep or not.


In case you're curious, I have all of Yanfly's plugins and most are turned on save for ones I really don't need like More TP Modes or the one that fixes the FPS.


I was wondering how exactly would I do that? Would I put something in the Notetags or Damage Formula?  I sadly don't consider myself a good programmer/scripter, and the Script Call List isn't all that helpful because when I'm trying to write code in Notetags, I have no idea what I'm doing... *sigh* I need to find help for that. I need to find a tutorial or something for MV that tells me, "Okay, this is what this does. If you put this in the script, it means this."
do the damage alone in the formula box, then make a trait in the box beneath to remove sleep state.....but this will only apply to caster so, you will need the yanfly plugin that makes you choose multiple target or something of the sort?? *im not really knowledgeable with plugins o im giving you a rough idea here >.>*
I know that. I already have the Remove State Sleep in the traits.


I already said I had Yanfly's stuff! That should be obvious in the title AND my description!
ok then...im in the same position as you...i cant do scripting or programming so im trying to help with ideas ...


ok 2 ideas come to my mind, first is yanfly skill core.... this will give you the recover effect after you damage the enemies, or give you damage enemies after recover effect...


the skill formula would be something like "a.matk*2" whatever you want it to be, and scope is all enemies ...


and note-tag would be
 

Spoiler
[post-damage eval]


for (var i = 0; i < $gameParty.aliveMembers().length; ++i) {


  var actor = $gameParty.aliveMembers();


  if (actor) actor.gainHp(user.mat);

}


[/post-damage eval]


 

 


im note sure this is the correct form...but its the best i could find x,x  maybe someone can add remove state to formula instead of Hp heal


if you want the rows thing, you will need some scripting, or you can ask in damage formula thread in this sub-forum
... I don't want it to heal. I don't need a Recover Effect. 
Well, do the damage formula as normal, and have the skill call a common event that removes sleep from party. For the variant damage among rows, that's handled in the rows plugin parameters. You're going to need to set up an invisible state (resist X type of damage) for each row, then add that state to the rows you want to take less damage. So if you make this attack the 'sound' element, give middle row a state for +25 resistance,  and back row a state for +50. Hope that helps.

plugins.png
Why a Common Event?
Because the remove state function removes it from the target, which in this case is actually the enemy. So the common event will apply the beneficial part while the skill itself is the damage.
its easier to call a common event than to script, plus common event works in battle

Original thread: https://forums.rpgmakerweb.com/threads/what-to-put-in-the-notetags-damage-formula-for-a-certain-skill-i-have-question-about-yanflys-targ.61097/