I'm keep getting a 'failed' response in combat when I tried to use a new skill.

Not sure. You mean it doesn't apply after the buff is gone or the first time using it.
I figured out the script usage as well for the way I was trying to explain.
Yanfly Core, Yanfly Battle, Yanfly Lunatic Targets, Yanfly Target Manager, Yanfly Follow Up.
And it only worked in battle not in the menu. but it worked flawlessly.

Are you only doing this from battle? Your common event shoed the three getting luk up, but luk down can be put there as well.
do any of the states apply to anyone, or no one?
A few times it doesn't apply the buff at all to a few of the characters (Usually one) on the 1st usage during battle. I only have it usable in battle. I can see it simultaneously trigger over everyone's head but the buff doesn't show up sometimes. It doesn't say failed or anything. It doesn't seem to make a difference if it's from a state or a common event. I have seen them both not activate.
Yeah, I put luck down in the common event as well but it still has a chance to miss. I did 6 different test battles. Using the ability once then started a new battle. Added screenshots. The First 2 battles it worked fine. Pics include 1st, 3rd, 4th, 5th, and 6th battle.
Are you taking those pictures part way through the battle turn. In my testing (trying to replicate your setup) I only noticed that while the battle was processing. When it finished all the actions the status was updated correctly.
This may help, but would be a change to how your doing it (slightly)
Ruby:
#Processes a common event before damage

# Use this in the skill/item notetag:  <ce_before_damage: x>
#
#   Where x is the common event id you want to run
#
# Ex.  <ce_before_damage: 5>  - Runs common event 5 before damage.

class Scene_Battle < Scene_Base
  alias nel_common_event_previous_apply use_item
  def use_item
    item = @subject.current_action.item
    if item.note =~ /<ce_before_damage:[ ](\d+)>/
      $game_temp.reserve_common_event($1.to_i)
      process_event
      @status_window.refresh
    end
    nel_common_event_previous_apply
  end
end
Code by Nelderson - I added the status window refresh.
Put the notetag on the skill for the common event that you are running and remove it from the feature list. then the CE will run right away when the skill is used and the status will be refreshed to show the status.

*edit
Oh and I was getting a failed message as well. I set the skill to hp damage. formula 0, variance 0
btw, hit chance and eva won't make a difference since the skill is set to certain hit; those are only used for "physical attack".
Are you taking those pictures part way through the battle turn. In my testing (trying to replicate your setup) I only noticed that while the battle was processing. When it finished all the actions the status was updated correctly.
This may help, but would be a change to how your doing it (slightly)
Ruby:
#Processes a common event before damage

# Use this in the skill/item notetag:  <ce_before_damage: x>
#
#   Where x is the common event id you want to run
#
# Ex.  <ce_before_damage: 5>  - Runs common event 5 before damage.

class Scene_Battle < Scene_Base
  alias nel_common_event_previous_apply use_item
  def use_item
    item = @subject.current_action.item
    if item.note =~ /<ce_before_damage:[ ](\d+)>/
      $game_temp.reserve_common_event($1.to_i)
      process_event
      @status_window.refresh
    end
    nel_common_event_previous_apply
  end
end
Code by Nelderson - I added the status window refresh.
Put the notetag on the skill for the common event that you are running and remove it from the feature list. then the CE will run right away when the skill is used and the status will be refreshed to show the status.

*edit
Oh and I was getting a failed message as well. I set the skill to hp damage. formula 0, variance 0
It's the first turn of combat with Jedd going last. I checked after the battle. The bonuses without the icon weren't there. You already lost me with the coding stuff. I tried setting the skill to hp damage formula 0, variance 0. No change. It's not that the icon isn't showing up. I have it set so the buff lasts after the battle. Everyone that didn't show an icon had the same amount of luck before the battle. While those that did had the luck bonus or in Jedd's case the debuff.
@Trihan Good to know.
Guess I'm giving up again. Since I can't fix this problem.

Original thread: https://forums.rpgmakerweb.com/threads/im-keep-getting-a-failed-response-in-combat-when-i-tried-to-use-a-new-skill.136965/