leaving a scene and skipping the menu? Easy one!

正在查看此主题的用户

Kahsm

Recruit
Or at least I assume it's easy.

My character is in a town's court, and I want to go back to the map and skip over the town menu after exiting dialog with an NPC who's in the castle.

插入代码块:
[anyone|plyr, "quick_escape", [], "That's my queue to get out of here!", "close_window", [(change_screen_map),(leave_encounter),(change_screen_return)]]

I've tried various combinations and orders of "(change_screen_map),(leave_encounter),(change_screen_return)" and they don't quite seem to work. Most of the time I still get stuck on the town menu screen after the dialog closes.  So it's exiting the castle scene, but not back to the map, just to the town menu.
 
There's probably a better way, but you can try something like this:

in the conversation:
插入代码块:
(assign, "$auto_exit", 1),
in the menu:
插入代码块:
(try_begin),
	(eq, "$auto_exit", 1),
	(assign, "$auto_exit", 0),
	(change_screen_map),
(try_end),

Each game window handles change_screen_* operations differently; the conversation window ignores all of them (because it uses dialog states to change window), but the menu window should handle most of them properly.
 
后退
顶部 底部