BOSSBERRY 28 Posted October 23, 2014 Is there any way to check if your skill was a succesful hit? I am looking for ANY way to solve this problem, so if its possible through an event a damage formula anything somebody please tell me. The way I'm doing it right now is I am using victors animated battle. In this script your skills are premade in the script itself. There is a feature called "conditional" where you can put in a string of code to check. What would be most helpful to me is a line of code that could be plugged into this condition so that I could have my given effect happen based on that condition. Sorry for the vagueness and roughness of this whole request, I was just trying to crank it out before bed. See you tomorrow everyone and thanks in advance. Share this post Link to post Share on other sites
Maliki 33 Posted October 24, 2014 A sound effect usually does the trick. I'm not exactly sure of the syntax tho. (I can look once I get home if you need me to.) But if you play a sound after every successful hit, then you'll know pretty much right away if it worked. Share this post Link to post Share on other sites
+ caelumania 54 Posted October 25, 2014 I'm thinking something like [insert the battler here].result.hit? You can check the hit? method in Game_ActionResult for its definition and see if it's what you are looking. You can also look at how it's being used in the item_apply method in Game_Battler. Share this post Link to post Share on other sites
TheoAllen 830 Posted October 25, 2014 (battler).result.hit? << this should do the job Share this post Link to post Share on other sites
BOSSBERRY 28 Posted October 27, 2014 Thanks everyone! Caelumania and Theo: How would I input the battler or actor? Share this post Link to post Share on other sites
TheoAllen 830 Posted October 27, 2014 Well, yes that is the question. I don't know how victor's script handle the current enemy / target battler. in my script, you can do that by put "target.result.hit?" in victor's script, the 'target' could be something else :/ Share this post Link to post Share on other sites
BOSSBERRY 28 Posted October 28, 2014 Ohhh hopefully I can just use the target settings that Victor provides, if this doesn't work I have thought of another way around the problem, but thanks everyone for the help! Share this post Link to post Share on other sites