查看: 4289|回复: 15

[已经解决] 人物信息加强脚本问题求修改!

[复制链接]

无限の剣制

梦石
0
星屑
10460
在线时间
5019 小时
注册时间
2013-2-28
回帖
4942

开拓者贵宾

发表于 2014-4-15 23:04:59 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 Sion 于 2014-4-17 17:55 编辑

这个脚本里显示装备的那栏只能显示8个装备,我希望能把更多的装备显示在第二列。

原来是这样

原来是这样
就这样

做成这样

做成这样
  1. #==============================================================================
  2. #
  3. # ▼ Yanfly Engine Ace - Ace Status Menu v1.01
  4. # -- Last Updated: 2011.12.26
  5. # -- Level: Normal
  6. # -- Requires: n/a
  7. #
  8. #==============================================================================

  9. $imported = {} if $imported.nil?
  10. $imported["YEA-StatusMenu"] = true

  11. #==============================================================================
  12. # ▼ Updates
  13. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  14. # 2011.12.26 - Compatibility Update: Rename Actor
  15. # 2011.12.23 - Started Script and Finished.
  16. #
  17. #==============================================================================
  18. # ▼ Introduction
  19. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  20. # This script changes the status screen completely to something the player can
  21. # interact with more and be able to view actor data with more clarity. The
  22. # player is able to view the general information for an actor (parameters and
  23. # experience), a parameters bar graph, the various hidden extra parameters
  24. # (named properties in the script), and a customizable biography for the actor.
  25. # Also with this script, biographies can be changed at any time using a script
  26. # call to add more of a personal touch to characters.
  27. #
  28. #==============================================================================
  29. # ▼ Instructions
  30. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  31. # To install this script, open up your script editor and copy/paste this script
  32. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
  33. #
  34. # -----------------------------------------------------------------------------
  35. # Script Calls - These commands are used with script calls.
  36. # -----------------------------------------------------------------------------
  37. # $game_actors[x].description = string
  38. # Changes the biography description for actor x to that of the string. Use \n
  39. # to designate linebreaks in the string. If you wish to use text codes, write
  40. # them in the strings as \\n[2] or \\c[3] to make them work properly.
  41. #
  42. #==============================================================================
  43. # ▼ Compatibility
  44. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  45. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
  46. # it will run with RPG Maker VX without adjusting.
  47. #
  48. #==============================================================================

  49. module YEA
  50.   module STATUS
  51.    
  52.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  53.     # - Command Window Settings -
  54.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  55.     # This section adjusts the commands that appear in the command window used
  56.     # for the status screen. Rearrange the commands, add new ones, remove them
  57.     # as you see fit.
  58.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  59.     COMMANDS =[ # The order at which the menu items are shown.
  60.    #  [ :command,      "Display"],
  61.       [ :general,      "基本信息"],
  62.     # [ :parameters,   "数据"],
  63.       [ :properties,   "详细属性"],
  64.       [ :biography,    "人物传记"],
  65.       [ :custom1,      "已学技能"],
  66.       [ :custom2,      "当前装备"],
  67.     # [ :custom3,      "Class"],
  68.       
  69.       [ :rename,       "Rename"],  # Requires YEA - Rename Actor
  70.       [ :retitle,      "Retitle"],  # Requires YEA - Rename Actor
  71.     ] # Do not remove this.
  72.    
  73.     #--------------------------------------------------------------------------
  74.     # - Status Custom Commands -
  75.     # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  76.     # For those who use scripts to that may produce unique effects for the
  77.     # status menu, use this hash to manage the custom commands for the Status
  78.     # Command Window. You can disable certain commands or prevent them from
  79.     # appearing by using switches. If you don't wish to bind them to a switch,
  80.     # set the proper switch to 0 for it to have no impact.
  81.     #--------------------------------------------------------------------------
  82.     CUSTOM_STATUS_COMMANDS ={
  83.     # :command => [EnableSwitch, ShowSwitch, Handler Method, Window Draw],
  84.       :custom1 => [           0,          0, :command_name1, :draw_custom1],
  85.       :custom2 => [           0,          0, :command_name2, :draw_custom2],
  86.       :custom3 => [           0,          0, :command_name3, :draw_custom3],
  87.     } # Do not remove this.
  88.    
  89.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  90.     # - General Window Settings -
  91.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  92.     # These settings adjust the way the general window visually appears.
  93.     # Not many changes need to be done here other than vocab changes.
  94.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  95.     PARAMETERS_VOCAB = "数据"         # Title used for Parameters.
  96.     EXPERIENCE_VOCAB = "经验值"         # Title used for Experience.
  97.     NEXT_TOTAL_VOCAB = "下次升级总经验值"  # Label used for total experience.
  98.    
  99.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  100.     # - Parameters Window Settings -
  101.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  102.     # These settings adjust the way the parameters window visually appears.
  103.     # Each of the stats have a non-window colour. Adjust them as you see fit.
  104.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  105.     PARAM_COLOUR ={
  106.     # ParamID => [:stat,       Colour1,                   Colour2          ],
  107.             2 => [ :atk, Color.new(225, 100, 100), Color.new(240, 150, 150)],
  108.             3 => [ :def, Color.new(250, 150,  30), Color.new(250, 180, 100)],
  109.             4 => [ :mat, Color.new( 70, 140, 200), Color.new(135, 180, 230)],
  110.             5 => [ :mdf, Color.new(135, 130, 190), Color.new(170, 160, 220)],
  111.             6 => [ :agi, Color.new( 60, 180,  80), Color.new(120, 200, 120)],
  112.             7 => [ :luk, Color.new(255, 240, 100), Color.new(255, 250, 200)],
  113.     } # Do not remove this.
  114.    
  115.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  116.     # - Properties Window Settings -
  117.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  118.     # These settings adjust the way the properties window visually appears.
  119.     # The properties have abbreviations, but leaving them as such makes things
  120.     # confusing (as it's sometimes hard to figure out what the abbreviations
  121.     # mean). Change the way the appear, whether or not they appear, and what
  122.     # order they will appear in.
  123.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  124.     PROPERTIES_FONT_SIZE = 16        # Font size used for properties.
  125.    
  126.     # These are the properties that appear in column 1.
  127.     PROPERTIES_COLUMN1 =[
  128.       [:hit, "命中率"],
  129.       [:eva, "闪避率"],
  130.       [:cri, "暴击率"],
  131.       [:cnt, "反击率"],
  132.       [:tgr, "仇恨值"],
  133.       [:cev, "必杀闪避率"],
  134.       [:mev, "魔法闪避率"],
  135.       [:mrf, "魔法反射率"],
  136.     ] # Do not remove this.
  137.    
  138.     # These are the properties that appear in column 2.
  139.     PROPERTIES_COLUMN2 =[
  140.       [:hrg, "生命恢复"],
  141.       [:mrg, "魔法再生"],
  142.       [:trg, "TP恢复"],
  143.       [:pha, "物品效果率"],
  144.       [:exr, "经验获得率"],
  145.       [:rec, "恢复效果"],
  146.       [:grd, "防御效果"],
  147.       [:tcr, "TP恢复率"],
  148.     ] # Do not remove this.
  149.    
  150.     # These are the properties that appear in column 3.
  151.     PROPERTIES_COLUMN3 =[
  152. #~       [:hcr, "士兵消费伤害"],    # Requires YEA - Skill Cost Manager
  153.       [:mcr, "魔法伤害效果"],
  154.       [:tcr, "特技伤害效果"],    # Requires YEA - Skill Cost Manager
  155. #~       [:cdr, "硬直伤害"],   # Requires YEA - Skill Restrictions
  156. #~       [:wur, "激励伤害"],     # Requires YEA - Skill Restrictions
  157.       [:pdr, "物理伤害效果"],
  158.       [:mdr, "魔法伤害效果"],
  159.       [:fdr, "基本伤害效果"],
  160.     ] # Do not remove this.
  161.    
  162.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  163.     # - Biography Window Settings -
  164.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  165.     # These settings adjust the way the biography appears including the title
  166.     # used at the top, the font size, and whatnot.
  167.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  168.     BIOGRAPHY_NICKNAME_TEXT = "%s · %s"   # How the nickname will appear.
  169.     BIOGRAPHY_NICKNAME_SIZE = 32            # Size of the font used.
  170.    
  171.      
  172.    
  173.   end # STATUS
  174. end # YEA

  175. #==============================================================================
  176. # ▼ Editting anything past this point may potentially result in causing
  177. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  178. # halitosis so edit at your own risk.
  179. #==============================================================================

  180. #==============================================================================
  181. # ■ Numeric
  182. #==============================================================================

  183. class Numeric
  184.   
  185.   #--------------------------------------------------------------------------
  186.   # new method: group_digits
  187.   #--------------------------------------------------------------------------
  188.   unless $imported["YEA-CoreEngine"]
  189.   def group; return self.to_s; end
  190.   end # $imported["YEA-CoreEngine"]
  191.    
  192. end # Numeric

  193. #==============================================================================
  194. # ■ Game_Temp
  195. #==============================================================================

  196. class Game_Temp
  197.   
  198.   #--------------------------------------------------------------------------
  199.   # public instance variables
  200.   #--------------------------------------------------------------------------
  201.   attr_accessor :scene_status_index
  202.   attr_accessor :scene_status_oy
  203.   
  204. end # Game_Temp

  205. #==============================================================================
  206. # ■ Game_Actor
  207. #==============================================================================

  208. class Game_Actor < Game_Battler
  209.   
  210.   #--------------------------------------------------------------------------
  211.   # new method: description=
  212.   #--------------------------------------------------------------------------
  213.   def description=(text)
  214.     @description = text
  215.   end
  216.   
  217.   #--------------------------------------------------------------------------
  218.   # overwrite method: description
  219.   #--------------------------------------------------------------------------
  220.   def description
  221.     return @description unless @description.nil?
  222.     return actor.description
  223.   end
  224.   
  225. end # Game_Actor

  226. #==============================================================================
  227. # ■ Window_StatusCommand
  228. #==============================================================================

  229. class Window_StatusCommand < Window_Command
  230.   
  231.   #--------------------------------------------------------------------------
  232.   # public instance variables
  233.   #--------------------------------------------------------------------------
  234.   attr_accessor :item_window
  235.   
  236.   #--------------------------------------------------------------------------
  237.   # initialize
  238.   #--------------------------------------------------------------------------
  239.   def initialize(dx, dy)
  240.     super(dx, dy)
  241.     [url=home.php?mod=space&uid=95897]@actor[/url] = nil
  242.   end
  243.   
  244.   #--------------------------------------------------------------------------
  245.   # window_width
  246.   #--------------------------------------------------------------------------
  247.   def window_width; return 160; end
  248.   
  249.   #--------------------------------------------------------------------------
  250.   # actor=
  251.   #--------------------------------------------------------------------------
  252.   def actor=(actor)
  253.     return if [url=home.php?mod=space&uid=95897]@actor[/url] == actor
  254.     [url=home.php?mod=space&uid=95897]@actor[/url] = actor
  255.     refresh
  256.   end
  257.   
  258.   #--------------------------------------------------------------------------
  259.   # visible_line_number
  260.   #--------------------------------------------------------------------------
  261.   def visible_line_number; return 4; end
  262.   
  263.   #--------------------------------------------------------------------------
  264.   # ok_enabled?
  265.   #--------------------------------------------------------------------------
  266.   def ok_enabled?
  267.     return handle?(current_symbol)
  268.   end
  269.   
  270.   #--------------------------------------------------------------------------
  271.   # make_command_list
  272.   #--------------------------------------------------------------------------
  273.   def make_command_list
  274.     return unless @actor
  275.     for command in YEA::STATUS::COMMANDS
  276.       case command[0]
  277.       #--- Default ---
  278.       when :general, :parameters, :properties, :biography
  279.         add_command(command[1], command[0])
  280.       #--- Yanfly Engine Ace ---
  281.       when :rename
  282.         next unless $imported["YEA-RenameActor"]
  283.         add_command(command[1], command[0], @actor.rename_allow?)
  284.       when :retitle
  285.         next unless $imported["YEA-RenameActor"]
  286.         add_command(command[1], command[0], @actor.retitle_allow?)
  287.       #--- Custom Commands ---
  288.       else
  289.         process_custom_command(command)
  290.       end
  291.     end
  292.     if !$game_temp.scene_status_index.nil?
  293.       select($game_temp.scene_status_index)
  294.       self.oy = $game_temp.scene_status_oy
  295.     end
  296.     $game_temp.scene_status_index = nil
  297.     $game_temp.scene_status_oy = nil
  298.   end
  299.   
  300.   #--------------------------------------------------------------------------
  301.   # process_ok
  302.   #--------------------------------------------------------------------------
  303.   def process_ok
  304.     $game_temp.scene_status_index = index
  305.     $game_temp.scene_status_oy = self.oy
  306.     super
  307.   end
  308.   
  309.   #--------------------------------------------------------------------------
  310.   # process_custom_command
  311.   #--------------------------------------------------------------------------
  312.   def process_custom_command(command)
  313.     return unless YEA::STATUS::CUSTOM_STATUS_COMMANDS.include?(command[0])
  314.     show = YEA::STATUS::CUSTOM_STATUS_COMMANDS[command[0]][1]
  315.     continue = show <= 0 ? true : $game_switches[show]
  316.     return unless continue
  317.     text = command[1]
  318.     switch = YEA::STATUS::CUSTOM_STATUS_COMMANDS[command[0]][0]
  319.     enabled = switch <= 0 ? true : $game_switches[switch]
  320.     add_command(text, command[0], enabled)
  321.   end
  322.   
  323.   #--------------------------------------------------------------------------
  324.   # update
  325.   #--------------------------------------------------------------------------
  326.   def update
  327.     super
  328.     update_item_window
  329.   end
  330.   
  331.   #--------------------------------------------------------------------------
  332.   # update_item_window
  333.   #--------------------------------------------------------------------------
  334.   def update_item_window
  335.     return if @item_window.nil?
  336.     return if @current_index == current_symbol
  337.     @current_index = current_symbol
  338.     @item_window.refresh
  339.   end
  340.   
  341.   #--------------------------------------------------------------------------
  342.   # item_window=
  343.   #--------------------------------------------------------------------------
  344.   def item_window=(window)
  345.     @item_window = window
  346.     update
  347.   end
  348.   
  349.   #--------------------------------------------------------------------------
  350.   # update_help
  351.   #--------------------------------------------------------------------------
  352.   def update_help
  353.     return if @actor.nil?
  354.     @help_window.set_text("L,R键切换角色")#(@actor.actor.description)
  355.   end
  356.   
  357. end # Window_StatusCommand

  358. #==============================================================================
  359. # ■ Window_StatusActor
  360. #==============================================================================

  361. class Window_StatusActor < Window_Base
  362.   
  363.   #--------------------------------------------------------------------------
  364.   # initialize
  365.   #--------------------------------------------------------------------------
  366.   def initialize(dx, dy)
  367.     super(dx, dy, window_width, fitting_height(4))
  368.     @actor = nil
  369.   end
  370.   
  371.   #--------------------------------------------------------------------------
  372.   # window_width
  373.   #--------------------------------------------------------------------------
  374.   def window_width; return Graphics.width - 160; end
  375.   
  376.   #--------------------------------------------------------------------------
  377.   # actor=
  378.   #--------------------------------------------------------------------------
  379.   def actor=(actor)
  380.     return if @actor == actor
  381.     @actor = actor
  382.     refresh
  383.   end
  384.   
  385.   #--------------------------------------------------------------------------
  386.   # refresh
  387.   #--------------------------------------------------------------------------
  388.   def refresh
  389.     contents.clear
  390.     return unless @actor
  391.     draw_actor_face(@actor, 0, 0)
  392.     draw_actor_simple_status(@actor, 108, line_height / 2)
  393.   end
  394.   
  395. end # Window_StatusActor

  396. #==============================================================================
  397. # ■ Window_StatusItem
  398. #==============================================================================

  399. class Window_StatusItem < Window_Base
  400.   
  401.   #--------------------------------------------------------------------------
  402.   # initialize
  403.   #--------------------------------------------------------------------------
  404.   def initialize(dx, dy, command_window)
  405.     super(dx, dy, Graphics.width, Graphics.height - dy)
  406.     @command_window = command_window
  407.     @actor = nil
  408.     refresh
  409.   end
  410.   
  411.   #--------------------------------------------------------------------------
  412.   # actor=
  413.   #--------------------------------------------------------------------------
  414.   def actor=(actor)
  415.     return if @actor == actor
  416.     @actor = actor
  417.     refresh
  418.   end
  419.   
  420.   #--------------------------------------------------------------------------
  421.   # refresh
  422.   #--------------------------------------------------------------------------
  423.   def refresh
  424.     contents.clear
  425.     reset_font_settings
  426.     return unless @actor
  427.     draw_window_contents
  428.   end
  429.   
  430.   #--------------------------------------------------------------------------
  431.   # draw_window_contents
  432.   #--------------------------------------------------------------------------
  433.   def draw_window_contents
  434.     case @command_window.current_symbol
  435.     when :general
  436.       draw_actor_general
  437.     when :parameters
  438.       draw_parameter_graph
  439.     when :properties
  440.       draw_properties_list
  441.     when :biography, :rename, :retitle
  442.       draw_actor_biography
  443.     else
  444.       draw_custom
  445.     end
  446.   end
  447.   
  448.   #--------------------------------------------------------------------------
  449.   # draw_actor_general
  450.   #--------------------------------------------------------------------------
  451.   def draw_actor_general
  452.     change_color(system_color)
  453.     text = YEA::STATUS::PARAMETERS_VOCAB
  454.     draw_text(0, 0, contents.width/2, line_height, text, 1)
  455.     text = YEA::STATUS::EXPERIENCE_VOCAB
  456.     draw_text(contents.width/2, 0, contents.width/2, line_height, text, 1)
  457.     draw_general_parameters
  458.     draw_general_experience
  459.   end
  460.   
  461.   #--------------------------------------------------------------------------
  462.   # draw_general_parameters
  463.   #--------------------------------------------------------------------------
  464.   def draw_general_parameters
  465.     dx = 24
  466.     dy = line_height / 2
  467.     draw_actor_level(dx, line_height*1+dy, contents.width/2 - 24)
  468.     draw_actor_param(0, dx, line_height*2+dy, contents.width/2 - 24)
  469.     draw_actor_param(1, dx, line_height*3+dy, contents.width/2 - 24)
  470.     draw_actor_param(2, dx, line_height*4+dy, contents.width/4 - 12)
  471.     draw_actor_param(4, dx, line_height*5+dy, contents.width/4 - 12)
  472.     draw_actor_param(6, dx, line_height*6+dy, contents.width/4 - 12)
  473.     dx += contents.width/4 - 12
  474.     draw_actor_param(3, dx, line_height*4+dy, contents.width/4 - 12)
  475.     draw_actor_param(5, dx, line_height*5+dy, contents.width/4 - 12)
  476.     draw_actor_param(7, dx, line_height*6+dy, contents.width/4 - 12)
  477.   end
  478.   
  479.   #--------------------------------------------------------------------------
  480.   # draw_actor_level
  481.   #--------------------------------------------------------------------------
  482.   def draw_actor_level(dx, dy, dw)
  483.     colour = Color.new(0, 0, 0, translucent_alpha/2)
  484.     rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
  485.     contents.fill_rect(rect, colour)
  486.     change_color(system_color)
  487.     draw_text(dx+4, dy, dw-8, line_height, Vocab::level)
  488.     change_color(normal_color)
  489.     draw_text(dx+4, dy, dw-8, line_height, @actor.level.group, 2)
  490.   end
  491.   
  492.   #--------------------------------------------------------------------------
  493.   # draw_actor_param
  494.   #--------------------------------------------------------------------------
  495.   def draw_actor_param(param_id, dx, dy, dw)
  496.     colour = Color.new(0, 0, 0, translucent_alpha/2)
  497.     rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
  498.     contents.fill_rect(rect, colour)
  499.     change_color(system_color)
  500.     draw_text(dx+4, dy, dw-8, line_height, Vocab::param(param_id))
  501.     change_color(normal_color)
  502.     draw_text(dx+4, dy, dw-8, line_height, @actor.param(param_id).group, 2)
  503.   end
  504.   
  505.   #--------------------------------------------------------------------------
  506.   # draw_general_experience
  507.   #--------------------------------------------------------------------------
  508.   def draw_general_experience
  509.     if @actor.max_level?
  510.       s1 = @actor.exp.group
  511.       s2 = "-------"
  512.       s3 = "-------"
  513.     else
  514.       s1 = @actor.exp.group
  515.       s2 = (@actor.next_level_exp - @actor.exp).group
  516.       s3 = @actor.next_level_exp.group
  517.     end
  518.     s_next = sprintf(Vocab::ExpNext, Vocab::level)
  519.     total_next_text = sprintf(YEA::STATUS::NEXT_TOTAL_VOCAB, Vocab::level)
  520.     change_color(system_color)
  521.     dx = contents.width/2 + 12
  522.     dy = line_height * 3 / 2
  523.     dw = contents.width/2 - 36
  524.     draw_text(dx, dy + line_height * 0, dw, line_height, Vocab::ExpTotal)
  525.     draw_text(dx, dy + line_height * 2, dw, line_height, s_next)
  526.     draw_text(dx, dy + line_height * 4, dw, line_height, total_next_text)
  527.     change_color(normal_color)
  528.     draw_text(dx, dy + line_height * 1, dw, line_height, s1, 2)
  529.     draw_text(dx, dy + line_height * 3, dw, line_height, s2, 2)
  530.     draw_text(dx, dy + line_height * 5, dw, line_height, s3, 2)
  531.   end
  532.   
  533.   #--------------------------------------------------------------------------
  534.   # draw_parameter_graph
  535.   #--------------------------------------------------------------------------
  536.   def draw_parameter_graph
  537.     draw_parameter_title
  538.     dy = line_height * 3/2
  539.     maximum = 1
  540.     minimum = @actor.param_max(2)
  541.     for i in 2..7
  542.       maximum = [@actor.param(i), maximum].max
  543.       minimum = [@actor.param(i), minimum].min
  544.     end
  545.     maximum += minimum * 0.33 unless maximum == minimum
  546.     for i in 2..7
  547.       rate = calculate_rate(maximum, minimum, i)
  548.       dy = line_height * i - line_height/2
  549.       draw_param_gauge(i, dy, rate)
  550.       change_color(system_color)
  551.       draw_text(28, dy, contents.width - 56, line_height, Vocab::param(i))
  552.       dw = (contents.width - 48) * rate - 8
  553.       change_color(normal_color)
  554.       draw_text(28, dy, dw, line_height, @actor.param(i).group, 2)
  555.     end
  556.   end
  557.   
  558.   #--------------------------------------------------------------------------
  559.   # calculate_rate
  560.   #--------------------------------------------------------------------------
  561.   def calculate_rate(maximum, minimum, param_id)
  562.     return 1.0 if maximum == minimum
  563.     rate = (@actor.param(param_id).to_f - minimum) / (maximum - minimum).to_f
  564.     rate *= 0.67
  565.     rate += 0.33
  566.     return rate
  567.   end
  568.   
  569.   #--------------------------------------------------------------------------
  570.   # draw_param_gauge
  571.   #--------------------------------------------------------------------------
  572.   def draw_param_gauge(param_id, dy, rate)
  573.     dw = contents.width - 48
  574.     colour1 = param_gauge1(param_id)
  575.     colour2 = param_gauge2(param_id)
  576. #~     draw_gauge(24, dy, dw, rate, colour1, colour2)
  577.   end
  578.   
  579.   #--------------------------------------------------------------------------
  580.   # param_gauge1
  581.   #--------------------------------------------------------------------------
  582.   def param_gauge1(param_id)
  583.     return YEA::STATUS::PARAM_COLOUR[param_id][1]
  584.   end
  585.   
  586.   #--------------------------------------------------------------------------
  587.   # param_gauge2
  588.   #--------------------------------------------------------------------------
  589.   def param_gauge2(param_id)
  590.     return YEA::STATUS::PARAM_COLOUR[param_id][2]
  591.   end
  592.   
  593.   #--------------------------------------------------------------------------
  594.   # draw_parameter_title
  595.   #--------------------------------------------------------------------------
  596.   def draw_parameter_title
  597.     colour = Color.new(0, 0, 0, translucent_alpha/2)
  598.     rect = Rect.new(0, 0, contents.width, contents.height)
  599.     contents.fill_rect(rect, colour)
  600.     change_color(system_color)
  601.     text = YEA::STATUS::PARAMETERS_VOCAB
  602.     draw_text(0, line_height/3, contents.width, line_height, text, 1)
  603.   end
  604.   
  605.   #--------------------------------------------------------------------------
  606.   # draw_properties_list
  607.   #--------------------------------------------------------------------------
  608.   def draw_properties_list
  609.     contents.font.size = YEA::STATUS::PROPERTIES_FONT_SIZE
  610.     draw_properties_column1
  611.     draw_properties_column2
  612.     draw_properties_column3
  613.     reset_font_settings
  614.   end
  615.   
  616.   #--------------------------------------------------------------------------
  617.   # draw_properties_column1
  618.   #--------------------------------------------------------------------------
  619.   def draw_properties_column1
  620.     dx = 24 - 16
  621.     dw = (contents.width - 24) / 3 - 24+20
  622.     dy = 0
  623.     for property in YEA::STATUS::PROPERTIES_COLUMN1
  624.       dy = draw_property(property, dx, dy, dw)
  625.     end
  626.   end
  627.   
  628.   #--------------------------------------------------------------------------
  629.   # draw_properties_column2
  630.   #--------------------------------------------------------------------------
  631.   def draw_properties_column2
  632.     dx = 24 + (contents.width - 24) / 3 - 8
  633.     dw = (contents.width - 24) / 3 - 24+20
  634.     dy = 0
  635.     for property in YEA::STATUS::PROPERTIES_COLUMN2
  636.       dy = draw_property(property, dx, dy, dw)
  637.     end
  638.   end
  639.   
  640.   #--------------------------------------------------------------------------
  641.   # draw_properties_column3
  642.   #--------------------------------------------------------------------------
  643.   def draw_properties_column3
  644.     dx = 24 + (contents.width - 24) / 3 * 2
  645.     dw = (contents.width - 24) / 3 - 24+20
  646.     dy = 0
  647.     for property in YEA::STATUS::PROPERTIES_COLUMN3
  648.       dy = draw_property(property, dx, dy, dw)
  649.     end
  650.   end
  651.   
  652.   #--------------------------------------------------------------------------
  653.   # draw_property
  654.   #--------------------------------------------------------------------------
  655.   def draw_property(property, dx, dy, dw)
  656.     case property[0]
  657.     #---
  658.     when :hit
  659.       fmt = "%1.1f%%"       #"%1.1f%%"
  660.       value = sprintf(fmt, @actor.hit * 100)
  661.     when :eva
  662.       fmt = "%1.1f%%"
  663.       value = sprintf(fmt, @actor.eva * 100)
  664.     when :cri
  665.       fmt = "%1.1f%%"
  666.       value = sprintf(fmt, @actor.cri * 100)
  667.     when :cev
  668.       fmt = "%1.1f%%"
  669.       value = sprintf(fmt, @actor.cev * 100)
  670.     when :mev
  671.       fmt = "%1.1f%%"
  672.       value = sprintf(fmt, @actor.mev * 100)
  673.     when :mrf
  674.       fmt = "%1.1f%%"
  675.       value = sprintf(fmt, @actor.mrf * 100)
  676.     when :cnt
  677.       fmt = "%1.1f%%"
  678.       value = sprintf(fmt, @actor.cnt * 100)
  679.     when :hrg
  680.       fmt = "%1.1f"
  681.       value = sprintf(fmt, @actor.hrg * @actor.mhp)
  682.     when :mrg
  683.       fmt = "%1.1f"
  684.       value = sprintf(fmt, @actor.mrg * @actor.mmp)
  685.     when :trg
  686.       fmt = "%1.1f"
  687.       value = sprintf(fmt, @actor.trg * 100)
  688.     when :tgr
  689.       fmt = "%1.1f%%"
  690.       value = sprintf(fmt, @actor.tgr * 100 )#+ 100)
  691.     when :grd
  692.       fmt = "%1.1f%%"
  693.       value = sprintf(fmt, @actor.grd * 100)
  694.     when :rec
  695.       fmt = "%1.1f%%"
  696.       value = sprintf(fmt, @actor.rec * 100)
  697.     when :pha
  698.       fmt = "%1.1f%%"
  699.       value = sprintf(fmt, @actor.pha * 100)
  700.     when :mcr
  701.       fmt = "%1.1f%%"
  702.       value = sprintf(fmt, @actor.mcr * 100)
  703.     when :tcr
  704.       fmt = "%1.1f%%"
  705.       value = sprintf(fmt, @actor.tcr * 100)
  706.     when :pdr
  707.       fmt = "%1.1f%%"
  708.       value = sprintf(fmt, @actor.pdr * 100)
  709.     when :mdr
  710.       fmt = "%1.1f%%"
  711.       value = sprintf(fmt, @actor.mdr * 100)
  712.     when :fdr
  713.       fmt = "%1.1f%%"
  714.       value = sprintf(fmt, @actor.fdr * 100)
  715.     when :exr
  716.       fmt = "%1.1f%%"
  717.       value = sprintf(fmt, @actor.exr * 100)
  718.     when :hcr
  719.       return dy unless $imported["YEA-SkillCostManager"]
  720.       fmt = "%1.1f%%"
  721.       value = sprintf(fmt, @actor.hcr * 100)
  722.     when :tcr
  723.       return dy unless $imported["YEA-SkillCostManager"]
  724.       fmt = "%1.1f%%"
  725.       value = sprintf(fmt, @actor.tcr * 100)
  726.     when :gcr
  727.       return dy unless $imported["YEA-SkillCostManager"]
  728.       fmt = "%1.1f%%"
  729.       value = sprintf(fmt, @actor.gcr * 100)
  730.     when :cdr
  731.       return dy unless $imported["YEA-SkillRestrictions"]
  732.       fmt = "%1.1f%%"
  733.       value = sprintf(fmt, @actor.cdr * 100)
  734.     when :wur
  735.       return dy unless $imported["YEA-SkillRestrictions"]
  736.       fmt = "%1.1f%%"
  737.       value = sprintf(fmt, @actor.wur * 100)
  738.     #---
  739.     else; return dy
  740.     end
  741.     colour = Color.new(0, 0, 0, translucent_alpha/2)
  742.     rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
  743.     contents.fill_rect(rect, colour)
  744.     change_color(system_color)
  745.     draw_text(dx+4, dy, dw-8, line_height, property[1], 0)
  746.     change_color(normal_color)
  747.     draw_text(dx+4, dy, dw-8, line_height, value, 2)
  748.     return dy + line_height
  749.   end
  750.   
  751.   #--------------------------------------------------------------------------
  752.   # draw_actor_biography
  753.   #--------------------------------------------------------------------------
  754.   def draw_actor_biography
  755.     fmt = YEA::STATUS::BIOGRAPHY_NICKNAME_TEXT
  756.     text = sprintf(fmt, @actor.name, @actor.nickname)
  757.     contents.font.size = YEA::STATUS::BIOGRAPHY_NICKNAME_SIZE
  758.     draw_text(0, 0, contents.width, line_height*2, text, 1)
  759.     reset_font_settings
  760.     draw_text_ex(24, line_height*2, @actor.description)
  761.   end
  762.   
  763.   #--------------------------------------------------------------------------
  764.   # draw_custom
  765.   #--------------------------------------------------------------------------
  766.   def draw_custom
  767.     current_symbol = @command_window.current_symbol
  768.     return unless YEA::STATUS::CUSTOM_STATUS_COMMANDS.include?(current_symbol)
  769.     method(YEA::STATUS::CUSTOM_STATUS_COMMANDS[current_symbol][3]).call
  770.   end
  771.   
  772.   #--------------------------------------------------------------------------
  773.   # draw_custom1
  774.   #--------------------------------------------------------------------------
  775.   def draw_custom1
  776.     dx = 0; dy = 0
  777.     for skill in @actor.skills
  778.       next if skill.nil?
  779.       next unless @actor.added_skill_types.include?(skill.stype_id)
  780.       draw_item_name(skill, dx, dy)
  781.       dx = dx == contents.width / 2 + 16 ? 0 : contents.width / 2 + 16
  782.       dy += line_height if dx == 0
  783.       return if dy + line_height > contents.height
  784.     end
  785.   end
  786.   
  787.   #--------------------------------------------------------------------------
  788.   # draw_custom2
  789.   #--------------------------------------------------------------------------
  790.   def draw_custom2
  791.     dx = 4; dy = 0; slot_id = 0
  792.     for equip in @actor.equips
  793.       change_color(system_color)
  794.       text = Vocab.etype(@actor.equip_slots[slot_id])
  795.       draw_text(dx, dy, contents.width - dx, line_height, text)
  796.       reset_font_settings
  797.       draw_item_name(equip, dx+92, dy) unless equip.nil?
  798.       slot_id += 1
  799.       dy += line_height
  800.       break if dy + line_height > contents.height
  801.     end
  802.     dw = Graphics.width * 2 / 5 - 24
  803.     dx = contents.width - dw; dy = 0
  804.     param_id = 0
  805.     8.times do
  806.       colour = Color.new(0, 0, 0, translucent_alpha/2)
  807.       rect = Rect.new(dx+1, dy+1, dw - 2, line_height - 2)
  808.       contents.fill_rect(rect, colour)
  809.       size = $imported["YEA-AceEquipEngine"] ? YEA::EQUIP::STATUS_FONT_SIZE : 20
  810.       contents.font.size = size
  811.       change_color(system_color)
  812.       draw_text(dx+4, dy, dw, line_height, Vocab::param(param_id))
  813.       change_color(normal_color)
  814.       dwa = (Graphics.width * 2 / 5 - 2) / 2
  815.       draw_text(dx +80, dy, dwa, line_height, @actor.param(param_id).group, 2)
  816.       reset_font_settings
  817. #~       change_color(system_color)
  818. #~       draw_text(dx + dwa, dy, 22, line_height, "→", 1)
  819.       param_id += 1
  820.       dy += line_height
  821.       break if dy + line_height > contents.height
  822.     end
  823.   end
  824.   
  825.   #--------------------------------------------------------------------------
  826.   # draw_custom3
  827.   #--------------------------------------------------------------------------
  828.   def draw_custom3
  829.     return unless $imported["YEA-ClassSystem"]
  830.     data = []
  831.     for class_id in YEA::CLASS_SYSTEM::CLASS_ORDER
  832.       next if $data_classes[class_id].nil?
  833.       item = $data_classes[class_id]
  834.       next unless @actor.unlocked_classes.include?(item.id) or
  835.         YEA::CLASS_SYSTEM::DEFAULT_UNLOCKS.include?(item.id)
  836.       data.push(item)
  837.     end
  838.     dx = 0; dy = 0; class_index = 0
  839.     for class_id in data
  840.       item = data[class_index]
  841.       reset_font_settings
  842.       if item == @actor.class
  843.         change_color(text_color(YEA::CLASS_SYSTEM::CURRENT_CLASS_COLOUR))
  844.       elsif item == @actor.subclass
  845.         change_color(text_color(YEA::CLASS_SYSTEM::SUBCLASS_COLOUR))
  846.       else
  847.         change_color(normal_color)
  848.       end
  849.       icon = item.icon_index
  850.       draw_icon(icon, dx, dy)
  851.       text = item.name
  852.       draw_text(24, dy, contents.width-24, line_height, text)
  853.       next if YEA::CLASS_SYSTEM::MAINTAIN_LEVELS
  854.       level = @actor.class_level(item.id)
  855.       contents.font.size = YEA::CLASS_SYSTEM::LEVEL_FONT_SIZE
  856.       text = sprintf(YEA::CLASS_SYSTEM::CLASS_LEVEL, level.group)
  857.       dwa = contents.width - (Graphics.width * 2 / 5 - 24) - 28
  858.       draw_text(dx, dy, dwa, line_height, text, 2)
  859.       class_index += 1
  860.       dy += line_height
  861.       break if dy + line_height > contents.height
  862.     end
  863.     dw = Graphics.width * 2 / 5 - 24
  864.     dx = contents.width - dw; dy = 0
  865.     param_id = 0
  866.     8.times do
  867.       colour = Color.new(0, 0, 0, translucent_alpha/2)
  868.       rect = Rect.new(dx+1, dy+1, dw - 2, line_height - 2)
  869.       contents.fill_rect(rect, colour)
  870.       contents.font.size = YEA::CLASS_SYSTEM::PARAM_FONT_SIZE
  871.       change_color(system_color)
  872.       draw_text(dx+4, dy, dw, line_height, Vocab::param(param_id))
  873.       change_color(normal_color)
  874.       dwa = (Graphics.width * 2 / 5 - 2) / 2
  875.       draw_text(dx, dy, dwa, line_height, @actor.param(param_id).group, 2)
  876.       reset_font_settings
  877.       change_color(system_color)
  878.       draw_text(dx + dwa, dy, 22, line_height, "→", 1)
  879.       param_id += 1
  880.       dy += line_height
  881.       break if dy + line_height > contents.height
  882.     end
  883.   end
  884.   
  885. end # Window_StatusItem

  886. #==============================================================================
  887. # ■ Scene_Status
  888. #==============================================================================

  889. class Scene_Status < Scene_MenuBase
  890.   
  891.   #--------------------------------------------------------------------------
  892.   # start
  893.   #--------------------------------------------------------------------------
  894.   def start
  895.     super
  896.      
  897.     create_help_window
  898.     create_command_window
  899.     create_status_window
  900.     create_item_window
  901.     relocate_windows
  902.   end
  903.   
  904.   #--------------------------------------------------------------------------
  905.   # create_command_window
  906.   #--------------------------------------------------------------------------
  907.   def create_command_window
  908.     wy = @help_window.height
  909.     @command_window = Window_StatusCommand.new(0, wy)
  910.     @command_window.viewport = @viewport
  911.     @command_window.actor = @actor
  912.     @command_window.help_window = @help_window
  913.     @command_window.set_handler(:cancel,   method(:return_scene))
  914.     @command_window.set_handler(:pagedown, method(:next_actor))
  915.     @command_window.set_handler(:pageup,   method(:prev_actor))
  916.     process_custom_status_commands
  917.   end
  918.   
  919.   #--------------------------------------------------------------------------
  920.   # process_custom_status_commands
  921.   #--------------------------------------------------------------------------
  922.   def process_custom_status_commands
  923.     for command in YEA::STATUS::COMMANDS
  924.       next unless YEA::STATUS::CUSTOM_STATUS_COMMANDS.include?(command[0])
  925.       called_method = YEA::STATUS::CUSTOM_STATUS_COMMANDS[command[0]][2]
  926.       @command_window.set_handler(command[0], method(called_method))
  927.     end
  928.   end
  929.   
  930.   #--------------------------------------------------------------------------
  931.   # create_status_window
  932.   #--------------------------------------------------------------------------
  933.   def create_status_window
  934.     wy = @help_window.height
  935.     @status_window = Window_StatusActor.new(@command_window.width, wy)
  936.     @status_window.viewport = @viewport
  937.     @status_window.actor = @actor
  938.   end
  939.   
  940.   #--------------------------------------------------------------------------
  941.   # create_item_window
  942.   #--------------------------------------------------------------------------
  943.   def create_item_window
  944.     dy = @command_window.y + @command_window.height
  945.     @item_window = Window_StatusItem.new(0, dy, @command_window)
  946.     @item_window.viewport = @viewport
  947.     @item_window.actor = @actor
  948.     @command_window.item_window = @item_window
  949.   end
  950.   
  951.   #--------------------------------------------------------------------------
  952.   # relocate_windows
  953.   #--------------------------------------------------------------------------
  954.   def relocate_windows
  955.     return unless $imported["YEA-AceMenuEngine"]
  956.     case Menu.help_window_location
  957.     when 0 # Top
  958.       @help_window.y = 0
  959.       @command_window.y = @help_window.height
  960.       @item_window.y = @command_window.y + @command_window.height
  961.     when 1 # Middle
  962.       @command_window.y = 0
  963.       @help_window.y = @command_window.height
  964.       @item_window.y = @help_window.y + @help_window.height
  965.     else # Bottom
  966.       @command_window.y = 0
  967.       @item_window.y = @command_window.height
  968.       @help_window.y = @item_window.y + @item_window.height
  969.     end
  970.     @status_window.y = @command_window.y
  971.   end
  972.   
  973.   #--------------------------------------------------------------------------
  974.   # on_actor_change
  975.   #--------------------------------------------------------------------------
  976.   def on_actor_change
  977.     @command_window.actor = @actor
  978.     @status_window.actor = @actor
  979.     @item_window.actor = @actor
  980.     @command_window.activate
  981.   end
  982.   
  983.   #--------------------------------------------------------------------------
  984.   # new method: command_name1
  985.   #--------------------------------------------------------------------------
  986.   def command_name1
  987.     SceneManager.call(Scene_Skill)
  988.   end
  989.   
  990.   #--------------------------------------------------------------------------
  991.   # new method: command_name2
  992.   #--------------------------------------------------------------------------
  993.   def command_name2
  994.     SceneManager.call(Scene_Equip)
  995.   end
  996.   
  997.   #--------------------------------------------------------------------------
  998.   # new method: command_name3
  999.   #--------------------------------------------------------------------------
  1000.   def command_name3
  1001.     unless $imported["YEA-ClassSystem"]
  1002.       @command_window.activate
  1003.       return
  1004.     end
  1005.     SceneManager.call(Scene_Class)
  1006.   end
  1007.   
  1008. end # Scene_Status

  1009. #==============================================================================
  1010. #
  1011. # ▼ End of File
  1012. #
  1013. #==============================================================================
