I am currently working on a skill system script. Therefore i need to find out whether the skill-target is an actor or an enemy. To get started i had a look at Fomars "IncreaseSkillLvlByUse" script. He uses the "def item_apply(user, item)" method from "Game_Battler" to recognize the use of a skill.
However, this does not work for me, as i need the target to find out whether it is an actor or an enemy. I messed around with the "@result" variable, which did not work (obviously because the comment at it was not clear and i couldnt find anything in the docs.)
After some search i found the class "Game_Action" and specifically the method evaluate_item_with_target(target).
Which does not get called during battle, as it seems....
So could someone pls point me to the method where a skill is used and i can get the target (actor or enemy) and therefore its database id?
Edited by stderr, 21 July 2014 - 10:55 AM.