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

Running a Common Event via Script?

Question

I'm looking to remove the "Save" option from my menu and instead replace it with a Common Event that runs my Party Select events. I'm guess I'd need to swap out the "$scene = Scene_Save.new" in my script for something else, but what? If it helps (dunno if it does) the Common Event is number 9.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Well,I found something :

 

when 4 # Common Event

   #  Play decision SE

$game_system.se_play($data_system.decision_se)

  #   Make status window active

$game_temp.common_event_id = 9 # <<< Change this number to the common event you wish to initialize when the menu option is selected.
$scene = Scene_Map.new

Just copy and paste this script instead this one in Scene_Menu :

 

when 4  # save
        # If saving is forbidden
        if $game_system.save_disabled
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to save screen
        $scene = Scene_Save.new

This script is not mine it's Chad sexington's.

I found it at http://www.neoseeker.com

Hope it helps. :)

Share this post


Link to post
Share on other sites
  • 0

you could easily do it with an auto/parrallel proccess common event, simply activate the switch with the menu selection, then get your common event to deactivate it at the end, to change a switch use this code: $game_switches[iD] = true/false

Edited by diagostimo

Share this post


Link to post
Share on other sites
  • 0

Well my menu script does this if anyone every looks at it.  :cry:

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...