复制代码
我还用了@后知后觉 的装备扩充脚本装备条目扩充  

无限の剣制

梦石
0
星屑
10460
在线时间
5019 小时
注册时间
2013-2-28
回帖
4942

开拓者贵宾

 楼主| 发表于 2014-4-16 23:24:24 | 显示全部楼层
呼唤大神@Sion  
回复

使用道具 举报

星君

梦石
0
星屑
83
在线时间
2980 小时
注册时间
2011-10-9
回帖
2234

贵宾短篇七萝莉正太组冠军

发表于 2014-4-17 01:39:32 | 显示全部楼层
本帖最后由 皮卡星 于 2014-4-16 18:43 编辑

随便写的,LZ把882行到898行换成下面这段试试
  1.     i = 1
  2.     16.times do  #显示16行
  3.       colour = Color.new(0, 0, 0, translucent_alpha/2)
  4.       rect = Rect.new(dx+1, dy+1, dw - 2, line_height - 2)
  5.       contents.fill_rect(rect, colour)
  6.       contents.font.size = YEA::CLASS_SYSTEM::PARAM_FONT_SIZE
  7.       change_color(system_color)
  8.       draw_text(dx+4, dy, dw, line_height, Vocab::param(param_id))
  9.       change_color(normal_color)
  10.       dwa = (Graphics.width * 2 / 5 - 2) / 2
  11.       draw_text(dx, dy, dwa, line_height, @actor.param(param_id).group, 2)
  12.       reset_font_settings
  13.       change_color(system_color)
  14.       draw_text(dx + dwa, dy, 22, line_height, "→", 1)
  15.       param_id += 1
  16.       dy += line_height
  17.       i += 1
  18.       dx += 160 if i >= 9
  19.       dy = 0 if i >= 9
  20.       #break if dy + line_height > contents.height
  21.     end
