Hi! I recently found one of Zetu's scripts that allows the player to select pictures as choices and I've found that it interferes with saving. I tried to see which part of the script was causing the issue and I think it may be this part:
However, while I am able to save the game upon deleting this part of the script, it removes very nice functions like switch dependent choices and the ability to have more than 4 choices. I was wondering if anyone could help me solve the saving issue while keeping these functions? Thank you very much.
alias :zev_choice_setup_choices :setup_choices
def setup_choices(params)
$game_message.choice_data = []
$game_message.choice_cancel_data = nil
add_zev_special_choice_data(@index)
ti = @index
while @list[ti] and @list[ti].code == 102
ti += 1
ti += 1 while @list[ti].indent > @indent or [402,403,404].include? @list[ti].code
break if @list[ti].code != 102
add_zev_special_choice_data(ti)
end
$game_message.choice_proc = Proc.new {|n|
data = $game_message.choice_data.select do |h|
h[:si] <= n
end.max_by do |h|
h[:si]
end
@choice_skip[@indent] = data[:skip]
@branch[@indent] = data[:choice_data][n - data[:si]]
}
$game_message.choice_cancel_proc = Proc.new{|n|
data = $game_message.choice_cancel_data
@choice_skip[@indent] = data[:skip]
@branch[@indent] = data[:n]
}
end
However, while I am able to save the game upon deleting this part of the script, it removes very nice functions like switch dependent choices and the ability to have more than 4 choices. I was wondering if anyone could help me solve the saving issue while keeping these functions? Thank you very much.