After discovering the --log feature, I have checked my .d. It was full of states ending without END. Of course the fault was mine. sorry for the trouble caused.
But I've found something strange:
when traifying this section
CHAIN
IF ~Global("spoken","locals",0)~ THEN tb#lich willkillyou
~Ah, heroes. Fool enough to torment me.~ = ~Don't you agree, my pet?~ DO ~SetGlobal("spoken","locals",1)~
== tb#terry ~RARGH! KILL! EAT!~
== tb#lich ~Yes, you will eat them as soon as they lie dead on the ground.~ = ~Anyway, you have time enuoght to speak your prayers and say your last words.~
== MAZZYJ ~Die, foul monster. Arvoreen is on my side! She had granted me power you dare not dream of!~
== JANJ IF ~InParty("jan")~ THEN ~They say I can kill people with chattering. Let's see if this is real.~ = ~Uncle Scratchy had a Hamster, and ate it for supper. Thus, I always wanted to have an hamster of my own...~
== MINSCJ IF ~InParty("jan") InParty("Minsc")~ THEN ~YOU DID WHAT? GIVE ME BOO NOW!~
== JANJ IF ~InParty("jan") InParty("Minsc")~ THEN ~It wasn't me, it was Uncle Scratchy.~
== JANJ IF ~InParty("jan")~ THEN ~Anyway, after then Uncle Scratchy's breath was really powerful. Dare not cross him, lichling!~
== tb#lich ~Ah, powers I do fear. SILENT, AND TASTE MY CHAIN CONTINGENCY: REMOVE MAGIC - 2 ABI DALZIMS, ON ENEMY SEEN.~ = ~Alas, a rat had biten me this morning, and that contingency had flied on him;~ = ~he also was a scripting-rat-thusly-immune-to-magic, so I had depleted a lot of spells on him.~ = ~At last, I morphed to a Mind Flayer and ate his brain.~ = ~It tasted of... turnips.~
== JANJ IF ~InParty("jan")~ THEN ~TURNIPS? HOW DARE YOU BE SO STUPID?~ = ~WATER turnips, EARTH turnips, SCYLISTHAN turnips, MAGIC turnips or JANSEN turnips?~
== tb#lich IF ~InParty("jan")~ THEN ~Hmm... fire ones.~
== tb#lich ~Didn't it ever happen to you, that your anti-hero has ran out of spells before you fought him, thus being weaker than he should?~
== MAZZYJ ~Please, lich, stop talking, as <CHARNAME> will anyway have problems beating you, so he will prefer a shorter dialogue to hasten the reload process.~
== tb#lich ~Ah yes? Should I be shorter in what I say, to hasten my death?~ = ~NEVER!~
== MAZZYJ ~Does he NEVER stay silent? But I like his game: <CHARNAME>, be prepared to taste the record of the longest dialogue you'll ever read~
== tb#lich ~I thought entering the slums with twenty thousand gold was enough pissing for him...~
== MAZZYJ IF ~GlobalLT("chapter","global",4)~ THEN ~I bet that all the sequence Desharik-Spellhold-Irenicus-Candlekeep-Irenicus-Bodhi-Imoen will be longer.~
== MAZZYJ IF ~GlobalGT("chapter","global",3)~ THEN ~All the sequence Desharik-Spellhold-Irenicus-Candlekeep-Irenicus-Bodhi-Imoen WAS longer.~
== MAZZYJ ~and entering ascension, trying to redeem Irenicus and failing is something really pissing... Especially when that battle will be fought twenty times...~ = ~At least *my* *pervert* had avoided cutscenes...~
== MINSCJ IF ~InParty("minsc")~ ~All the mission in which Boo is going to be kidnapped will be even longer.~ = ~(Go and download unfinished business...)~
== JANJ IF ~InParty("jan")~ ~A simple banter of mine is good enough for any record.~
== tb#lich ~Yes, that is a nasty record... It seems that your enemy hate you both in long-winded dialogues and cutscenes~ = ~(But here I will take the record)~ = ~and in cheating you off. Well, I was cheated *against*~ = ~the pervert who created me gave you scrolls of protection from magic~
== MAZZYJ IF ~Global("Mazzyisgoingtobeapaladinkit","global",2)~ THEN ~Uh... I chose the sword...~
== MAZZYJ IF ~Global("Mazzyisgoingtobeapaladinkit","global",3)~ THEN ~Oh, you are right...~
== MAZZYJ IF ~Global("Mazzyisgoingtobeapaladinkit","global",4)~ THEN ~No... not protection from magic, but protection from Undead is enough, I think...~
== tb#lich ~Yes, he was pervert.~ = ~I'm tired of this conversation~
END tb#lich loop
windows gives me this error message (the message was in Italian, so the translation could be not completely correct, but I've done my best):
WEIDU has caused an error of not correct page in the module WEIDU.EXE in 0167:0045001a.
Registers:EAX=00472648 CS=0167 EIP=0045001a EFLGS=00010246
EBX=00973130 SS=016f ESP=006efc80 EBP=00000003
ECX=00000001 DS=016f ESI=00000003 FS=59ef
EDX=00472648 ES=016f EDI=00b91120 GS=0000
Byte at the address CS:EIP:
8b 41 fc 8b 72 fc c1 e8 0a c1 ee 0a 3b c6 74 08
Image of the stack:
00b91120 00000003 0045006f 00000001 00472648 00404c72 00000001 00472648 009948e0 00973130 00441515 0093fa3c 00973130 00408d93 006efda8 00408a41
However, after deleting these two lines:
== MINSCJ IF ~InParty("minsc")~ ~All the mission in which Boo is going to be kidnapped will be even longer.~ = ~(Go and download unfinished business...)~
== JANJ IF ~InParty("jan")~ ~A simple banter of mine is good enough for any record.~
it works fine.