复制代码
就是把显示的装备调成了16个,到第9个的时候到第二列显示
我没看那个装备扩充脚本,我只是调了上限,LZ你可以自己修改: 3

回复

使用道具 举报

无限の剣制

梦石
0
星屑
10460
在线时间
5019 小时
注册时间
2013-2-28
回帖
4942

开拓者贵宾

 楼主| 发表于 2014-4-17 21:54:31 | 显示全部楼层
皮卡星 发表于 2014-4-17 01:39
随便写的,LZ把882行到898行换成下面这段试试就是把显示的装备调成了16个,到第9个的时候到第二列显示
我没 ...

报错,发生NameEreoe。uninitialized constant YEA::CLASS_SYSTEM
回复

使用道具 举报

星君

梦石
0
星屑
83
在线时间
2980 小时
注册时间
2011-10-9
回帖
2234

贵宾短篇七萝莉正太组冠军

发表于 2014-4-17 23:32:02 | 显示全部楼层
啊我发现我改错地方了,我上面改的改回去吧,看到8以为就是那个了,没仔细看内容就改Orz
LZ把808行到817行换成下面这段,应该不会有问题的这次
  1.     for equip in @actor.equips
  2.       change_color(system_color)
  3.       text = Vocab.etype(@actor.equip_slots[slot_id])
  4.       draw_text(dx, dy, contents.width - dx, line_height, text)
  5.       reset_font_settings
  6.       draw_item_name(equip, dx+92, dy) unless equip.nil?
  7.       slot_id += 1
  8.       dy += line_height
  9.       dx += 160 if slot_id >= 8
  10.       dy = 0 if slot_id >= 8
  11.       #break if dy + line_height > contents.height
  12.     end
