Hi everyone, how can I access the target of a skill during Scene_Battle?
I'm modifying Yanfly Visual Battlers(https://yanflychannel.wordpress.com/rmvxa/battle-scripts/visual-battlers/), I wanted for the actor to step forward only if the target is an enemy, and remaining still while guarding, healing, or buffing allies, this is the method which handles that:
I thought I could use the equivalent of b in the damage formula, but I can't find how to access that, I tried !BattleManager.target.actor? , but target is not a valid method, then I tried "opposite?(@subject)" , the method from Game_Battler class, but I'm not sure how to access it too.
Help! Please 🙁
I'm modifying Yanfly Visual Battlers(https://yanflychannel.wordpress.com/rmvxa/battle-scripts/visual-battlers/), I wanted for the actor to step forward only if the target is an enemy, and remaining still while guarding, healing, or buffing allies, this is the method which handles that:
#method inside class Scene_Battle < Scene_Base#--------------------------------------------------------------------------# alias method: execute_action#--------------------------------------------------------------------------alias scene_battle_execute_action_vb execute_actiondef execute_actionstart_battler_move_forward # unless current skill/item target is an actor(how to check this?)scene_battle_execute_action_vbend#--------------------------------------------------------------------------# new method: start_battler_move_forward#--------------------------------------------------------------------------def start_battler_move_forward return if @subject.started_turn @subject.started_turn = true @subject.move_forward wait_for_movingend
Help! Please 🙁