I have now assigned the script to another entitity (a switch) attached to the box and it works. With ogg.
;Artificial Intelligence Script
;created by Ivan Ertlov
;Header
;desc =on screen text
;Triggers
:state=0:state=1
:state=1,plrdistwithin=600:sound=audiobank\voices\cat\miau1.ogg,state=2
:state=2,plrdistwithin=250:sound=audiobank\voices\cat\miau2.ogg,state=3
:state=2,plrdistfurther=600:state=0
:state=3,plrdistwithin=80:sound=audiobank\voices\cat\miau3.ogg,state=4
:state=3,plrdistfurther=80:state=2
:state=4,plrdistwithin=80:fpgcrawtextsize=28,fpgcrawtextfont=Palatino Linotype,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=I still don`t know who this Schrodinger Guy is or was. But I guess he forgot to feed his cat.
:state=4,plrdistfurther=80:state=2
:state=4,plrdistwithin=80,plrhaskey=1:fpgcrawtextsize=28,fpgcrawtextfont=Palatino Linotype,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=I could carefully use the semi-real and but full-tasty living "quantum state cat chow" I picked up.(ENTER)
:state=4,plrdistwithin=80,plrhaskey=1,plrusingaction=1:stopsound,loopsound=audiobank\voices\cat\miaufollow.ogg,activateifused=1,state=10
:state=10:fpgcrawtextsize=28,fpgcrawtextfont=Palatino Linotype,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=Some doors opened! Thank you very much strange kitty. Soft kitty. Undead kitty. Little ball of fear.,etimerstart,state=11
:state=11:fpgcrawtextsize=28,fpgcrawtextfont=Palatino Linotype,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,fpgcrawtext=Some doors opened! Thank you very much strange kitty. Soft kitty. Undead kitty. Little ball of fear.
:state=11,etimergreater=6000:destroy#