Again, I have yet to make another thread for this problem I am having.
To sum it up, I am making a simple "Cut Tree" command via script. What I did was:
class Cut< Window_Command def initialize super(0, 0) end def make_command_list make_cut_command end def window_width return 140 end def window_height return 140 end def make_cut_command add_command("Cut Tree", :cut_command) add_command("Cancel", :cancel) end def cut_command #stuff here SceneManager.goto(Scene_Map) end def cancel SceneManager.goto(Scene_Map) endendall is working fine, needless to say this is a part of the whole script, however this is where my problem seems to be starting or rather, what my script needs.
When ever I finish doing the stuff on cut_command, I have to go to Scene Map, because if I don't, it seems that my game freezes after that.
Is there a way on how to implement a return scene? Like say for example after cutting and the execution happens, returns the window to the command list. If I press X on the other hand, should go directly to cancel. It won't, sadly. Because I need to go to cancel command before it stops.
Third problem is that, how can I make another command, that does not need me to repeat making another window command? Like for example:
Choices:
Cut Trees
Cancel
When I chose Cut Trees:
Cut Trees > Execute Command > "Do you want to cut more trees?"
if yes > Return to the Command
if no > Go to Scene Map
To sum it up, I am making a simple "Cut Tree" command via script. What I did was:
class Cut< Window_Command def initialize super(0, 0) end def make_command_list make_cut_command end def window_width return 140 end def window_height return 140 end def make_cut_command add_command("Cut Tree", :cut_command) add_command("Cancel", :cancel) end def cut_command #stuff here SceneManager.goto(Scene_Map) end def cancel SceneManager.goto(Scene_Map) endendall is working fine, needless to say this is a part of the whole script, however this is where my problem seems to be starting or rather, what my script needs.
When ever I finish doing the stuff on cut_command, I have to go to Scene Map, because if I don't, it seems that my game freezes after that.
Is there a way on how to implement a return scene? Like say for example after cutting and the execution happens, returns the window to the command list. If I press X on the other hand, should go directly to cancel. It won't, sadly. Because I need to go to cancel command before it stops.
Third problem is that, how can I make another command, that does not need me to repeat making another window command? Like for example:
Choices:
Cut Trees
Cancel
When I chose Cut Trees:
Cut Trees > Execute Command > "Do you want to cut more trees?"
if yes > Return to the Command
if no > Go to Scene Map