Skill Damage using another Actor Stat

With the current plugins, is it possible to calculate a skill damage using the states of a character that doesn't participate in the action? For example: actor A attacks the enemy, but the skill deals damage based on actor C atk stat instead of actor A.
The damage formula allows any valid js code to be used. so instead of "a.atk" you could, for example. use "$gameActors[X].atk".
I've wanted to do the other way around: When a hits b, c gets a little heal, c being non-a party member.
The damage formula allows any valid js code to be used. so instead of "a.atk" you could, for example. use "$gameActors[X].atk".
is there a way to make it the member in (x)th slot in the formation?
@Hexar260 , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-damage-using-another-actor-stat.55602/