Project1

标题: 存档太少了! [打印本页]

作者: worigmtm    时间: 2008-2-26 21:01
标题: 存档太少了!
怎么只有4个,怎么改? [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~
作者: 八云紫    时间: 2008-2-26 21:41
四个还不过吗?我完RPG只要两个存档就足够了,嘎哦~~~
作者: 精灵使者    时间: 2008-2-26 21:51
多个存档么。
http://rpg.blue/web/htm/news206.htm
也许这个可以帮助你。
P.S.这个是XP的脚本思路
作者: 八云紫    时间: 2008-2-26 21:53
?这个脚本不是XP上的么?在VX上也可以用?
作者: 精灵使者    时间: 2008-2-26 21:57
vx的存档扩展么。
我测试下看看。
看看能不能成功。
似乎有些麻烦了。默认脚本窗口的重新绘制感觉麻烦多了……
感觉自己真是失败……
不过修改思路应该是一样的吧……
作者: 雪流星    时间: 2008-2-27 04:03
國外的腳本:

  1. RPG Maker
  2. RPG RPG Revolution
  3. Terms of Service
  4. Help
  5. Search
  6. Members
  7. Calendar
  8. Downloads
  9. Arcade

  10. Search this forum only?
  11. More Search Options
  12. [X]
  13. My Assistant
  14. Loading. Please Wait... Loading. Please Wait...
  15. X   Site Message
  16. (Message will auto close in 2 seconds)

  17. Logged in as: snstar2006 ( Log Out )

  18. My Controls · New Posts (326) · My Assistant · My Friends · 0 New Messages
  19.   Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

  20. RRR RPG RPG Revolution Forums > Scripting > Ruby Game Scripting System 2 (RGSS2)

  21.         Reply to this topicStart new topic
  22. > More Saveslots, The value of the saveslots can be set
  23.                
  24. Options V
  25. V Track this topic
  26. V Email this topic
  27. V Print this topic
  28. V Download this topic
  29. V Subscribe to this forum
  30. Display Modes
  31. V Switch to: Outline
  32. V Standard
  33. V Switch to: Linear+
  34. ERZENGEL
  35. View Member Profile
  36. Add as Friend
  37. Send Message
  38. Find Member's Topics
  39. Find Member's Posts
  40.        
  41. post Jan 27 2008, 10:43 AM
  42. Post #1


  43. Level 2
  44. Group Icon

  45. Group: Members
  46. Posts: 23
  47. Joined: 25-January 08
  48. From: Germany
  49. Member No.: 9,041
  50. Gender: Male
  51. Type: Musician
  52. RM Skill: Advanced



  53.        

  54.    1. Intro
  55.       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:

  56.    2. Features
  57.           * Set the value of saveslots

  58.    3. Screenshots
  59.       [Show/Hide] #1
  60.    4. Guide
  61.       Create empty Script above Main and paste the script into it.
  62.       To change the value of saveslots, simply set the constant SAVE_MAX to positive numerical value. For example:
  63.       CODE
  64.       SAVE_MAX = 99
  65.       Now the value of saveslots is 99.

  66.    5. Script
  67.       [Show/Hide] v1.0
  68.       CODE
  69.       #==============================================================================
  70.       # ** More saveslots (v1.0 by ERZENGEL)
  71.       #------------------------------------------------------------------------------
  72.       #    The value of the saveslots can be set
  73.       #==============================================================================

  74.       # value of the saveslots
  75.       SAVE_MAX = 99

  76.       #==============================================================================
  77.       class Window_SaveFile
  78.         #--------------------------------------------------------------------------
  79.         def initialize(file_index, filename)
  80.           super(0, 56 + file_index % SAVE_MAX * 90, 544, 90)
  81.           @file_index = file_index
  82.           @filename = filename
  83.           load_gamedata
  84.           refresh
  85.           @selected = false
  86.         end
  87.         #--------------------------------------------------------------------------
  88.       end
  89.       #==============================================================================
  90.       class Scene_File
  91.         #--------------------------------------------------------------------------
  92.         def start  
  93.           super
  94.           @file_max = SAVE_MAX
  95.           create_menu_background
  96.           @help_window = Window_Help.new
  97.           create_savefile_windows
  98.           if @saving
  99.             @index = $game_temp.last_file_index
  100.             @help_window.set_text(Vocab::SaveMessage)
  101.           else
  102.             @index = self.latest_file_index
  103.             @help_window.set_text(Vocab::LoadMessage)
  104.           end
  105.           @savefile_windows[@index].selected = true
  106.           @page_file_max = ((416 - @help_window.height) / 90).truncate
  107.           for i in 0...@file_max
  108.             window = @savefile_windows[i]
  109.             if @index > @page_file_max - 1
  110.               if @index < @file_max - @page_file_max - 1
  111.                 @top_row = @index
  112.                 window.y -= @index * window.height
  113.               elsif @index >= @file_max - @page_file_max
  114.                 @top_row = @file_max - @page_file_max
  115.                 window.y -= (@file_max - @page_file_max) * window.height
  116.               else
  117.                 @top_row = @index
  118.                 window.y -= @index * window.height
  119.               end
  120.             end
  121.             window.visible = (window.y >= @help_window.height and
  122.             window.y < @help_window.height + @page_file_max * window.height)
  123.           end
  124.         end
  125.         #--------------------------------------------------------------------------
  126.         def create_savefile_windows
  127.           @top_row = 0
  128.           @savefile_windows = []
  129.           for i in 0...@file_max
  130.             @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
  131.           end
  132.         end
  133.         #--------------------------------------------------------------------------
  134.         def cursor_down(wrap)
  135.           if @index < @file_max - 1 or wrap
  136.             @index = (@index + 1) % @file_max
  137.             for i in 0...@file_max
  138.               window = @savefile_windows[i]
  139.               if @index == 0
  140.                 @top_row = 0
  141.                 window.y = @help_window.height + i % @file_max * window.height
  142.               elsif @index - @top_row > @page_file_max - 1
  143.                 window.y -= window.height
  144.               end
  145.               window.visible = (window.y >= @help_window.height and
  146.                 window.y < @help_window.height + @page_file_max * window.height)
  147.             end
  148.             if @index - @top_row > @page_file_max - 1
  149.               @top_row += 1
  150.             end
  151.           end
  152.         end
  153.         #--------------------------------------------------------------------------
  154.         def cursor_up(wrap)
  155.           if @index > 0 or wrap
  156.             @index = (@index - 1 + @file_max) % @file_max
  157.             for i in 0...@file_max
  158.               window = @savefile_windows[i]
  159.               if @index == @file_max - 1
  160.                 @top_row = @file_max - @page_file_max
  161.                 window.y = @help_window.height + i % @file_max * window.height
  162.                 window.y -= (@file_max - @page_file_max) * window.height
  163.               elsif @index - @top_row < 0
  164.                 window.y += window.height
  165.               end
  166.               window.visible = (window.y >= @help_window.height and
  167.                 window.y < @help_window.height + @page_file_max * window.height)
  168.             end
  169.             if @index - @top_row < 0
  170.               @top_row -= 1
  171.             end
  172.           end
  173.         end
  174.         #--------------------------------------------------------------------------  
  175.       end
  176.       #==============================================================================
  177.    6. Outro
  178.       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



  179. Signature
  180. Go to the top of the pageReport Post
  181.        

  182. +Quote Post
  183. SeeYouAlways
  184. View Member Profile
  185. Add as Friend
  186. Send Message
  187. Find Member's Topics
  188. Find Member's Posts
  189.        
  190. post Jan 27 2008, 06:21 PM
  191. Post #2


  192. Demented Moogle
  193. Group Icon

  194. Group: Management
  195. Posts: 1,766
  196. Joined: 4-April 07
  197. From: Nowhere
  198. Member No.: 4,904
  199. Gender: Male
  200. Type: None
  201. RM Skill: Undisclosed



  202.        
  203. Hey nice. This could be like a staple script in everyone's games. biggrin.gif

  204. I PM'ed you too, have a read when you get the time. Cheers.


  205. Signature
  206. Go to the top of the pageReport Post
  207.        

  208. +Quote Post
  209. joaoneto
  210. View Member Profile
  211. Add as Friend
  212. Send Message
  213. Find Member's Topics
  214. Find Member's Posts
  215.        
  216. post Jan 27 2008, 06:27 PM
  217. Post #3



  218. Group Icon

  219. Group: Members
  220. Posts: 4
  221. Joined: 20-January 08
  222. Member No.: 7,948
  223. Gender: Male
  224. Type: None
  225. RM Skill: Undisclosed



  226.        
  227. Tanks for this great script.
  228. He's enter to my Brazilian Pack, with credits to you of course.
  229. Go to the top of the pageReport Post
  230.        

  231. +Quote Post
  232. neclords
  233. View Member Profile
  234. Add as Friend
  235. Send Message
  236. Find Member's Topics
  237. Find Member's Posts
  238.        
  239. post Jan 31 2008, 02:49 AM
  240. Post #4


  241. Love me! I wanna you to love me!
  242. Group Icon

  243. Group: Revolutionary Member
  244. Posts: 127
  245. Joined: 10-January 08
  246. From: Indonesia
  247. Member No.: 6,739
  248. Gender: Male
  249. Type: None
  250. RM Skill: Beginner



  251.        
  252. Thanks ERZENGEL

  253. It cool...




  254. Signature

  255. Which Final Fantasy Character Are You?
  256. Final Fantasy 7



  257. Take the Magic: The Gathering 'What Color Are You?' Quiz.

  258. ~Time To sWallow tHe Pain and VaniSH OuR HuRt~
  259. Go to the top of the pageReport Post
  260.        

  261. +Quote Post
  262. D3wil666
  263. View Member Profile
  264. Add as Friend
  265. Send Message
  266. Find Member's Topics
  267. Find Member's Posts
  268.        
  269. post Feb 16 2008, 10:44 AM
  270. Post #5


  271. Level 1
  272. Group Icon

  273. Group: Members
  274. Posts: 14
  275. Joined: 14-February 08
  276. Member No.: 11,733
  277. Gender: Undisclosed
  278. Type: None
  279. RM Skill: Beginner



  280.        
  281. i need this Script but on rpg maker xp
  282. Go to the top of the pageReport Post
  283.        

  284. +Quote Post
  285. ERZENGEL
  286. View Member Profile
  287. Add as Friend
  288. Send Message
  289. Find Member's Topics
  290. Find Member's Posts
  291.        
  292. post Feb 16 2008, 11:47 AM
  293. Post #6


  294. Level 2
  295. Group Icon

  296. Group: Members
  297. Posts: 23
  298. Joined: 25-January 08
  299. From: Germany
  300. Member No.: 9,041
  301. Gender: Male
  302. Type: Musician
  303. RM Skill: Advanced



  304.        
  305. http://www.phylomortis.com/resource/script/scr039.html


  306. Signature
  307. Go to the top of the pageReport Post
  308.        

  309. +Quote Post
  310. « Next Oldest · Ruby Game Scripting System 2 (RGSS2) · Next Newest »


  311.         Fast ReplyReply to this topicStart new topic
  312. 1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
  313. 1 Members: snstar2006

  314. > Fast Reply
  315. Bold
  316.        
  317. Italic
  318.        
  319. Underline
  320.        
  321. Insert Link
  322.        
  323. Insert Image
  324.        
  325. Emoticons
  326.        
  327. Wrap in quote tags
  328.        
  329. Wrap in code tags
  330.                  
  331. Enable email notification of replies |  Enable Smilies |  Enable Signature
  332.    

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

  334. Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

  335. Track this topic · Email this topic · Print this topic · Subscribe to this forum

  336. IPB 2.2.0 DefaultRPG RPG Revolution
  337. English
  338.         Lo-Fi Version         0.1946 sec    4.50    12 queries    GZIP Enabled
  339. Time is now: 26th February 2008 - 05:55 AM
  340. IP.Board Powered By Chocolate Chip Cookies © 2008  IPS, Inc
  341. Powered by Minerva SEO IPB module
  342. Licensed to: RPG RPG Revolution
复制代码


在SAVE_MAX = 99可以調整最大存檔數
原作者已測試最大可達255,在大的話會出錯

[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: worigmtm    时间: 2008-2-27 06:18
太帅了!
  1. #==============================================================================
  2.       # ** More saveslots (v1.0 by ERZENGEL)
  3.       #------------------------------------------------------------------------------
  4.       #    The value of the saveslots can be set
  5.       #==============================================================================

  6.       # value of the saveslots
  7.       SAVE_MAX = 99

  8.       #==============================================================================
  9.       class Window_SaveFile
  10.         #--------------------------------------------------------------------------
  11.         def initialize(file_index, filename)
  12.           super(0, 56 + file_index % SAVE_MAX * 90, 544, 90)
  13.           @file_index = file_index
  14.           @filename = filename
  15.           load_gamedata
  16.           refresh
  17.           @selected = false
  18.         end
  19.         #--------------------------------------------------------------------------
  20.       end
  21.       #==============================================================================
  22.       class Scene_File
  23.         #--------------------------------------------------------------------------
  24.         def start  
  25.           super
  26.           @file_max = SAVE_MAX
  27.           create_menu_background
  28.           @help_window = Window_Help.new
  29.           create_savefile_windows
  30.           if @saving
  31.             @index = $game_temp.last_file_index
  32.             @help_window.set_text(Vocab::SaveMessage)
  33.           else
  34.             @index = self.latest_file_index
  35.             @help_window.set_text(Vocab::LoadMessage)
  36.           end
  37.           @savefile_windows[@index].selected = true
  38.           @page_file_max = ((416 - @help_window.height) / 90).truncate
  39.           for i in 0...@file_max
  40.             window = @savefile_windows[i]
  41.             if @index > @page_file_max - 1
  42.               if @index < @file_max - @page_file_max - 1
  43.                 @top_row = @index
  44.                 window.y -= @index * window.height
  45.               elsif @index >= @file_max - @page_file_max
  46.                 @top_row = @file_max - @page_file_max
  47.                 window.y -= (@file_max - @page_file_max) * window.height
  48.               else
  49.                 @top_row = @index
  50.                 window.y -= @index * window.height
  51.               end
  52.             end
  53.             window.visible = (window.y >= @help_window.height and
  54.             window.y < @help_window.height + @page_file_max * window.height)
  55.           end
  56.         end
  57.         #--------------------------------------------------------------------------
  58.         def create_savefile_windows
  59.           @top_row = 0
  60.           @savefile_windows = []
  61.           for i in 0...@file_max
  62.             @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
  63.           end
  64.         end
  65.         #--------------------------------------------------------------------------
  66.         def cursor_down(wrap)
  67.           if @index < @file_max - 1 or wrap
  68.             @index = (@index + 1) % @file_max
  69.             for i in 0...@file_max
  70.               window = @savefile_windows[i]
  71.               if @index == 0
  72.                 @top_row = 0
  73.                 window.y = @help_window.height + i % @file_max * window.height
  74.               elsif @index - @top_row > @page_file_max - 1
  75.                 window.y -= window.height
  76.               end
  77.               window.visible = (window.y >= @help_window.height and
  78.                 window.y < @help_window.height + @page_file_max * window.height)
  79.             end
  80.             if @index - @top_row > @page_file_max - 1
  81.               @top_row += 1
  82.             end
  83.           end
  84.         end
  85.         #--------------------------------------------------------------------------
  86.         def cursor_up(wrap)
  87.           if @index > 0 or wrap
  88.             @index = (@index - 1 + @file_max) % @file_max
  89.             for i in 0...@file_max
  90.               window = @savefile_windows[i]
  91.               if @index == @file_max - 1
  92.                 @top_row = @file_max - @page_file_max
  93.                 window.y = @help_window.height + i % @file_max * window.height
  94.                 window.y -= (@file_max - @page_file_max) * window.height
  95.               elsif @index - @top_row < 0
  96.                 window.y += window.height
  97.               end
  98.               window.visible = (window.y >= @help_window.height and
  99.                 window.y < @help_window.height + @page_file_max * window.height)
  100.             end
  101.             if @index - @top_row < 0
  102.               @top_row -= 1
  103.             end
  104.           end
  105.         end
  106.         #--------------------------------------------------------------------------  
  107.       end
复制代码





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1