Changing attack

So, I had an idea for a boss fight where the attack button is replaced by a talk button, but I don't know how to change it.
Give the troop a Turn 0 troop event that applies a state to the actors.

In that state, you put an Attack Skill trait for your Talk skill.
Give the troop a Turn 0 troop event that applies a state to the actors.

In that state, you put an Attack Skill trait for your Talk skill.
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/changing-attack.160543/