I've noticed that if you have message right before choice selection (Show choices) it will stay on the screen. But if you have something else before, the message will disappear and choice selection will be shown without any additional message.
I want that message to be shown (so player could see what is he deciding for) but I have IF statement before the show choices command thus it won't stay on the screen. I found message command in Game_Interpreter and I tried to override it with my own script call. I've managed to show message and choices at the same time but for some reason, it doesn't react to my input. To be more specific, when I select some option, the code skips to the end and doesn't execute selected branch.
I've tried to set @index to +1 after the setup_choices but after that it will always select first branch.
Could you please help me out with this? What did I make wrong?
I was thinking about using @branch[@indent] to skip to certain indexes, but I can't find right indexes in the code.
Script
def hold_message_for_choices
@index += 1
com_params = @list[@index].parameters
$game_message.face_name = com_params[0]
$game_message.face_index = com_params[1]
$game_message.background = com_params[2]
$game_message.position = com_params[3]
while @list[@index].code != 102 || @index >= @list.length #find Show Choice command
@index += 1
end
setup_choices(@list[@index].parameters)
wait_for_message
end
@index += 1
com_params = @list[@index].parameters
$game_message.face_name = com_params[0]
$game_message.face_index = com_params[1]
$game_message.background = com_params[2]
$game_message.position = com_params[3]
while @list[@index].code != 102 || @index >= @list.length #find Show Choice command
@index += 1
end
setup_choices(@list[@index].parameters)
wait_for_message
end