设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 986|回复: 0
打印 上一主题 下一主题

[Finish Script] Detail SetupV1.38

[复制链接]

梦石
0
星屑
362
在线时间
1292 小时
注册时间
2013-1-12
帖子
3590

贵宾

跳转到指定楼层
1
发表于 2013-9-29 07:00:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 76213585 于 2013-9-29 11:15 编辑

Screen shot:
None Needed

Credits:
Panda King(76213585)

Usage:
Set up the details you want to change, there are lots of them!

This script does....................:
1.Set up Game over fade in/out time
2.Set up font setting
3.Set up resolution
4.Set up save file max
5.Set up menu Background and opacity.
6.More function for you to discover! (what?)
P.S. only few now, will keep update as go on.
   =====Version Note=====
1.38 Have more Compatibility against font setting error.
1.36 Improve Compatibility
1.35 Bug  Fixed
1.30 Add draw icon for gold, draw sprite for menu
1.20 Add draw TP, Frame rate adjust.
1.10 Add Skip choice and Line max of massage
1.00 Relese, has 6 functions.

                     Over Write
         #class Scene_Gameover#
             def fadeout_speed
              def fadein_speed

         #module DataManager#
            def self.savefile_max
         #class Scene_MenuBase#
            def create_background[/color
         #class Window_Message#
            def visible_line_number
            #class Scene_Title#
                    def start
                 def terminate

       #class Window_MenuStatus#
                  def draw_item
           #class Window_Base
                     def reset_font_settings
         def draw_currency_value
       def draw_actor_simple_status]
  1. #=====================
  2. #  Panda's Detail Setting Script
  3. #=====================
  4. #  Credits: Panda King(76213585)
  5. #=====================
  6. #  This script can help you set up just about
  7. # everything the the basic setting. Like the
  8. # gameover fadeout out speed our things like that.
  9. #=====================
  10. #  Usage:
  11. #  Set up the details you want to change, there are lots of them!
  12. #=====================
  13. #                  Over Write
  14. #         #class Scene_Gameover#
  15. #             def fadeout_speed
  16. #              def fadein_speed
  17. #         #module DataManager#
  18. #            def self.savefile_max
  19. #         #class Scene_MenuBase#
  20. #            def create_background
  21. #         #class Window_Message#
  22. #            def visible_line_number
  23. #            #class Scene_Title#
  24. #                    def start
  25. #                 def terminate
  26. #       #class Window_MenuStatus#
  27. #                  def draw_item
  28. #           #class Window_Base
  29. #            def reset_font_settings
  30. #          def draw_currency_value
  31. #       def draw_actor_simple_status
  32. #=====================
  33. #     =====Version Note=====
  34. #  1.38 | Have more Compatibility against font setting error.
  35. #  1.36 | Improve Compatibility
  36. #  1.35 | Bug Fixed
  37. #  1.30 | Add draw icon for gold, draw sprite for menu
  38. #  1.20 | Add draw TP, Frame rate adjust.
  39. #  1.10 | Add Skip choice and Line max of massage
  40. #  1.00 | Relese, has 6 functions.
  41. #=======================
  42. module Panda_D
  43.    #Game over fadein/out speed, [fadeout frame, fade in frame]
  44.    Game_Over_Speed = [120, 60]
  45.    #Font setting.[Name, Size, Bold?, Italic?, Shadow?, Outline?]
  46.    Font = ["Gothic", 20, true, false, true, true]
  47.    #Resolution setting. [Width, Height]
  48.    Resolution = [544, 416]
  49.    #Save file max.
  50.    Save_Max = 4
  51.    #Menu Background file name.(under system) leave it blank if not using
  52.    Back_Ground_Name = ""
  53.    #Menu Background opacity.
  54.    Back_Ground_Opc = 255
  55.    #Line max of massage
  56.    Line = 4
  57.    #Skip title when testing? ###Originaly function by:JV
  58.    Skip_Title = true
  59.    #Draw currency icon?(in shop, meun and all places that draw money)
  60.    # [Draw?, Icon Index]
  61.    Currency_Icon = [false, 360]
  62.    #Draw characher sprite on menu page?
  63.    Menu_Characher = false
  64.    #Draw TP in menu?
  65.    TP_Show = false
  66.    #Speed up Game speed.(Set to 1 is not needed)
  67.    # 1 = normal  1.5 = normal * 1.5  2 = normal * 2 etc.
  68.    Rate = 1
  69. end
  70. #=========================================
  71. #  Do not edit pass this line.
  72. #=========================================
  73. class Scene_Gameover < Scene_Base
  74.     include Panda_D
  75.     def fadeout_speed
  76.       return Game_Over_Speed[0]
  77.     end
  78.     def fadein_speed
  79.       return Game_Over_Speed[1]
  80.     end
  81.   end
  82.   Font.default_name = Panda_D::Font[0]
  83.   Font.default_size = Panda_D::Font[1]
  84.   Font.default_bold = Panda_D::Font[2]
  85.   Font.default_italic = Panda_D::Font[3]
  86.   Font.default_shadow = Panda_D::Font[4]
  87.   Font.default_outline = Panda_D::Font[5]
  88.   Graphics.resize_screen(Panda_D::Resolution[0], Panda_D::Resolution[1])
  89.   Graphics.frame_rate *= Panda_D::Rate if Panda_D::Rate != 0
  90.   module DataManager
  91.     include Panda_D
  92.     def self.savefile_max
  93.       return Save_Max
  94.     end  
  95.   end
  96. class Scene_MenuBase < Scene_Base
  97.    include Panda_D
  98.   def create_background
  99.     @background_sprite = Sprite.new
  100.     @background_sprite.bitmap = SceneManager.background_bitmap
  101.     @background_sprite.color.set(16, 16, 16, 128)
  102.     if !Back_Ground_Name.nil?
  103.       @panda_background_sprite = Sprite.new
  104.       @panda_background_sprite.bitmap = Cache.system(Back_Ground_Name)
  105.       @panda_background_sprite.opacity = Back_Ground_Opc
  106.     end
  107.   end
  108. end
  109. class Window_Message < Window_Base
  110.    include Panda_D
  111.    def visible_line_number
  112.      return Line
  113.    end
  114. end
  115. class Scene_Title < Scene_Base
  116.    include Panda_D
  117.   if Skip_Title
  118.     if $TEST
  119.       def start
  120.         SceneManager.clear
  121.         Graphics.freeze
  122.         DataManager.setup_new_game
  123.         $game_map.autoplay
  124.         SceneManager.goto(Scene_Map)
  125.       end
  126.       def terminate
  127.         SceneManager.snapshot_for_background
  128.         Graphics.fadeout(Graphics.frame_rate)
  129.       end
  130.     end
  131.   end
  132. end
  133. class Window_Base < Window
  134.    include Panda_D
  135.   def reset_font_settings
  136.     change_color(normal_color)
  137.     contents.font.size = Font[1] if !Font[1].nil?
  138.     contents.font.bold = Font[2] if !Font[2].nil?
  139.     contents.font.italic = Font[3] if !Font[3].nil?
  140.   end
  141.   if Currency_Icon[0] == true
  142.     def draw_currency_value(value, unit, x, y, width)
  143.       cx = text_size(unit).width
  144.       change_color(normal_color)
  145.       draw_text(x, y, width - cx - 2, line_height, value, 2)
  146.       change_color(system_color)
  147.       draw_text(x, y, width, line_height, unit, 2)
  148.       draw_icon(Currency_Icon[1], x, y)
  149.     end
  150.   end
  151.   if TP_Show
  152.     def draw_actor_simple_status(actor, x, y)
  153.       draw_actor_name(actor, x, y)
  154.       draw_actor_level(actor, x, y + line_height * 1)
  155.       draw_actor_icons(actor, x, y + line_height * 2)
  156.       draw_actor_hp(actor, x + 120, y + line_height * 0.5)
  157.       draw_actor_mp(actor, x + 120, y + line_height * 1.5)
  158.       draw_actor_tp(actor, x + 120, y + line_height * 2.5)
  159.      end
  160.   end
  161. end
  162. class Window_MenuStatus < Window_Selectable
  163.    include Panda_D
  164.    if Menu_Characher
  165.     def draw_item(index)
  166.       actor = $game_party.members[index]
  167.       enabled = $game_party.battle_members.include?(actor)
  168.       rect = item_rect(index)
  169.       draw_item_background(index)
  170.       draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)
  171.       draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)
  172.       draw_actor_graphic(actor, rect.x + 190, rect.y + 90)
  173.     end
  174.   end
  175. end
复制代码

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-11-15 12:31

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表