Hiya and thanks for listening.
1. How can I change the size and position of a Choices window? I am using Yanfly plugins, so any plugin solution would have to play nice with those. Script is fine as well.
2. Is there a way to call a new Choices window in response to one of the choices? I have been fumbling around with this code:
However, test_choice_2 will run the picture code and do nothing else. I'm guessing that somehow making a choice closes the Choice window, and the callback happens before that, or is in some other way blocked during that process. I know you can do this through the event system, but I'm not sure how to replicate this in script.
Ultimately, what I'm trying to achieve is game that moves from full-page choice to full-page choice, I guess something like a visual novel, with occasional shifts to battles and back to choices. I've had to scale this idea back repeatedly and this is the smallest version I can think of, but I'm still stuck.
1. How can I change the size and position of a Choices window? I am using Yanfly plugins, so any plugin solution would have to play nice with those. Script is fine as well.
2. Is there a way to call a new Choices window in response to one of the choices? I have been fumbling around with this code:
Code:
test_choice = function () {
$gameScreen.showPicture(1, "Event_1_bg", 0, 0, 0, 100, 100, 255, 0);
$gameMessage.add('Select');
$gameMessage.setChoices(['Give another choice', 'Bye'], 0, -1);
$gameMessage.setChoiceCallback(function (choice) {
if (choice === 0) {
//ANOTHER MOSTLY IDENTICAL FUNCTION
test_choice_2();
}
});
}
However, test_choice_2 will run the picture code and do nothing else. I'm guessing that somehow making a choice closes the Choice window, and the callback happens before that, or is in some other way blocked during that process. I know you can do this through the event system, but I'm not sure how to replicate this in script.
Ultimately, what I'm trying to achieve is game that moves from full-page choice to full-page choice, I guess something like a visual novel, with occasional shifts to battles and back to choices. I've had to scale this idea back repeatedly and this is the smallest version I can think of, but I'm still stuck.