Hopefully this is what you want.
Under the Actions tab: pause (if a certain argument is true, then pause)example: if text = 3 then pause. The same sort of thing is true for Play. Resume means play again if you paused. Stop is obvious.
Under Events: OnPause If you have something above that says pause, then visual logic will do something, like change a material face. OnPlay, if the scene is playing, this can trigger another event. OnStop is pretty much the same as the two examples above.
#XPression