So, here is the thing. I managed to understand how Yanfly Lunatic State works.
What I did is an state when I get damaged, I gain 1000 HP back.
The state I create make that when I get damaged, it store the ID of my actor in a variable. (Let's say its variable 36) and then it call a common event. In that common event, it make that the actor(variable 36) gain 1000 HP.
So far it work perfect. But then there's a problem, when 2 or more actors have the same state and get damaged at the same time with an "all enemies" attack, only the last one in the line will be affected by the lunatic state.
So the idea to fix this was to make that the variable 36 was the ID of actor 1. Then variable 37 is actor 2 and so. But I'm not sure how to make this. I tried this line:
but so far is not changing not a single variable.
(I'm sorry, I'm very dumb with script calls and coding)
What I did is an state when I get damaged, I gain 1000 HP back.
The state I create make that when I get damaged, it store the ID of my actor in a variable. (Let's say its variable 36) and then it call a common event. In that common event, it make that the actor(variable 36) gain 1000 HP.
So far it work perfect. But then there's a problem, when 2 or more actors have the same state and get damaged at the same time with an "all enemies" attack, only the last one in the line will be affected by the lunatic state.
So the idea to fix this was to make that the variable 36 was the ID of actor 1. Then variable 37 is actor 2 and so. But I'm not sure how to make this. I tried this line:
Code:
$game_variables[36 + $game_party.members[index]] = self.id
but so far is not changing not a single variable.
(I'm sorry, I'm very dumb with script calls and coding)