If possible, please write three scripts: the first - for the quest, the second - for the hero's attack, and the third - for everything together.
Added 2 minutes later
By the way, I see that only two people answer questions on this forum (and very rarely others): RedHeavenHero and Ment, which is a pity.