复制代码

回复

使用道具 举报

无限の剣制

梦石
0
星屑
10460
在线时间
5019 小时
注册时间
2013-2-28
回帖
4942

开拓者贵宾

 楼主| 发表于 2014-4-17 23:58:16 | 显示全部楼层
本帖最后由 VIPArcher 于 2014-4-18 00:00 编辑
皮卡星 发表于 2014-4-17 23:32
啊我发现我改错地方了,我上面改的改回去吧,看到8以为就是那个了,没仔细看内容就改Orz
LZ把808行到817行 ...


有问题,第九个可以正常显示,第十个以后就不正常了。而且坐标也不太好

。。。

。。。

点评

不明白您的意图,是要横着排版,一共两列?  发表于 2014-4-18 23:22
回复

使用道具 举报

梦石
0
星屑
86
在线时间
362 小时
注册时间
2013-12-8
回帖
420
发表于 2014-4-18 00:12:52 | 显示全部楼层
来不及看脚本,提供一下思路,如果楼主有一点点基础的话可以试试自己改。
在循环描绘处用index%8==0来判断是否为8倍数,即换行,然后在条件下重置y,x+=144这样试试

点评

这是个不错的想法,我觉得可以奇数一列。偶数一列。判断是否为2的倍数。你觉得这样可行吗?  发表于 2014-4-18 22:07
柍念作yang三声。

