I have a skill that attacks all enemies and heals all allies based on the damage healed. While the skill works, the pop-ups for the healing do not: they only show on the character that used the skill, but not on the rest of the party, leading my players to think that the skill didn't work.
Is this something that can be fixed with one of Yanfly's scripts?
The skill is written like so:
Code:
c=a.atk*1.6-b.def;d=$game_party.alive_members;d.each{|f|f.hp+=(c*2.7).to_i};c
and no note tag, aside from battle symphony tags.
Is there any way to show pop-ups forit? Doesn't matter if I need to apply a notetag or a seperate script, as long as it works.
Maybe try f.change_hp((c*2.7).to_i, false)?
Can you paste your formula as it is now with that change in it?
c=a.atk*1.6-b.def;d=$game_party.alive_members;d.each{|f|f.change_hp((c*2.7).to_i, false)
I also tried
c=a.atk*1.6-b.def;d=$game_party.alive_members;d.each{|f|f.change_hp((c*2.7).to_i, false);c
You've missed the } on the end.
c=a.atk*1.6-b.def;d=$game_party.alive_members;d.each{|f|f.change_hp((c*2.7).to_i, false)};c
Sadly still only the pop-up for the user shows up.
Hmm, can you do a search in your script editor for "damage_popup"?
If you call make_damage_popups(f); does that work?
I have to add that to the formula? There's no space.
I don't know how to write it in a script call so there's more space.
There's a way to add methods to the system scripts so you can call them in a damage formula so you can have formulae that are longer than the box allows for; I'll tell you how to do this in a bit.
Still doesn't work. Deals no damage at all.
I spelled leeching wrong. Did you copy my formula? Screen shot of the skill?
The part I still get confused on is wether or not I need to put the a. in the formula.
You have leeching_shot(a,b)
could you try a.leeching_shot(a,b)
I think that's needed as you have to specify who is using the skill. the code is game_battler and it doesn't know if it is actor or enemy.
Well, it works, but..
the popup says it heals 47, but in reality, heals for 47x3.
And still only a pop-up for the character that uses it, not the party.