Things that are inside an `on view do` script will usually continue to happen as long as you're viewing the thing it's attached to.
I sometimes set up a hidden (visibility: none) checkbox on the card and an ' if...' statement inside of the `on view do` script.
And then I make sure that something unchecks the checkbox when the autoplaying event is finished, so it doesn't play again.
on view do if autoplay.value #if the checkbox named 'autoplay' is checked...# #(your dialogizer stuff goes here)# autoplay.value:0 #uncheck the box# end end
You can check your checkbox manually or you can set up a script to do it before you leave the previous card.
Something like this could be inside the previous card's exit button. (With the correct names for your project)
on click do cardname.widgets.autoplay.value:1 go[cardname] end