How Do I Reference an Attacker

Okay, so I have this 'Parry' state that uses Yanfly's Lunatic States: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/

The Parry state is set to trigger per the React tag when the actor with the State would take damage (but before he actually does so).

What I want to do is reference the attack value of the attacker per the script below as indicated by X.atk:

Code:
          when /parrying/i
            if @result.hp_damage > 0 && (100 * (X.atk / (self.def * 2)) < rand(100)
              @tp += @result.hp_damage / 100
              @result.hp_damage /= 2
            end
          break
user.atk
User references the parrying character unfortunately.
Ah, forgot about that. Try this instead:
SceneManager.scene.subject.atk

Best to shorten it.
subject = SceneManager.scene.subject
subject.atk
Thanks Rinobi, works perfectly!

Also what command would I use to put this into a message window, like the ones triggered by standard skills/states?

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-reference-an-attacker.93497/