You can put
v[3] in front of your damage formula to assign it to variable 3. (Note: if your formula has any semicolons in it, put that after the last semicolon.)
However, I think that won't give you the result you want. You probably want the
final damage actually applied to the actor, right? But the value in the damage formula is just a base damage value which is then adjusted for several different factors.
Reading your post in more detail though, I think you may be approaching the problem from the wrong angle. It sounds like what you should be looking for is not a way for your QTE to fiddle with your damage, but rather a way for your damage formula to see the state of the QTE. If that's the case, all you need to do is set a variable on the actor. I don't know anything about your QTE, but if you write code like the following in it:
JavaScript:
$gameTroop.members()[1].perfectQte = true
Then in your enemy's damage formula you can do something like:
JavaScript:
(a.perfectQte ? 0.5 : 1) * (the rest of your damage formula)
You'll want to make sure you set
perfectQte back to false somewhere, otherwise hitting it perfectly once will halve the damage forever.