So, I Want There To Be A Switch That Turns On ONLY If The Game Is Saved. Otherwise, There Will Be Some Extra Reminders And Some Different Dialogue. Do I Have To Do A HUGE Common Event, Or, Y'know, Do I Need A Script? Any Help Would Be Greatly Appreciated.. (Again, I'm Sorry For My Caps!)
Saving Event?!?!
RPG Maker VXAce SupportHey, i made you this plugin, didn't test tho:
[Link removed]
[Link removed]
I think he was looking for a solution in VX Ace, seeing as this is the VX Ace section and he's listed as primarily using VX Ace, but great work!
Oh $#@ didn't notice... my bad :s
I dont have an editor for ace right now, but I guess the solution would be the same, maybe someone can translate it...
Well... we got a solution for MV now lol
EDIT
Try this script:
Code:
module DataManager
BEFORE_SAVE_COMMON_EVENT = 1
AFTER_SAVE_COMMON_EVENT = 2
alias :biter_old_save_game :save_game
def save_game(index)
$game_temp.reserve_common_event(BEFORE_SAVE_COMMON_EVENT)
old_save_game(index)
$game_temp.reserve_common_event(AFTER_SAVE_COMMON_EVENT)
end
end
Sorry, Just Put It Under Materials? Is It Plug-In-And-Play?
put it before main and alter the common event number you want at
BEFORE_SAVE_COMMON_EVENT and AFTER_SAVE_COMMON_EVENT
BEFORE_SAVE_COMMON_EVENT and AFTER_SAVE_COMMON_EVENT
Getting An Error Here. .-.
Hmm probably my mistake, I edited the code, try the new one 😀
Still Says Undefined Method.....
I'm sorry, got a little rusty on RGSS... guess we can't override a module method :s
But I made it (and this time I tested):
Also, uploaded this demo: Download Demo
But I made it (and this time I tested):
Code:
#==============================================================================
# ** On_Save
#==============================================================================
# You must define an in a game variable for the common event number
#
# If you use before save event, the event will need change the variable to zero
# and call the save scene again, because the script needs to go back to the map
# scene to execute the common event
#==============================================================================
module OnSave
BEFORE_SAVE_VARIABLE = 1 #number of the variable for before save event
AFTER_SAVE_VARIABLE = 2 #number of the variable for after save event
end
class Scene_Save
@before_event = 0
@after_event = 0
alias :biter_start :start
def start
@before_event = $game_variables[OnSave::BEFORE_SAVE_VARIABLE]
@after_event = $game_variables[OnSave::AFTER_SAVE_VARIABLE]
if @before_event > 0
SceneManager.goto(Scene_Map)
$game_temp.reserve_common_event(@before_event)
end
biter_start
end
alias :biter_on_save_success :on_save_success
def on_save_success
if @after_event > 0
$game_temp.reserve_common_event(@after_event)
end
biter_on_save_success
end
end
Also, uploaded this demo: Download Demo
Thanks.
It Really Worked!
It Really Worked!
Original thread: https://forums.rpgmakerweb.com/threads/saving-event.59497/