I think I have the effects right.
CODE
#REGEX "ChaosRays" {^(\w+) is hit by (an?) ([a-z ,]+) ray\.$} {#SUBSTITUTE {%1 is hit by %2 %3 ray. ~(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace("%3","and ",""),"indigo","Stupidity"),"orange","Paralysis"),"violet","Aeon"),"green","Curing"),"yellow","Electrical damage"),"blue","Cold damage"),"red","Fire damage")~)}}
That will change
QUOTE
Tapping into your stores of karma, you transmute a small amount into pure chaos. Seven rays of different coloured light spring out from your outstretched hands, irradiating the location with blinding strobes.
Sena is hit by a yellow, blue, and red ray.
to
QUOTE
Tapping into your stores of karma, you transmute a small amount into pure chaos. Seven rays of different coloured light spring out from your outstretched hands, irradiating the location with blinding strobes.
Sena is hit by a yellow, blue, and red ray. (Electrical damage, Cold damage, Fire damage)
For longer lines, like being hit by three damage rays, that could spill over onto a second line if you have zMUD wrapping the text. It probably won't bother most people, but it looks bad to me, so if you want a shorter one that will always be one line:
CODE
#REGEX "ChaosRays" {^(\w+) is hit by an? ([a-z ,]+) ray\.$} {#SUBSTITUTE {%1 - %replace("%3","and ",""). ~(%replace(%replace(%replace(%replace(%replace(%replace(%replace(%replace("%3","and ",""),"indigo","Stupidity"),"orange","Paralysis"),"violet","Aeon"),"green","Curing"),"yellow","Electrical"),"blue","Cold"),"red","Fire")~)}}
That fits on one line with the longest name I know of, and the longest possible combination of rays.
QUOTE
Ydachikachishiroul - yellow, indigo, orange. (Electrical, Stupidity, Paralysis)