Hey, can I have some help with making the battle

Hey, can I have some help with making the battle scene? I can’t get a damage cooldown working, and I want it to wait till i finish my turn to then fire the sprite. So if anyone can figure this out, can I have some help pls. I also need it to have it so you can only do some attacks, like if you have enough energy. I also tried to make it so you don’t press a button to bring the options up i want it after the enemy shots so please help thanks u.