Well vrml is a quite trivial text based format so cant you just edit the play script to wait for your condition? If you need to do this in bulk just do search and replace with sed or something.
You can probably quite trivially find out the changes needed y comparing the outputs of both tools.