and the attached picture is how I am trying to set value to the variable...
There's a fair bit wrong with that attempt. I'll detail stuff for you, but I don't know how much you're trying to learn JavaScript, so feel free to skip over it if you're just looking for a solution.
1 - You can't say "something = something else += another thing". = and += are both assignment operators, so you're trying to put another left-hand argument into the right-hand side. You would just say "something = something else + another thing"
2 - RPG Maker has no idea what "target" is. As we've mentioned previously (and it says in the plugin documentation), "target" is a variable created by your VisuStella plugins for use in various notetags. It's internal to those notetags and can't be just used wherever you like. Trihan gave you one example of how you could reference a battler outside of a notetag.
I also tried $gameVariables.value(141) == value
3 - I don't even know what you're trying to do here.
😛 == is checking equality between two things, and it returns a boolean value - true or false.
4 - If you're trying to make variable 141 equal your accumulated value, Trihan went over this in post #20 - the $gameVariables.value() method
returns a value. You can't use it to set a variable's value. That's $gameVariables.setValue().
4a - You seem to have a fair bit of confusion about operators. This is something very basic that you want to have a grasp of it you're trying to learn some JavaScript. Most of them are the same as you learned in regular math, so all of the new things you might use regularly in code are
assignment operators.
If you're intent on using a game variable for this, there's no reason to create a variable on the battler at all. Just modify the notetag I gave you with the game variable functions Trihan explained to you and you're all set.
Code:
<JS Pre-Start Action>
$gameVariables.setValue(141, 0);
</JS Pre-Start Action>
<JS Post-Damage as User>
$gameVariables.setValue(141, $gameVariables.value(141)+value);
</JS Post-Damage as User>