赞 | 5 |
VIP | 71 |
好人卡 | 22 |
积分 | 6 |
经验 | 32145 |
最后登录 | 2013-8-9 |
在线时间 | 184 小时 |
Lv2.观梦者 天仙
- 梦石
- 0
- 星屑
- 620
- 在线时间
- 184 小时
- 注册时间
- 2008-4-15
- 帖子
- 5023
|
國外的腳本:
- RPG Maker
- RPG RPG Revolution
- Terms of Service
- Help
- Search
- Members
- Calendar
- Downloads
- Arcade
- Search this forum only?
- More Search Options
- [X]
- My Assistant
- Loading. Please Wait... Loading. Please Wait...
- X Site Message
- (Message will auto close in 2 seconds)
- Logged in as: snstar2006 ( Log Out )
- My Controls · New Posts (326) · My Assistant · My Friends · 0 New Messages
- Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads
- RRR RPG RPG Revolution Forums > Scripting > Ruby Game Scripting System 2 (RGSS2)
-
- Reply to this topicStart new topic
- > More Saveslots, The value of the saveslots can be set
-
- Options V
- V Track this topic
- V Email this topic
- V Print this topic
- V Download this topic
- V Subscribe to this forum
- Display Modes
- V Switch to: Outline
- V Standard
- V Switch to: Linear+
- ERZENGEL
- View Member Profile
- Add as Friend
- Send Message
- Find Member's Topics
- Find Member's Posts
-
- post Jan 27 2008, 10:43 AM
- Post #1
- Level 2
- Group Icon
- Group: Members
- Posts: 23
- Joined: 25-January 08
- From: Germany
- Member No.: 9,041
- Gender: Male
- Type: Musician
- RM Skill: Advanced
-
- 1. Intro
- In the RPG Maker 2000 had 15 saveslots. When the RPGXP appeared only 4 slots. But with a script by KGC could expand this. Since the default RPGVX only has 4 saveslots, I thought why I don't make myself such a script as KGC has done? So here is my conclusion:
- 2. Features
- * Set the value of saveslots
- 3. Screenshots
- [Show/Hide] #1
- 4. Guide
- Create empty Script above Main and paste the script into it.
- To change the value of saveslots, simply set the constant SAVE_MAX to positive numerical value. For example:
- CODE
- SAVE_MAX = 99
- Now the value of saveslots is 99.
- 5. Script
- [Show/Hide] v1.0
- CODE
- #==============================================================================
- # ** More saveslots (v1.0 by ERZENGEL)
- #------------------------------------------------------------------------------
- # The value of the saveslots can be set
- #==============================================================================
- # value of the saveslots
- SAVE_MAX = 99
- #==============================================================================
- class Window_SaveFile
- #--------------------------------------------------------------------------
- def initialize(file_index, filename)
- super(0, 56 + file_index % SAVE_MAX * 90, 544, 90)
- @file_index = file_index
- @filename = filename
- load_gamedata
- refresh
- @selected = false
- end
- #--------------------------------------------------------------------------
- end
- #==============================================================================
- class Scene_File
- #--------------------------------------------------------------------------
- def start
- super
- @file_max = SAVE_MAX
- create_menu_background
- @help_window = Window_Help.new
- create_savefile_windows
- if @saving
- @index = $game_temp.last_file_index
- @help_window.set_text(Vocab::SaveMessage)
- else
- @index = self.latest_file_index
- @help_window.set_text(Vocab::LoadMessage)
- end
- @savefile_windows[@index].selected = true
- @page_file_max = ((416 - @help_window.height) / 90).truncate
- for i in 0...@file_max
- window = @savefile_windows[i]
- if @index > @page_file_max - 1
- if @index < @file_max - @page_file_max - 1
- @top_row = @index
- window.y -= @index * window.height
- elsif @index >= @file_max - @page_file_max
- @top_row = @file_max - @page_file_max
- window.y -= (@file_max - @page_file_max) * window.height
- else
- @top_row = @index
- window.y -= @index * window.height
- end
- end
- window.visible = (window.y >= @help_window.height and
- window.y < @help_window.height + @page_file_max * window.height)
- end
- end
- #--------------------------------------------------------------------------
- def create_savefile_windows
- @top_row = 0
- @savefile_windows = []
- for i in 0...@file_max
- @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
- end
- end
- #--------------------------------------------------------------------------
- def cursor_down(wrap)
- if @index < @file_max - 1 or wrap
- @index = (@index + 1) % @file_max
- for i in 0...@file_max
- window = @savefile_windows[i]
- if @index == 0
- @top_row = 0
- window.y = @help_window.height + i % @file_max * window.height
- elsif @index - @top_row > @page_file_max - 1
- window.y -= window.height
- end
- window.visible = (window.y >= @help_window.height and
- window.y < @help_window.height + @page_file_max * window.height)
- end
- if @index - @top_row > @page_file_max - 1
- @top_row += 1
- end
- end
- end
- #--------------------------------------------------------------------------
- def cursor_up(wrap)
- if @index > 0 or wrap
- @index = (@index - 1 + @file_max) % @file_max
- for i in 0...@file_max
- window = @savefile_windows[i]
- if @index == @file_max - 1
- @top_row = @file_max - @page_file_max
- window.y = @help_window.height + i % @file_max * window.height
- window.y -= (@file_max - @page_file_max) * window.height
- elsif @index - @top_row < 0
- window.y += window.height
- end
- window.visible = (window.y >= @help_window.height and
- window.y < @help_window.height + @page_file_max * window.height)
- end
- if @index - @top_row < 0
- @top_row -= 1
- end
- end
- end
- #--------------------------------------------------------------------------
- end
- #==============================================================================
- 6. Outro
- I tested it till 255 saveslots, so it should work to this value without problems. Unfortunately, I have not the time or the necessary script had to test the compatibility. So if you have any suggestions or problems post them here. And sorry for my bad english wink.gif
- Signature
- Go to the top of the pageReport Post
-
-
- +Quote Post
- SeeYouAlways
- View Member Profile
- Add as Friend
- Send Message
- Find Member's Topics
- Find Member's Posts
-
- post Jan 27 2008, 06:21 PM
- Post #2
- Demented Moogle
- Group Icon
- Group: Management
- Posts: 1,766
- Joined: 4-April 07
- From: Nowhere
- Member No.: 4,904
- Gender: Male
- Type: None
- RM Skill: Undisclosed
-
- Hey nice. This could be like a staple script in everyone's games. biggrin.gif
- I PM'ed you too, have a read when you get the time. Cheers.
- Signature
- Go to the top of the pageReport Post
-
-
- +Quote Post
- joaoneto
- View Member Profile
- Add as Friend
- Send Message
- Find Member's Topics
- Find Member's Posts
-
- post Jan 27 2008, 06:27 PM
- Post #3
- Group Icon
- Group: Members
- Posts: 4
- Joined: 20-January 08
- Member No.: 7,948
- Gender: Male
- Type: None
- RM Skill: Undisclosed
-
- Tanks for this great script.
- He's enter to my Brazilian Pack, with credits to you of course.
- Go to the top of the pageReport Post
-
-
- +Quote Post
- neclords
- View Member Profile
- Add as Friend
- Send Message
- Find Member's Topics
- Find Member's Posts
-
- post Jan 31 2008, 02:49 AM
- Post #4
- Love me! I wanna you to love me!
- Group Icon
- Group: Revolutionary Member
- Posts: 127
- Joined: 10-January 08
- From: Indonesia
- Member No.: 6,739
- Gender: Male
- Type: None
- RM Skill: Beginner
-
- Thanks ERZENGEL
- It cool...
- Signature
- Which Final Fantasy Character Are You?
- Final Fantasy 7
- Take the Magic: The Gathering 'What Color Are You?' Quiz.
- ~Time To sWallow tHe Pain and VaniSH OuR HuRt~
- Go to the top of the pageReport Post
-
-
- +Quote Post
- D3wil666
- View Member Profile
- Add as Friend
- Send Message
- Find Member's Topics
- Find Member's Posts
-
- post Feb 16 2008, 10:44 AM
- Post #5
- Level 1
- Group Icon
- Group: Members
- Posts: 14
- Joined: 14-February 08
- Member No.: 11,733
- Gender: Undisclosed
- Type: None
- RM Skill: Beginner
-
- i need this Script but on rpg maker xp
- Go to the top of the pageReport Post
-
-
- +Quote Post
- ERZENGEL
- View Member Profile
- Add as Friend
- Send Message
- Find Member's Topics
- Find Member's Posts
-
- post Feb 16 2008, 11:47 AM
- Post #6
- Level 2
- Group Icon
- Group: Members
- Posts: 23
- Joined: 25-January 08
- From: Germany
- Member No.: 9,041
- Gender: Male
- Type: Musician
- RM Skill: Advanced
-
- http://www.phylomortis.com/resource/script/scr039.html
- Signature
- Go to the top of the pageReport Post
-
-
- +Quote Post
- « Next Oldest · Ruby Game Scripting System 2 (RGSS2) · Next Newest »
-
- Fast ReplyReply to this topicStart new topic
- 1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
- 1 Members: snstar2006
- > Fast Reply
- Bold
-
- Italic
-
- Underline
-
- Insert Link
-
- Insert Image
-
- Emoticons
-
- Wrap in quote tags
-
- Wrap in code tags
-
- Enable email notification of replies | Enable Smilies | Enable Signature
-
- Forum HomeSearchHelpRevolution Central |-- Announcements |---- Archived News |-- General Discussion |-- Mature Discussion |-- Introductions and Farewells |-- Site / Forum Feedback and HelpGame Engine Forums |-- General Game Engines Discussion |-- RPG Maker VX |-- RPG Maker XP |-- RPG Maker 2000 / 2003 |-- Game MakerCreative Commons |-- Game Demos & Screens |-- Complete Game Discussion |-- Game Design |-- Resources (Audio and Graphics) |-- Tutorials and ExamplesScripting |-- Game Maker Language (GML) |-- Ruby Game Scripting System (RGSS) |-- Ruby Game Scripting System 2 (RGSS2)Entertainment |-- Video Game Discussion |-- Artwork, Music, and Lit Network |-- The Media Center |-- Role-Playing Forum |-- Fun and Games |---- Noteworthy Topics |---- Hall of ShameNetwork |-- Streamline Games |---- Tales of A'ailogas: Under |---- Tales of A'ailogas II: Black |---- Lurking Under Life |---- General Discussion |---- Public Updates |---- Team Black Area |---- The DumpFeatured Projects |-- Dracorb Legend: Birth of the Orb |-- Tournament Hero
- Display Mode: Standard · Switch to: Linear+ · Switch to: Outline
- Track this topic · Email this topic · Print this topic · Subscribe to this forum
- IPB 2.2.0 DefaultRPG RPG Revolution
- English
- Lo-Fi Version 0.1946 sec 4.50 12 queries GZIP Enabled
- Time is now: 26th February 2008 - 05:55 AM
- IP.Board Powered By Chocolate Chip Cookies © 2008 IPS, Inc
- Powered by Minerva SEO IPB module
- Licensed to: RPG RPG Revolution
复制代码
在SAVE_MAX = 99可以調整最大存檔數
原作者已測試最大可達255,在大的話會出錯
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|