Question about SceneManager.call after a common event called

I have a skill usable outside combat which once used will call a common event. By default, the skill menu (scene) will disappear and I have to press a button to call up in-game main menu again. So I try to insert a script call SceneManager.call(Scene_Skill) in the common event. Dang! I'm back to the skill selection scene as I want!

But.. when I press cancel button, the menu is disappeared not like to normal way when you call up the menu --> select skill --> use skill --> and press cancel button --> you're back to the previous menu.

Is it possible to do it this way via script call?

Thanks!
Could you explain yourself a little better?
Pressing cancel in the skill scene will go back to the previous scene.

If the previous scene was the map, then it will go to the map.

You can try calling

Code:
SceneManager.call(Scene_Menu)SceneManager.call(Scene_Skill)
However, now you will run into other problems because the default menu assumes you are navigating the menu in a very specific way and it will crash if you don't.
Code:
def process_ok  @@last_command_symbol = current_symbol  superend#--------------------------------------------------------------------------# * Restore Previous Selection Position#--------------------------------------------------------------------------def select_last  select_symbol(@@last_command_symbol) #<-- will crash here if this variable is not properly initializedend
You will need to figure out how to change this.
@Kanax

Let's say you want to use a heal spell (when not in a combat scene).

- open menu scene

- select skill (skill scene) and select heal spell

- select target and confirm

- you will be back to skill scene again

- press cancel button and you'll be back to menu scene

Now if you create a spell which call common event

- open menu scene

- select skill (skill scene) and select heal spell

- select target and confirm

- it will back to map scene (window menu disappear)

So in the common even, I add SceneManager.call to force call skill scene. After select target and confirm, you are back to skill scene but when press cancel, you will be back to map scene.

@Tsukihime

There is no choice for me then but only calling skill scene. I have not much Ruby knowledge and can't write a whole script by myself. I guess I have to leave it as it is then.

Thanks for your adivse.

Original thread: https://forums.rpgmakerweb.com/threads/question-about-scenemanager-call-after-a-common-event-called.38428/