MV [SOLVED] Conditional statements with specific actors in battle bar

Hello!
Original question:
Spoiler
I'm working on a skill that has different damage based upon which actor uses it. I was playing around with different $gameActors scripts and didn't get anywhere productive. So, I'm looking for:
if(actor is Herald){luk*5} else{if(actor is Therese){luk*4}}.
Thank you in advance!
Solution to problem:
Code:
if(a._actorId == 1){~Do the thing~}
Spoiler
I found that using the names did not work at all for me, but using the actor numbers (as indicated in the actor's tab) did work wonderfully.
You can use
actor._id == 0
or
actor._name == 'Harold'

Not sure if Id is starting from 0 or from 1, so you need to find it out by yourself.
You can use
actor._id == 0
or
actor._name == 'Harold'

Not sure if Id is starting from 0 or from 1, so you need to find it out by yourself.
Awesome!!! Thank you!
Edit: Sorry to bug you more. I have tried doing this with one of my skills, and it's not working (renders 0 damage).
Code:
if(actor._name == 'Harold'){
$gameVariables.setValue(202, $gameVariables.value(202) +1)} 
else{if(actor._name == 'Therese'){
$gameVariables.setValue(208, $gameVariables.value(208) +1)}; 
Math.round(a.mat*4 - b.mdf)
Ahhh sorry, when using in a damage forumlar, you need to type

a._name == 'Harold' or b respectively.
Ahhh sorry, when using in a damage forumlar, you need to type

a._name == 'Harold' or b respectively.
That didn't work. I tried playing around with it and this seemed to at least be valid enough to output damage:
Code:
if(a._actorName == 'Harold'){$gameVariables.setValue(202, $gameVariables.value(202) +1)}; Math.round(a.mat*3 - b.mdf)
edit: However, the variable is not adding up when Harold uses the skill. Further, it DOES work when I take out the conditional statement.
Thanks again for your help.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-conditional-statements-with-specific-actors-in-battle-bar.134300/