I am using Adventure Creator. I solved the problem by using STM to control the dialog display of the Adventure Creator system. Before I was doing it the other way round and it driven me nuts...
Thank you very much for all the suggestions, I have much more understanding on STM now :)