Hopefully this is something you guys can help with.
I want to have it so that when the player uses a skill that has the "change pose" tag tag in the note block, it changes the pose in Yami Engine Symphony - Add-on: 8D/Kaduki Battlers
Eg, player selects a Spell that has "<change pose: :channeling>" in the note block, character gets put into the "channeling" pose until either the target is cancelled or the action takes place.
Here is what I have so far:
The issue I am struggling with is identifying the battler performing the action so I can apply "force_pose_8d()" on them, as well as parsing the note block of the skill to get the value of pose to set ( "if skill && skill.note =~ /<change pose: (\S+)>/" always returns nil)
I want to have it so that when the player uses a skill that has the "change pose" tag tag in the note block, it changes the pose in Yami Engine Symphony - Add-on: 8D/Kaduki Battlers
Eg, player selects a Spell that has "<change pose: :channeling>" in the note block, character gets put into the "channeling" pose until either the target is cancelled or the action takes place.
Here is what I have so far:
Ruby:
class Scene_Battle < Scene_Base
alias ctw_casting_animation_skill_ok on_skill_ok
def on_skill_ok
skill = @skill_window.item
# Here is where I need to get the actor performing the action
# Eg...
battler = $game_party.battle_members[@actor_index]
if skill && skill.note =~ /<change pose: (\S+)>/
pose_name = $1.to_sym
battler.force_pose_8d(pose_name)
end
ctw_casting_animation_skill_ok
end
# Do the same for Enemy and Actor Cancel to reset the pose...
alias ctw_casting_animation_on_enemy_cancel on_enemy_cancel
def on_enemy_cancel
battler.force_pose_8d(":ready")
ctw_casting_animation_on_enemy_cancel
end
alias ctw_casting_animation_on_actor_cancel on_actor_cancel
def on_actor_cancel
battler.force_pose_8d(":ready")
ctw_casting_animation_on_actor_cancel
end
end
The issue I am struggling with is identifying the battler performing the action so I can apply "force_pose_8d()" on them, as well as parsing the note block of the skill to get the value of pose to set ( "if skill && skill.note =~ /<change pose: (\S+)>/" always returns nil)