Homebrew
7-level Enchantment
Choose a creature withing range That creature suffers a continuous confusion enchantment. The chosen creature must make a Wisdom saving throw. Creatures who fail this saving throw have their mind twisted, spawning delusions and provoking uncontrolled actions. If the spell is used during combat the duration changes to 1 minute.
An affected target can't take reactions and must roll a d10 at the start of each of its turns to determine its behavior for that turn.
1: The creature uses all its Movement to move in a random direction. To determine the direction, roll a d8 and assign a direction to each die face. The creature doesn't take an action this turn.
2-6: The creature doesn't move or take Actions this turn.
7-8: The creature uses its action to make a melee Attack against a randomly determined creature within its reach. If there is no creature within its reach, the creature does nothing this turn.
9-10: The creature takes the same action it did on its last turn. If it rolls this twice in a roll it does nothing.
Remove curse of 7th level or higher can dispel this effect.