龙→
回复

使用道具 举报

星君

梦石
0
星屑
83
在线时间
2980 小时
注册时间
2011-10-9
回帖
2234

贵宾短篇七萝莉正太组冠军

发表于 2014-4-18 00:23:15 | 显示全部楼层
      dx += 160 if slot_id >= 8
      dy = 0 if slot_id >= 8
换成
    dx += 192 if slot_id == 8
      dy = 0 if slot_id == 8
试试
感觉很抱歉哦,这么多BUG,不过我手上没那个脚本所以也没法测试,谅解下吧(

点评

认可答案  发表于 2014-4-18 22:05

回复

使用道具 举报

无限の剣制

梦石
0
星屑
10460
在线时间
5019 小时
注册时间
2013-2-28
回帖
4942

开拓者贵宾

 楼主| 发表于 2014-4-18 22:04:43 | 显示全部楼层
皮卡星 发表于 2014-4-18 00:23
dx += 160 if slot_id >= 8
      dy = 0 if slot_id >= 8
换成

感谢大神指导,我已解决
  1. dx = 240 if slot_id >= 8
  2.       dy = 0 if slot_id >= 8
  3.       dy = 0+line_height if slot_id >= 9
  4.       dy = 0+line_height*2 if slot_id >= 10
  5.       dy = 0+line_height*3 if slot_id >= 11
  6.       dy = 0+line_height*4 if slot_id >= 12
  7.       dy = 0+line_height*5 if slot_id >= 13
  8.       dy = 0+line_height*6 if slot_id >= 14
  9.       
复制代码
这样就可以了。不过这样一个一个判断感觉不太科学。有更简单的写法吗?没有就算了
回复

使用道具 举报

无限の剣制

梦石
0
星屑
10460
在线时间
5019 小时
注册时间
2013-2-28
回帖
4942

开拓者贵宾

 楼主| 发表于 2014-4-18 22:20:12 | 显示全部楼层
皮卡星 发表于 2014-4-18 00:23
dx += 160 if slot_id >= 8
      dy = 0 if slot_id >= 8
换成

已自行解决。
  1. dx = 240 if slot_id >= 8
  2.       if slot_id == 8
  3.         dy = 0
  4.       else
  5.         dy += line_height
  6.       end
复制代码
多谢指点
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部