Hi all,
I feel like this one has to have been addressed previously, but I've been searching around and haven't quite found a solution. There's one for MZ that involves a troop page that doesn't resemble the one I'm looking at in MV.
Simple goal -- when my main actor takes any damage during battle, I'd love for him to play an appropriate sound effect, even like a little grunt or "ow!". Ideally a random SE from amongst a few SE's.
Even better would be the ability to choose from a different pool of SE's depending on how much damage he takes. Like a little "owee" from taking 5 damage, to a nice big YAAAAGH on taking big dmg.
I feel like this ought to be doable without plugins but I haven't figured out a solution. I considered having a parallel event running throughout the entire game that keeps checking for damage like every 5 frames or so, but a) I would still need some way to store HP values and compare the new ones, which might work but I can't figure out how to make that work with a parallel event (also that solution would add to overhead).
Ideal I think would be just some way to run a Common Event upon taking a hit. But even there I would need to access the final damage number the engine has tallied from the damage formulas.
Anyone have any ideas? Thank you!
c
EDIT: Looking over the MZ solution again, which is here, I see that this indeed would apply to MV, but I'm not sure I understand how the provided solution works. I think I can probably figure it out, so I'll test it now and report back ...
EDIT 2: Okay so I've tested this out and I cannot get it to work -- but at least now it seems like a problem of my inexperience with Battle Events.
According to this solution by @JohnDoeNews I have two event pages on my test troop:
And then a second page:
The assigning HP values to variables works fine, but all of it takes place at the beginning of each new turn, instead of at the end of the turn where the damage happens.
I've always been horrible at figuring out how to get things to happen at the right spot in turns, so I'm not surprised this is confuzzling me.
Hoping someone who knows their stuff can help -- thanks again!
EDIT 3: Solved it, the problem was in overcomplicating things.
The first page, establishing the initial HP level, works fine, but then the second page should simply happen at the end of each turn. Not sure why the fancy Turn condition was necessary for the other requester's use case but it doesn't seem to apply here.
Of course, it's still not truly ideal because I will need to copy these pages to every single troop, so if anyone can suggest a cleaner, easier solution, kindly point me in the right direction
I feel like this one has to have been addressed previously, but I've been searching around and haven't quite found a solution. There's one for MZ that involves a troop page that doesn't resemble the one I'm looking at in MV.
Simple goal -- when my main actor takes any damage during battle, I'd love for him to play an appropriate sound effect, even like a little grunt or "ow!". Ideally a random SE from amongst a few SE's.
Even better would be the ability to choose from a different pool of SE's depending on how much damage he takes. Like a little "owee" from taking 5 damage, to a nice big YAAAAGH on taking big dmg.
I feel like this ought to be doable without plugins but I haven't figured out a solution. I considered having a parallel event running throughout the entire game that keeps checking for damage like every 5 frames or so, but a) I would still need some way to store HP values and compare the new ones, which might work but I can't figure out how to make that work with a parallel event (also that solution would add to overhead).
Ideal I think would be just some way to run a Common Event upon taking a hit. But even there I would need to access the final damage number the engine has tallied from the damage formulas.
Anyone have any ideas? Thank you!
c
EDIT: Looking over the MZ solution again, which is here, I see that this indeed would apply to MV, but I'm not sure I understand how the provided solution works. I think I can probably figure it out, so I'll test it now and report back ...
EDIT 2: Okay so I've tested this out and I cannot get it to work -- but at least now it seems like a problem of my inexperience with Battle Events.
According to this solution by @JohnDoeNews I have two event pages on my test troop:
And then a second page:
The assigning HP values to variables works fine, but all of it takes place at the beginning of each new turn, instead of at the end of the turn where the damage happens.
I've always been horrible at figuring out how to get things to happen at the right spot in turns, so I'm not surprised this is confuzzling me.
Hoping someone who knows their stuff can help -- thanks again!
EDIT 3: Solved it, the problem was in overcomplicating things.
The first page, establishing the initial HP level, works fine, but then the second page should simply happen at the end of each turn. Not sure why the fancy Turn condition was necessary for the other requester's use case but it doesn't seem to apply here.
Of course, it's still not truly ideal because I will need to copy these pages to every single troop, so if anyone can suggest a cleaner, easier solution, kindly point me in the right direction
