Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Can't save in-game due to script
- Original author: KTkitty
- Original date: March 25, 2020
- Source thread: https://forums.rpgmakerweb.com/threads/cant-save-in-game-due-to-script.119438/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support
Summary
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: Spoiler alias :zev_choice_setup_choices :setup_choices def setup_choices(params)
Archived First Post
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.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...