Yanfly - Lunatic State (How Strings works?)

Helluuuu~

I'm very dumb-dumb and I can't figure out how the "strings" works for most yanfly's plugins and couldn't find a tutorial either. I suppose in those string I could use any script call, I'm right?

What I'm trying to do right now, is to use an state that when I receive damage, the state dissapear and the actor gain 1000 HP. So I'm using the <erase effect: string> call in that state. But I can't figure out how should I wrote the string to make that the actor affected by that state gain said HP.
I'm sure there's a script call like $game.actors[id] or something like that, but I need to affect only the one with that state. How would that string being writed? or is there some tutorial for those strings/script call? I couldn't find it in all the forum.
basically "string" in this context means any sequence of program code in Ruby/RGSS3, which includes Ace script calls.
depending on context it is sometimes a condition (results in true or false) or a calculation (results in a number).

depending on which script you're using it should be able to use the placeholder variables a or b in that context - can you link to the script you've used for this?

and you'll never find a working tutorial if you're looking for plugins - Ace does not have any plugins, only scripts. Plugins were introduced with MV and MZ only and are basically a container and API to access scripts, and that API does not exist for Ace so any instruction using it will not work in Ace.
basically "string" in this context means any sequence of program code in Ruby/RGSS3, which includes Ace script calls.
depending on context it is sometimes a condition (results in true or false) or a calculation (results in a number).

depending on which script you're using it should be able to use the placeholder variables a or b in that context - can you link to the script you've used for this?

and you'll never find a working tutorial if you're looking for plugins - Ace does not have any plugins, only scripts. Plugins were introduced with MV and MZ only and are basically a container and API to access scripts, and that API does not exist for Ace so any instruction using it will not work in Ace.
Lol, I meant just scripts, I don't know why I said Plugins. My bad.
I'm using several scripts, but for what I'm trying to achieve the only important is the Lunatic State. I don't think other scripts would do something about this. I managed to make that when I have that state, and I get damaged, a common event is called. I can use that common event for the "healing" part, but I don't know how to manage to make only the actor that has the state gain HP. Of course I could use a condition for each actor, but I tried to see if there was a more easy way, cuz my game has several actors and making a condition for each would take a time. Also, I'm afraid that this method could bring some error if 2 actors are affected by the same state at the same time and got damaged at same time.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-lunatic-state-how-strings-works.147056/