I would be deeply gratified if some of you found this good enough to adopt this for your own campaign.
Enchantment (Compulsion) [Mind-Affecting]
Level Brd 3, Sor/Wiz 4, Trickery 4
Components: V, S, M/DF
Casting Time: 1 standard action
Range Medium 100' +10'/level
Duration 1 round/level
Targets: All creatures in a 15' radius burst
Save: Will negates
Spell Resistance: Yes
This spell causes the targets to become confused, making them unable to independently determine what they will do, even after leaving the area of effect. Each affected creature reacts differently, each round doing a different action or combination of actions from the table below. Victims must save in order to act rationally. Any confused character who is attacked automatically attacks its attackers on its next turn, as long as it is still confused when its turn comes. Note that a confused character will not make attacks of opportunity against any creature that it is not already devoted to attacking (either because of its most recent action or because it has just been attacked).
Arcane Material Component: A set of three nut shells.
2 Fall asleep
3 Bang head against wall, tree, ground, own weapon, etc.
4 Grieve unknown loss
6 Attempt to command allies
7 Argue with “commander”/with self
8 Attack ally
9 Overbear and/or grapple ally
10 Attack nearest creature
11 Attack caster
12 Flee and hide
13 Panic and act unwisely
14 Drop items in hand and quiver in fear
15 Babble incoherently
17-18 Act normally
19-20 Roll two results