Hello beutiful people of this marvelous forum! It's me! The annoying dev that doesn't know how to do any on ruby!
So, here's a problem I'm dealing with:
I'm using Yanfly's Lunatic State to make several effects on my game.
I'm right now scratching my head with this one (and I'm pretty sure I made a similar post a year ago or so...? any ways I couldn't find it, but I'm pretty sure the question was a little different. Still:
I'm trying to create a react state that before you take damage, a choice pop up to see how the actor want to react to that attack, so here's the effect I created:
Ignore the double "wait_for_message", I was trying stuff to see if I could handle the problem...
There's the react effect on the said state in case you were wondering.
And here's the common event:
Yes, I also used the double wait for message there just to try it out...
(If you see something weird in this script call besides the wait for message please make me note it.)
Now the problem as the tittle state is that the react effect doesn't wait for the damage, but it pop the choice at the moment I take the damage:
Is there a way to fix this? Or maybe, do you think there's an alternative to pop up a choice call BEFORE taking the damage? I tried to use the script call for the choices in the same react effect, but the script cannot handle the @game_actor something with the choices for some reason. Like is trying it to associate the choices with the current player or I don't know. So I tryed it using a common event instead, but yeah... this happen.
Anyways, as always, any help is welcome! And sorry in advance if my explanation wasn't very clear.
EDIT: Oh, another thing I just noticed... the common event can't know who the "self." for the "force action" is refering when is called. I think I can fix this with a variable. But in case you know a better alternative, that's also welcome.
So, here's a problem I'm dealing with:
I'm using Yanfly's Lunatic State to make several effects on my game.
I'm right now scratching my head with this one (and I'm pretty sure I made a similar post a year ago or so...? any ways I couldn't find it, but I'm pretty sure the question was a little different. Still:
I'm trying to create a react state that before you take damage, a choice pop up to see how the actor want to react to that attack, so here's the effect I created:
Ignore the double "wait_for_message", I was trying stuff to see if I could handle the problem...
There's the react effect on the said state in case you were wondering.
And here's the common event:
Yes, I also used the double wait for message there just to try it out...
(If you see something weird in this script call besides the wait for message please make me note it.)
Now the problem as the tittle state is that the react effect doesn't wait for the damage, but it pop the choice at the moment I take the damage:
Is there a way to fix this? Or maybe, do you think there's an alternative to pop up a choice call BEFORE taking the damage? I tried to use the script call for the choices in the same react effect, but the script cannot handle the @game_actor something with the choices for some reason. Like is trying it to associate the choices with the current player or I don't know. So I tryed it using a common event instead, but yeah... this happen.
Anyways, as always, any help is welcome! And sorry in advance if my explanation wasn't very clear.
EDIT: Oh, another thing I just noticed... the common event can't know who the "self." for the "force action" is refering when is called. I think I can fix this with a variable. But in case you know a better alternative, that's also welcome.