I'm using KMS Distribute Parameters script. https://forums.rpgmakerweb.com/index.php?threads/kms-distribute-parameter.3802/
I've changed the functions of the page down and page up to bring up new windows.
The problem is that after I select to switch actors from the window it goes back to the current actor, because the command to switch actors is not given.
I have not been able to find a way to give the command for
If I set the command for the window to next actor
then the window does not close, but it goes to the next actor.
If I use
the window closes, but it does not switch to the next actor.
Been at this for a while and need some advise.
I've changed the functions of the page down and page up to bring up new windows.
Code:
@parameter_window.set_handler(:pagedown, method(:on_next_ok))#(:next_actor))
Code:
def on_next_ok
next_confirm
end
Code:
def next_confirm
@status_window.refresh
@next_window.index = 0
@next_window.activate
@next_window.open
@parameter_window.deactivate
end
Code:
def create_next_window
@next_window = Window_DistributeParameterNext.new(0, 0)
@next_window.x = (Graphics.width - @confirm_window.width) / 2
@next_window.y = (Graphics.height - @confirm_window.height) / 2
@next_window.z = 300#@help_window.z
@next_window.viewport = @viewport
@next_window.openness = 0
@next_window.deactivate
@next_window.set_handler(:decide, method(:on_next_decide))
@next_window.set_handler(:cancel, method(:on_next_cancel))
end
I have not been able to find a way to give the command for
Code:
method(:next_actor)
If I set the command for the window to next actor
Code:
@next_window.set_handler(:decide, method(:next_actor))#(:on_next_decide))
If I use
Code:
@next_window.set_handler(:decide, method(:on_next_decide))
Code:
def on_next_decide
#~ return Input.press?(:pagedown)
command_next
return method(:next_actor)
end
Code:
def command_next
@next_window.deactivate
@next_window.close
@parameter_window.activate
end
Been at this for a while and need some advise.