Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> New Save Window design., Just a small save / load edit.
Genshyu
post Jan 7 2009, 02:15 PM
Post #1


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Scripter
RM Skill: Intermediate




I edited the save / load menu a little bit, i think that you will like it. Heres a screenshot.
[Show/Hide] Screenshot.



Here's the code.
[Show/Hide] Script.

CODE
class Window_SaveFile < Window_Base
  def initialize(file_index, filename)
    super(182, 56 + file_index % 4 * 90, 189, 90)
    @file_index = file_index
    @filename = filename
    load_gamedata
    refresh
    @selected = false
  end
    def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    name = Vocab::File + " #{@file_index + 1}"
    self.contents.draw_text(4, 0, 200, WLH, name)
    @name_width = contents.text_size(name).width
    if @file_exist
      draw_party_characters(125,34)
      draw_playtime(0, 34, contents.width - 4, 2)
    end
  end
end





How to use:
Put the code above main, or in the snipits.

This post has been edited by Genshyu: Jan 7 2009, 02:17 PM


__________________________
My current Scripts.

[Show/Hide] Save / Load Scripts.



Things I am currently Learning:
RGSS2.
If you use a script you don't have to give credit :D I'm nice like that. However, if you wan't to give credit then Give Credit to Craig Ramsey.
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jan 7 2009, 02:17 PM
Post #2


No method: 'stupid_title' found for `nil:NilClass'
Group Icon

Group: Revolutionary
Posts: 1,829
Type: Scripter
RM Skill: Undisclosed




And what happens when the party is full??? Doesn't appear to be enough room for 4 characters. I don't think it looks very good, but it seems to be a practice / learning script, so good job. I actually made a save file script last night that loks like the save screen from Final Fantasy IX. It will be posted later tonight if you would like to take a look.


__________________________
`
Give me teh codez!!!


I am the master debator!
Go to the top of the page
 
+Quote Post
   
Genshyu
post Jan 7 2009, 02:18 PM
Post #3


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Scripter
RM Skill: Intermediate




QUOTE (BigEd781 @ Jan 7 2009, 02:17 PM) *
And what happens when the party is full??? Doesn't appear to be enough room for 4 characters. I don't think it looks very good, but it seems to be a practice / learning script, so good job.

It's not suposed to, It's suposed to only show the first character. I'm not that good at scripting, so I jsut made it like this. I know, it IS a decent way to learn, huh? biggrin.gif. Basically that's all ANY scripter really does is edit defaults tongue.gif Execpt for SOME ULTIMATE SCRIPTER people XD.

This post has been edited by Genshyu: Jan 7 2009, 02:19 PM


__________________________
My current Scripts.

[Show/Hide] Save / Load Scripts.



Things I am currently Learning:
RGSS2.
If you use a script you don't have to give credit :D I'm nice like that. However, if you wan't to give credit then Give Credit to Craig Ramsey.
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jan 7 2009, 02:34 PM
Post #4


No method: 'stupid_title' found for `nil:NilClass'
Group Icon

Group: Revolutionary
Posts: 1,829
Type: Scripter
RM Skill: Undisclosed




The problem is that you have not changed draw_party_characters, so it will still draw all four members of the party. And I do indeed make scripts from nothing wink.gif


__________________________
`
Give me teh codez!!!


I am the master debator!
Go to the top of the page
 
+Quote Post
   
Genshyu
post Jan 7 2009, 02:42 PM
Post #5


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Scripter
RM Skill: Intermediate




QUOTE (BigEd781 @ Jan 7 2009, 02:34 PM) *
The problem is that you have not changed draw_party_characters, so it will still draw all four members of the party. And I do indeed make scripts from nothing wink.gif

Lol luckey... Can you please send me a script line that changes the playtime, it resets it, I know this is offtopic but I really really need this it's important. I need to reset the thing to 0 because I'm using an evented title screen.

This post has been edited by Genshyu: Jan 7 2009, 02:43 PM


__________________________
My current Scripts.

[Show/Hide] Save / Load Scripts.



Things I am currently Learning:
RGSS2.
If you use a script you don't have to give credit :D I'm nice like that. However, if you wan't to give credit then Give Credit to Craig Ramsey.
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jan 7 2009, 02:50 PM
Post #6


No method: 'stupid_title' found for `nil:NilClass'
Group Icon

Group: Revolutionary
Posts: 1,829
Type: Scripter
RM Skill: Undisclosed




I don't understand why you need to set it to 0, but the function that does that is called "draw_playtime" and can be found in Window_SaveFile.


__________________________
`
Give me teh codez!!!


I am the master debator!
Go to the top of the page
 
+Quote Post
   
Genshyu
post Jan 7 2009, 04:41 PM
Post #7


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Scripter
RM Skill: Intermediate




QUOTE (BigEd781 @ Jan 7 2009, 02:50 PM) *
I don't understand why you need to set it to 0, but the function that does that is called "draw_playtime" and can be found in Window_SaveFile.

It's fine, It's fixed biggrin.gif.


__________________________
My current Scripts.

[Show/Hide] Save / Load Scripts.



Things I am currently Learning:
RGSS2.
If you use a script you don't have to give credit :D I'm nice like that. However, if you wan't to give credit then Give Credit to Craig Ramsey.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 11:47 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker