Snippet Request - Display Animation when Counterattacking

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
158
Reaction score
11
First Language
Portuguese
Primarily Uses
RMVXA
Good Morning / Day / Afternoon / Evening everyone.

I have a request for a certain kind of snippet

By default, counter attacks don't seem to show any animation, not even the actor's attack animaton.

So I would like the following:

1. Showing battle animations for counterattacks

If this isn't too difficult I would really appreciate the help
 

cremnophobia

Veteran
Veteran
Joined
Dec 10, 2013
Messages
207
Reaction score
88
Primarily Uses
This worked in my few test battles but I'm not completely satisfied: there might issues with dual wielding, etc. If other battle system modifications are used search for def invoke_counter_attack to check if they're compatible (no results).
Ruby:
class Scene_Battle
  def invoke_counter_attack(target, item)
    @log_window.display_counter(target, item)
    attack_skill = $data_skills[target.attack_skill_id]

    target, @subject = @subject, target
    show_animation([target], attack_skill.animation_id)
    target, @subject = @subject, target

    @subject.item_apply(target, attack_skill)
    refresh_status
    @log_window.display_action_results(@subject, attack_skill)
  end
end
 
Last edited:

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
158
Reaction score
11
First Language
Portuguese
Primarily Uses
RMVXA
on a default battle system with no scripts on it... it works just fine... I'm using the default battle system with a lot of different scripts.... still doesn't work. one of the scripts must be causing the issue....

The other request I made with Tsuki's battle reaction sounds more feasable, as then using probabilities I can create a counterattack state that functions like I wanted it to.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

lunarrosecrow wrote on hiddenone's profile.
please don't lurk hiddenone I'm quarantining!!!
lunarrosecrow wrote on Edward.T's profile.
Hello Edward sorry to bother you and didn't start a conversation cause I thought i'd be a little weird or disrespectful but I was wondering do you still have your Generator resources you posted as the links on the page are dead?
Stream will be live shortly! It is my birthday, and thus I am doing an extended stream! I will be doing a variety of things. Among the activities I will be doing: Playing Oceanhorn: Monster of the Uncharted Seas, art, and some Text Adventure~ Feel free to drop by!
It would be cool if you could "copy as code" event commands :< .
Just managed to recover my Yahoo e-mail that i lost 3 months ago. Turns out an IP from U.S had hacked it and set the pass back to normal.. Like WTF ?

Forum statistics

Threads
99,485
Messages
965,925
Members
131,112
Latest member
Reji
Top