Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Enigma

Simple Script Request for Moonpearl...

Recommended Posts

Or anyone else who can script in RMXP

 

The normal way of loading save games is through the load game window. I need a script that can load a save file through a script call in an event. I.E I want to load file 2,

@>Script: $scene = LoadFile_2.new or something like that.

Share this post


Link to post
Share on other sites

Well took me longer than it should have.

Not the most effective solution but it's simple enough.

Script:

 

def load(id)
$scene=Scene_Load.new
$scene.on_decision("Save#{id}.rxdata")
$scene = Scene_Map.new
end

 

Call:

 

load(id)

 

Share this post


Link to post
Share on other sites

Thanks Moo..Saltome, but it has occurred to me that 

That I need a similar method to store save files

also, where should I put the "def load (id)"

Share this post


Link to post
Share on other sites

... What's with you and MoonMoon?

Doesn't really matter where you put it, as long as it's above the "main" script. A good way of organizing your custom scripts is to place them underneath the default scripts and above main.

Just right click in the list of scripts, in the script editor, to insert a new script. Name it something relevant and paste the code in the script window.

 

def save(id)
$scene=Scene_Save.new
$scene.on_decision("Save#{id}.rxdata")
$scene = Scene_Map.new
end

 

 

save(id)

 

You can put both methods in the same script for convenience.

 

Now there's a small bug you should be aware of, when you load a file saved with this method it automatically saves the game again.

Share this post


Link to post
Share on other sites

... What's with you and MoonMoon?

What? I swear I don't know this person! :p

 

Seriously, though, Enigma, why would you want to load a saved game from an event?

Share this post


Link to post
Share on other sites

What? I swear I don't know this person! :P

 

Seriously, though, Enigma, why would you want to load a saved game from an event?

custom save and load menu rather than using the load window

Share this post


Link to post
Share on other sites

unfortunately, it uses windows. For this project I'm not using windows.

 

Also for a seperate project, do you have an ACM that supports like parties of 20 ppl, possible changing the dimension and layout of character bars in the menu

Edited by Enigma

Share this post


Link to post
Share on other sites

Also for a seperate project, do you have an ACM that supports like parties of 20 ppl, possible changing the dimension and layout of character bars in the menu

I have only one ACMS. It does not support parties with more than 4 characters without a bit of tweaking, but that's a feature I might add to an hypothetical v3.00.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...