Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old September 17th, 2017 (4:11 AM). Edited September 17th, 2017 by Marin.
Marin's Avatar
Marin Marin is offline
Not Bored
 
Join Date: Nov 2016
Age: 16
Gender: Other
Posts: 794
Saving in Pokmon Essentials itself is almost instant, but the text that precedes it and that what comes after it is what makes saving take longer.

This script will automatically save the game if you hit a specific button, F8 by default.

Inside the script section "Scene_Map", find "def update" by doing Ctrl + F.
Then, inside that "def update", look for "updateSpritesets". Right underneath, paste this.
Code:
    if Input.trigger?(Input::F8) && !$game_player.moving? && @mode.nil?
      pbSave
      @mode = 0
      @vp = Viewport.new(0,0,Graphics.width,Graphics.height)
      @vp.z = 100000
      @disk = Sprite.new(@vp)
      @disk.bitmap = BitmapCache.load_bitmap("Graphics/Pictures/saveDisk")
      @disk.x, @disk.y = 8, 8
      @disk.opacity = 0
      @arrow = Sprite.new(@vp)
      @arrow.bitmap = BitmapCache.load_bitmap("Graphics/Pictures/saveArrow")
      @arrow.x, @arrow.y = 8, -4
      @arrow.opacity = 0
    end
    if @mode == 0
      @disk.opacity += 16
      @mode = 1 if @disk.opacity >= 255
    end
    if @mode == 1
      @arrow.opacity += 16
      @mode = 2 if @arrow.opacity >= 255
    end
    if @mode == 2
      @arrow.y += 1
      @mode = 3 if @arrow.y >= 22
    end
    if @mode == 3
      @arrow.opacity -= 16
      @disk.opacity -= 16
      if @disk.opacity <= 0
        @arrow.dispose
        @disk.dispose
        @vp.dispose
        @mode = nil
      end
    end
You'll also need to put these two graphics in your "Graphics/Pictures" folder.

Credits:
  • Marin
  • KaysCollapse for the sprites
Reply With Quote
  #2    
Old September 17th, 2017 (2:09 PM).
XPGamer212 XPGamer212 is offline
Hellspawn
     
    Join Date: May 2017
    Location: somewhere
    Gender: Male
    Nature: Lonely
    Posts: 2
    Thanks! I've been looking for this literally everywhere.
    Reply With Quote
      #3    
    Old September 17th, 2017 (8:00 PM).
    Rinkoou's Avatar
    Rinkoou Rinkoou is offline
    Awful-Pun Master
       
      Join Date: Sep 2016
      Location: the Internet
      Gender: Male
      Nature: Naughty
      Posts: 54
      Good job!
      __________________
      I ask stupid questions because my brain is nonexistant.
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 7:36 PM.