Is Hit and Run, doable?

Greetings Forumites!
I've still been hard at work developing My Armymen games and I have yet again run into a problem with Game mechanics.

A Cornerstone of Grey Army tactics is Hit and Run, however, when I tried to use variables to keep track of the damage My squad did, it seems to damage the enemy based on how much hit points they had left .

Is there a way to Damage enemies and have them remain damaged after party has escaped combat?

Addendum; I have a Demo if My description is inadequate.

stage 1: HP 100
stage 2: damage 20, HP 100 - 20 => HP 80
stage 3: var = 80
stage 4: HP 100
stage 5: HP - var => 100 - 80 => 20

you already have *how many HP they had left* when you save the HP to variable the first time.
don't subtract HP - variable, SET HP to variable.
SET HP to variable.
How do I do that?
decrease by 999999 and then increase by variable, disable knockout
if that kills the battler, there must be something watching HP = 0 somewhere and adding a KO state... we'll work that out if it comes up.
or instead of setting, calculated damage dealt and substract that instead of calculating HP left.

and where do you set the base HP value? That is not in any screenshot
decrease by 999999 and then increase by variable, disable knockout
No death no damage, it heals right back to it's (The Slime) current Hit point value.
where do you set the base HP value?
Right I'll post what the variables draw from, for testing purposes I upped the Slime's stats to 200 HP 100 MP and 25 Def, I installed all the stats. variables and events into a new game for testing purpose and to weed out script conflict.

Variable 1 = enemy 1's MHP
Variable 2 = enemy 2's MHP
Variable 9 = enemy 1's HP
Variable 10 = enemy 2's HP
@Dragon Brother
I didn't ask for an explanation of the variables, I asked where you set the variable to that value.
A screenshot where you use a control variable command to set the starting number into that variable, and where you get that number from.

And have you tried the change I suggested?


EDIT: I just saw the added screenshot of the common event in the first post, but I don't see where that common event is called. And the command you used there will not work outside battle
And have you tried the change I suggested?
Unfortunately I do not know how to subtract with variables could You explain this?
@Dragon Brother
I'm afraid you'll have to go back to learn the basics then, because from your answers I'm guessing you don't really know what you're doing.

The change I suggested was a change in your logic, not in any commands directly.
But if you have problems like that with variables, I suggest you search for a VXA game called "Variables Guide" here on the forum. It is also linked in my "starting point" tutorial (see my signature).
That game will teach you how variables are used by playing it, and then you can open it to see how the events look like.

As for the first part of my questions above:
Your common event "Smile HP Track" is absolutely useless because it is never called and the commands inside don't work outside battle anyway.
Just compare the display of the control variable "enemy HP" when used in a troop event to when used in your common event, and you'll see what is missing in the common event.

What you want to do can be done, but it needs a more complex approach and currently I don't have the time to even start explaining that.
I suggest you take a few days to work through the variable tutorial, and then ask again - hopefully I'll have a bit more time by then.

But to point you in the correct directions here are a few questions:
Is there only one troop at one time? If not how do you keep track of which slimes were attacked previously
The troop needs to check if it has been attacked previously because it then has two different sequences: if not attacked it needs to set the variables, if attacked it needs to change the enemy values based on the variables. Currently you are always changing the enemy HP but have nothing to set the variable values.
@Andar
Understood, I will continue My efforts, I've been able to affect the battlers before, so I am that much closer.

Original thread: https://forums.rpgmakerweb.com/threads/is-hit-and-run-doable.155612/