How do i make Ai?

i wonder how I would make ai due to that I want them to fight and move. could anyone help me with this problem? and its for a rpg im making, and its not those type of ones that’s FFA, its a CO-OP One but could anyone help me please?