Scene return Boolean

Once a scene ends typically through scenePop() or something or another is it possible to make it a return a true or false value.

For example you can create your own conditional loops in the event page. I want to run a scene and return true if the scene/player met certain conditions in the scene.

Any ideas of the best way to handle this?

 
I probably don't understand it quite right. But if I do:

You can alias:

Scene_Base.prototype.popScene = function() {// alias and insert your custom function here. Check conditions and do whatever you want SceneManager.pop();};and make it do something depending on some conditions before you pop it. Also you might want to check if the scene is a Scene_Map and stuff like that but this is were you would do it.

If you just want it before leaving a map, you should alias the transfer-code instead.

Original thread: https://forums.rpgmakerweb.com/threads/scene-return-boolean.53448/