I feel like this would be a very easy thing to figure out, or at least have some sort of clear answer, but I can't seem to find what I'm looking for.
The Goal
I have a certain hit skill that has a chance to inflict a state on an enemy target. I want this skill to display a message in the battle log depending on if it inflicted the state or not. It would display a "success" message if it worked, while it would display a "failure" message if it didn't.
What I have done so far
At first, I searched the forums and failed to really find anything that matched what I was going for, which is kinda weird, but not really something I could do anything about. But, I did gather that I should probably use a common event to pull it off.
I went ahead and created a common event that would check if the target of the skill was afflicted by the state and placed it underneath the effect that would inflict the state in the first place. In my head I thought that this would work perfectly fine, let the skill try and place the effect and allow the event to react accordingly.
Although the skill worked in inflicting the state, it failed to present the "success" message and would always react with the "failure" message. I wasn't entirely sure why this wasn't working and attempted a few different formats of basically the same thing to see if that was the issue.
I made the conditional branch use the drop down (if enemy is affected by state) for the first test, so I tried to replace it with a damage formula type code that I kinda doubted would work: ( if [b.isStateAffected(state)] ). This also didn't work, and I tried to use the troop tab's battle events to write the same event codes for two separate tests that both failed.
Currently...
I'm a bit worried that I can't figure this out myself, nor find anything in the forums that say much about this type of situation. This is definitely a simple thing I know is going to be common for my project if I make more skills that have special messages at all, and I don't want to really scrap it because it just adds more character to the battle system in general. It would be a real shame if I couldn't put things like this in at all.
If anyone can explain how to go about solving this, I will be very grateful. Whether it be a plugin or something I can already do without them, I don't mind much either way, but I would prefer the latter. Also, if anymore information is needed to come to a solution, I'll be happy to elaborate.
The Goal
I have a certain hit skill that has a chance to inflict a state on an enemy target. I want this skill to display a message in the battle log depending on if it inflicted the state or not. It would display a "success" message if it worked, while it would display a "failure" message if it didn't.
What I have done so far
At first, I searched the forums and failed to really find anything that matched what I was going for, which is kinda weird, but not really something I could do anything about. But, I did gather that I should probably use a common event to pull it off.
I went ahead and created a common event that would check if the target of the skill was afflicted by the state and placed it underneath the effect that would inflict the state in the first place. In my head I thought that this would work perfectly fine, let the skill try and place the effect and allow the event to react accordingly.
Although the skill worked in inflicting the state, it failed to present the "success" message and would always react with the "failure" message. I wasn't entirely sure why this wasn't working and attempted a few different formats of basically the same thing to see if that was the issue.
I made the conditional branch use the drop down (if enemy is affected by state) for the first test, so I tried to replace it with a damage formula type code that I kinda doubted would work: ( if [b.isStateAffected(state)] ). This also didn't work, and I tried to use the troop tab's battle events to write the same event codes for two separate tests that both failed.
Currently...
I'm a bit worried that I can't figure this out myself, nor find anything in the forums that say much about this type of situation. This is definitely a simple thing I know is going to be common for my project if I make more skills that have special messages at all, and I don't want to really scrap it because it just adds more character to the battle system in general. It would be a real shame if I couldn't put things like this in at all.
If anyone can explain how to go about solving this, I will be very grateful. Whether it be a plugin or something I can already do without them, I don't mind much either way, but I would prefer the latter. Also, if anymore information is needed to come to a solution, I'll be happy to elaborate.