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

ForeverZer0

Member
  • Content Count

    383
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by ForeverZer0

  1. class Scene_Title alias stat_change_main main def main stat_change_main base, c = 5, 1.055555 (1...$data_actors.size).each {|i| (2..5).each {|param| (1..99).each {|lvl| $data_actors[i].parameters[param, lvl] = base * 0.25 * (lvl + 3 * (c ** lvl)) }}} end end
  2. Its saved by the editor, there is no visible script for it. All it is an array of Game_Actor objects.
  3. Convert the formulas to Ruby. After you do that, it would be simple to run it, saving the values to a Table object, and manually editing the Actors.rxdata.
  4. Yeah, it's simply 2 lines of code. I can fix after I get home after work. EDIT: Okay, all fixed. It is the same link, but here it is again: http://pastebin.com/XcvXj5wi
  5. Because I have never done of these in my life.... Name: Eric Aliases: ForeverZer0 Sex: Male Color: White Birthdate: 2nd of October, 1984 Height: 6' 0" Weight: 200 lbs. Eye Color: Brown Hair Color: Brown Favorite Color: Blue Dating/Marital Status: Dating Sexual Orientation: Straight Religion: Believe in God, non-religious Family: Two older sisters Pets: One dog, a Chow Chow Favorite Movie: Inception Favorite Music Genre: I can't choose one. Rap, Rock, and Classic Rock Favorite Video Game: Final Fantasy VI (old-school, baby!) Favorite Book: Atlas Shrugged by Ayn Rand Favorite Food: Pizza Favourite Cartoon: Bugs Bunny Preferred RPG Maker: RMXP Preferred Web Browser: Opera Preferred Email Service: Gmail Vegetarian?: Get the hell out of here... Where you've traveled: Canada is the only other country I have been to Dislikes: Stupid people. People who are leeches. Facebook. Twitter. Bees. Likes: Women, Car Audio, Women, Programming, Women Useless Facts: Do you drink? Socially. Do you smoke? Yes. I wish not. Did you ever skip class? All the time. Do you obtain a good amount of sleep daily? No. Hate sleep, its a waste of time. Usually get about 4 hours a day. Have you ever been on an airplane? Nope. have you ever broken a bone? Yes. Nose (twice), cheekbone, various fingers, ankle Do you wear jewelry? Sometimes. Usually a gold chain (non-"blingy") How do you dress? Casual How many keys are on your keyring? 2. Vehicle and house. What time do you go to bed? When sleep finally overtakes me.. How many hours a day do you spend in the computer? 0-12. This really depends on the day and what is going on. What are your goals/dreams in life? Be successful, get married, have children. Who do you admire? Veterans. Glenn Beck. Thomas Sowell Are you into sports? Football. (American football, not soccer) What is your dream job? Lottery winner What was your first screenname? Has always been ForeverZer0 Do you have any piercings? Not anymore.. Are you a lefty/righty or ambidextrous? Righty. Do you have any tattoos? Yes. One on my left calf, another on my upper right arm. What is your favorite website? The Pirate Bay Do you play computer games? Very rarely. Do you play video game consoles? Own every Sony console there is, though do not play.
  6. I wrote this the yesterday, but then forgot to post it. Now it looks like diagostimo already got it. Oh well, here it is anyway. http://pastebin.com/XcvXj5wi Here's a screenshot, too.
  7. Try this: module AppData GAME_TITLE = "My Game" def self.make_filename(index) dir = "#{ENV['LOCALAPPDATA']}\\#{GAME_TITLE}" Dir.mkdir(dir) unless File.directory?(dir) return "#{dir}\\Save#{index + 1}.rxdata" end end class Scene_File def make_filename(index) return AppData.make_filename(index) end end class Scene_Title alias check_appdata_files update def update if @checked == nil (0..3).each {|i| if FileTest.exist?(AppData.make_filename(i)) @continue_enabled = true @command_window.refresh break end } @checked = true end check_appdata_files end end class Window_SaveFile def initialize(file_index, filename) super(0, 64 + file_index % 4 * 104, 640, 104) self.contents = Bitmap.new(width - 32, height - 32) @file_index = file_index @filename = AppData.make_filename(@file_index) @time_stamp = Time.at(0) @file_exist = FileTest.exist?(@filename) if @file_exist file = File.open(@filename, "r") @time_stamp = file.mtime @characters = Marshal.load(file) @frame_count = Marshal.load(file) @game_system = Marshal.load(file) @game_switches = Marshal.load(file) @game_variables = Marshal.load(file) @total_sec = @frame_count / Graphics.frame_rate file.close end refresh @selected = false end end
  8. The MCI Player script I wrote can do that, If you are not looking to use an Audio module rewrite, I made a fade in method in my old CCTS script. It made it so that weather sounds would fade in with the weather as it gained in power. It was made for BGS, and just adds an update to Game_System that will change the volume at specified intervals, pretty much how a "change screen tone" method works. You could easily adapt it to BGM, pretty much by just changing the words BGS to BGM in it.
  9. Double posting because editing does not work. My post was parsed strangely and it cut some words out, and I apologize if some of it does not make sense. The "edit" post function is parsing HTML, BTW. This is a very serious security risk in case any of the admins might want to do something about it...
  10. Agreed. I think every country should be allowed to do what please, so long as it does not have negative consequences on other countries. Its the same idea of a bunch of families in a neighborhood. It is not the business of one to tell the other how they ought to do things. The USA has is has this mentality that they are somehow the "police of the world" or some shit, which is the reason many other countries dislike us. I think of some of the stuff that they do, and then think how I would feel if were to try and do the same to the USA. Pretty much the entire world would agree with this, but its an inevitability, has been since the dawn of civilization, and to base your actions on some idealist idea is nothing less than stupid. A country cannot be so naive to base its defense policies on ideals. If you know your enemies have guns, you would be stupid to choose a knifes to defend yourself with.
  11. Place this little piece of code anywhere below Window_Command in the script editor. class Window_Command alias title_text_draw_item draw_item def draw_item(index, color) if $scene.is_a?(Scene_Title) title_text_draw_item(index, Color.new(255, 128, 128)) # YOUR COLOR HERE else title_text_draw_item(index, color) end end end Just change the value on the commented line to the color you like: Color.new(RED, GREEN, BLUE) # Each value is number 0-255
  12. Yes, as long as it's in an RPG Maker game. You can't use it with other engines, but Enterbrain does sell licenses for that if you wanted to. I believe this can be found in the EULA. I know it's at Enterbrains site, though.
  13. Are you loading a game from a save, or starting a new game? Do you have any custom scripts that you are using?
  14. You have this line: self.contents = Bitmap.new(width - 32, @item_max * 32) Make it look like this, and see what it says: p width > 32 ? 'width is good, no problem' : 'width is the problem' p @item_max > 0 '@item_max is good, no problem' : 'Uh, oh, @item_max is 0' self.contents = Bitmap.new(width - 32, @item_max * 32) This is something minor to fix, you are just getting frustrated and not seeing the problem clearly.
  15. Have you actually checked the value of @item_max right before the error is thrown? I am going to take a wild guess and say "no" The only other possibility is if you are creating the window with dimensions less 32 or less in either direction. There is literally no other possibility.
  16. @item_max obviously equals 0. Anything multiplied by 0 is 0, so @item * 32 for the height is 0, and there is your error.
  17. Place this anywhere in the editor and run the game. It will show you where the error is coming from. class Bitmap alias find_error_init initialize def initialize(*args) begin find_error_init(*args) rescue error = ([$!.to_s, ''] + $@).join("\n") print error end end end EDIT: Wait, I just noticed that RGSSErrors still report where last stacktrace, so this isn't really needed. What exactly is the problem? Can't you just look at the line and see what's going wrong with it? I imagine that the dimensions are being set via a variable, and not a hard-coded value. The value is likely equal to 0, which is going to cause your error. This most commonly happens when people use the String#text_size method to create dynamic bitmaps and forget to check if the string is empty first. Empty strings return a size with 0 dimensions, which Bitmaps don't like. That would be far easier than others mindlessly looking through scripts. At the very least you could let us know the bitmap that is causing the problems.
  18. It actually might be that method. I didn't add a check to ignore if the @text == text. Since set_text is usually called in update methods, it may be redrawing every frame, which would cause lag. Just alter the "else" to "elsif @text != text" and see if ti helps. EDIT: Actually, it might be better to rearrange the whole method a bit to eliminate the need for calling "split" every frame. Maybe check that @text != text before doing anything else.
  19. Because you are not recreating the contents to be of the appropriate size, but merely clearing it. The Bitmap you are attempting to draw to is only 32 pixels high, so anything above that does not get drawn. Something like this should work, but you I hope your window is sized correctly, or you wall have to resize it as well, and that's where the messiness and control restriction come in. class Window_Option_Help < Window_Help alias multiline_set_text set_text def set_text(text, align = 0) if text != nil lines = text.split("\n") if lines.size <= 1 multiline_set_text(text, align) else self.contents.dispose self.contents = Bitmap.new(self.width - 32, lines.size * 32) lines.each_index {|i| self.contents.draw_text(0, i*32, self.contents.width, 32, lines[i]) } @text, @align, @actor = text, align, nil end self.visible = true end end
  20. Your method is poorly structured. You are placing it within the set_text method, and it is returning an array, which is getting passed to the that. If you want to use it with help windows, alias set_text within the Window_Help class, not try to do some messy stuff within the method call, since the return values are not the same. To simplify why you are getting the error, the code you posted is exactly the same as this: (lets say "item" is the string from my example... if item.nil? @help_window.set_text('') else @help_window.set_text(['my string with line breaks', 'is going to use', 'three lines']) end
  21. Slightly off-topic, and only because it nags me slightly for some strange reason, but how is this an "engine"? I liken it to the the topic Jon Bon made a while ago about using "alpha", "beta", etc. for versions, without actually knowing what the vocabulary really meant. This is by no means an engine, API, or framework. Its just extension methods to existing classes and a few addons that work with them. This by no means takes away from what it is. I think its a neat script, but it is a gross misrepresentation of what it actually is calling it an engine. I don't expect you to change the name for my sake, I am just ranting, but you should be aware of what the different vocabulary means, and in the future not just use names for the sake of sounding "advanced".
×
×
  • Create New...