Enemy ai help

can i have a little help with enemy ai please i really need help. this is basically what i need…Enemy One BehaviourHealth = 5 hits (Normal attacks) ordie if special hits (Any special)if Player away -> wait 5 seconds -> get nearif near -> If Player standing or walking(running) -> Attack!! (random attack/Attack one or Attack 2) if finished attacking -> wait 5 seconds -> move away elseif Player attacking(1x out 3x) -> if Player near -> try to Block / if not -> ignore dumb player attacking thin air… orif Player attacking(2x out of 3x) -> if Player near -> let player hit you… (1 hit) if Player does special -> if near -> let player hit you-> you are dead elseif away -> block!!