查看: 2417|回复: 8

[已经解决] 一个小脚本问题 释放出错

[复制链接]
梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2017-8-22 12:50:08 | 显示全部楼层 |阅读模式

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

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

×





#■ 熟练精通
class Window_HongLian < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化窗口
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 133, 75)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.font.color = system_color
    self.contents.font.color = Color.new(255, 255, 255, 255)
    self.contents.draw_text(0, 0, 70, 30, "神魔碎片:")
    self.contents.draw_text(40, 20, 70, 30, "#{$game_variables[108]}片")
  end
end



# ■ 宇宙碎片的窗口

    @qaolin_window = Window_HongLian.new
    @qaolin_window.x = 160
    @qaolin_window.y = 380   
   

     @honglian_window.dispose  刷新窗口

    @honglian_window.update  释放窗口出错


请问为什么会出错呢 我是按照 系统提示书写的应该不会错啊
360截图20170822124557490.jpg

点评

……哪有这样调用窗口的………………………………  发表于 2017-8-22 13:33
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
梦石
0
星屑
19426
在线时间
3082 小时
注册时间
2013-1-11
回帖
1207
发表于 2017-8-22 13:17:04 | 显示全部楼层
@honglian_window未实例化是nil,哪儿来的dispose方法

点评

谢谢你啊 一直看你的名字一直看出张咚雨 种蒜有自己的窗口了 一直使用别人的窗口始终不是事  发表于 2017-8-22 16:15
大佬都是这样写的 我复制黏贴居然出错了 怎么办 啊  发表于 2017-8-22 15:01
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

 楼主| 发表于 2017-8-22 15:03:02 | 显示全部楼层
本帖最后由 j296196585 于 2017-8-22 15:06 编辑

目前游戏的主界面
整合了多方面大佬的资料 做出来的
可是中间太空了 我想增加内容不行 怎么回事。。

张咚咚 发表于 2017-8-22 13:17
@honglian_window未实例化是nil,哪儿来的dispose方法


  1. #========================================  
  2. #■ Game_Map  
  3. #----------------------------------------
  4. # Setting functions for the Map  
  5. #========================================  
  6. class Game_Map
  7. def name  
  8. $map_infos[@map_id]  
  9. end  
  10. end
  11. #========================================  
  12. #■ Window_Title  
  13. #----------------------------------------
  14. # Setting functions for the Title  
  15. #========================================  
  16. class Scene_Title  
  17. $map_infos = load_data("Data/MapInfos.rxdata")  
  18. for key in $map_infos.keys  
  19. $map_infos[key] = $map_infos[key].name  
  20. end  
  21. end

  22. #==============================================================================
  23. # ■ Window_MenuStatus  
  24. #------------------------------------------------------------------------------  
  25. #
  26. #==============================================================================
  27. class Window_MenuStatus < Window_Selectable  
  28. #--------------------------------------------------------------------------  
  29. # 玩家状态
  30. #--------------------------------------------------------------------------  
  31. def initialize  
  32.    super(1024, 820,1024, 820)  
  33.    self.contents = Bitmap.new(width - 32, height - 32)  
  34.    self.contents.font.name = "迷你简行楷"  
  35.    self.contents.font.size = 20

  36.    refresh  
  37.    self.active = false  
  38.    self.index = -1  
  39. end  
  40. #--------------------------------------------------------------------------  
  41. # Drawing Info on Screen  
  42. #--------------------------------------------------------------------------  
  43. def refresh  

  44.   
  45.    self.contents.clear  
  46.    @item_max = $game_party.actors.size  
  47.    for i in 0...$game_party.actors.size  
  48.      x = 94  
  49.      y =i * 133  
  50.      actor = $game_party.actors[i]  
  51.      bitmap=Bitmap.new("Graphics/Fas/#{actor.id}")
  52.      cw = bitmap.width
  53.      ch = bitmap.height
  54.     src_rect = Rect.new(0, 0, cw, ch)
  55.     self.contents.blt(x -100, y - 4, bitmap, src_rect)#- cw/20
  56.     draw_actor_hp(actor, 160, y + 36) #(actor, x, y + 38)  
  57.     draw_actor_sp(actor, 180, y + 93)#篮筐和血框间隔的距离
  58.     draw_actor_level(actor, 204,y - 7)#(actor, x, y + 18) 等级的坐标
  59.     draw_actor_state(actor, 200, y + 62)#(actor, x + 200, y)
  60.     draw_actor_name(actor, 202, y+10) #角色名字的坐标

  61.     self.contents.draw_text(150, 60, 60, 32, "门派:")
  62.     #所加门派
  63.     ##############################################
  64.   case $game_variables[12]
  65.   when 0
  66.     self.contents.draw_text(200, 60, 60, 32, "无")
  67.   when 1
  68.     self.contents.draw_text(200, 60, 60, 32, "神龙教")
  69.   when 2
  70.     self.contents.draw_text(200, 60, 60, 32, "华山派")
  71.   when 3
  72.     self.contents.draw_text(200, 60, 60, 32, "逍遥派")
  73.   when 4
  74.     self.contents.draw_text(200, 60, 60, 32, "南少林")
  75.   when 5
  76.     self.contents.draw_text(200, 60, 60, 32, "华山派")
  77.   when 6
  78.     self.contents.draw_text(200, 60, 60, 32, "三清寺")
  79.   when 7
  80.     self.contents.draw_text(200, 60, 60, 32, "青城派")
  81.   end
  82.      
  83.    
  84.   end  
  85. end  
  86. #--------------------------------------------------------------------------  
  87. # Update of Cursor  #光标调整
  88. #--------------------------------------------------------------------------  
  89. def update_cursor_rect  
  90. #--------------------------------------------------------------------------  
  91. # 背景界面的左右移动 如果想斜面移动就添加一个oy的方法
  92. #--------------------------------------------------------------------------  
  93. # @title7_bak.ox = @title7_bak.ox+2
  94. #======================================================#
  95.   
  96.    if @index < 0  
  97.      self.cursor_rect.empty  
  98.    else  
  99.     # self.cursor_rect.set(0, @index * 116, self.width - 32, 96)  
  100.     self.cursor_rect.set(0, @index * 130, self.width - 220, 130) #200 130
  101.    end  
  102. end  
  103. end

  104. #==============================================================================
  105. # ■ Window_Steps
  106. #------------------------------------------------------------------------------
  107. #  菜单画面显示步数的窗口。
  108. #==============================================================================

  109. class Window_Steps #< Window_Base
  110.   #--------------------------------------------------------------------------
  111.   # ● 初始化对像
  112.   #--------------------------------------------------------------------------
  113.   def initialize
  114.     #super(20, 80, 620, 160)
  115.     super(0, 0, 1024, 786)
  116.     self.contents = Bitmap.new(width - 32, height - 32)
  117.     #self.contents = Bitmap.new(640 - 32, 320 - 32)
  118.     refresh
  119.   end
  120.   #--------------------------------------------------------------------------
  121.   # ● 刷新
  122.   #--------------------------------------------------------------------------
  123.   def refresh
  124.     self.contents.clear
  125.     self.contents.font.color = system_color
  126.   end
  127. end
  128. #==============================================================================
  129. # ■ Window_Gold
  130. #------------------------------------------------------------------------------
  131. #  显示金钱的窗口。
  132. #==============================================================================

  133. class Window_Gold < Window_Base
  134.   #--------------------------------------------------------------------------
  135.   # ● 初始化窗口
  136.   #--------------------------------------------------------------------------
  137.   def initialize
  138.     super(0, 0, 130, 70)#157
  139.     self.contents = Bitmap.new(width - 32, height - 32)
  140.     refresh
  141.   end
  142.   #--------------------------------------------------------------------------
  143.   # ● 刷新
  144.   #--------------------------------------------------------------------------
  145.   def refresh
  146.     self.contents.clear
  147.     cx = contents.text_size($data_system.words.gold).width
  148.      self.contents.font.color = Color.new(255,255,255, 255)
  149.     self.contents.font.color = normal_color
  150.     self.contents.font.color = system_color
  151.     self.contents.draw_text(0, 0, 100, 32,$game_party.gold.to_s + " " +$data_system.words.gold, 2)  
  152.     self.contents.draw_text(0, 0, 100, 32, $data_system.words.gold, 2)  
  153.   end
  154. end




  155. #==============================================================================
  156. # ■ 全新的排版显示
  157. #==============================================================================
  158. #■ 武技值
  159. class Window_HunLi < Window_Base
  160.   #--------------------------------------------------------------------------
  161.   # ● 初始化窗口
  162.   #--------------------------------------------------------------------------
  163.   def initialize
  164.     super(0, 0, 120, 60)
  165.     self.contents = Bitmap.new(width - 32, height - 32)
  166.     refresh
  167.   end
  168.   #--------------------------------------------------------------------------
  169.   # ● 刷新
  170.   #--------------------------------------------------------------------------
  171.   def refresh
  172.     self.contents.clear
  173.     self.contents.font.color = normal_color
  174.     self.contents.font.color = system_color
  175.     self.contents.font.color = Color.new(255, 255, 255, 255)
  176.        self.contents.font.name = "迷你简行楷"  
  177.    self.contents.font.size = 20
  178.     self.contents.draw_text(0,0, 80, 30, "武技:")
  179.     self.contents.draw_text(60,0, 80, 30, "#{$game_variables[100]}%")
  180.   end
  181. end
  182. #■ 精气值
  183. class Window_JiQi < Window_Base
  184.   #--------------------------------------------------------------------------
  185.   # ● 初始化窗口
  186.   #--------------------------------------------------------------------------
  187.   def initialize
  188.     super(0, 0, 120, 60)
  189.     self.contents = Bitmap.new(width - 32, height - 32)
  190.     refresh
  191.   end
  192.   #--------------------------------------------------------------------------
  193.   # ● 刷新
  194.   #--------------------------------------------------------------------------
  195.   def refresh
  196.     self.contents.clear
  197.     self.contents.font.color = normal_color
  198.     self.contents.font.color = system_color
  199.     self.contents.font.color = Color.new(255, 255, 255, 255)
  200.        self.contents.font.name = "迷你简行楷"  
  201.    self.contents.font.size = 20
  202.     self.contents.draw_text(0,0, 80, 30, "魔法:")
  203.     self.contents.draw_text(60,0, 80, 30, "#{$game_variables[101]}%")
  204.   end
  205. end
  206. #■ 刀剑精通
  207. class Window_DaoJian < Window_Base
  208.   #--------------------------------------------------------------------------
  209.   # ● 初始化窗口
  210.   #--------------------------------------------------------------------------
  211.   def initialize
  212.     super(0, 0, 120, 60)
  213.     self.contents = Bitmap.new(width - 32, height - 32)
  214.     refresh
  215.   end
  216.   #--------------------------------------------------------------------------
  217.   # ● 刷新
  218.   #--------------------------------------------------------------------------
  219.   def refresh
  220.     self.contents.clear
  221.     self.contents.font.color = normal_color
  222.     self.contents.font.color = system_color
  223.     self.contents.font.color = Color.new(255, 255, 255, 255)
  224.        self.contents.font.name = "迷你简行楷"  
  225.    self.contents.font.size = 20
  226.     self.contents.draw_text(0,0, 80, 30, "魔武:")
  227.     self.contents.draw_text(60,0, 80, 30, "#{$game_variables[102]}%")
  228.     #==设定拳刀剑通不得超过300
  229.     if $game_variables[17]>=300
  230.        $game_variables[17]=300
  231.     end

  232.     end
  233.   end
  234. #■ 拳掌精通
  235. class Window_QuaznZhang < Window_Base
  236.   #--------------------------------------------------------------------------
  237.   # ● 初始化窗口
  238.   #--------------------------------------------------------------------------
  239.   def initialize
  240.     super(0, 0, 120, 60)
  241.     self.contents = Bitmap.new(width - 32, height - 32)
  242.     refresh
  243.   end
  244.   #--------------------------------------------------------------------------
  245.   # ● 刷新
  246.   #--------------------------------------------------------------------------
  247.   def refresh
  248.     self.contents.clear
  249.     self.contents.font.color = normal_color
  250.     self.contents.font.color = system_color
  251.     self.contents.font.color = Color.new(255, 255, 255, 255)
  252.        self.contents.font.name = "迷你简行楷"  
  253.    self.contents.font.size = 20
  254.     self.contents.draw_text(0,0, 80, 30, "罪恶:")
  255.     self.contents.draw_text(60,0, 80, 30, "#{$game_variables[103]}%")
  256.     #==设定拳掌精通不得超过300
  257.     if $game_variables[18]>=300
  258.        $game_variables[18]=300
  259.     end
  260.     end
  261.   end

  262. #■ 善良精通
  263. class Window_DaoShu < Window_Base
  264.   #--------------------------------------------------------------------------
  265.   # ● 初始化窗口
  266.   #--------------------------------------------------------------------------
  267.   def initialize
  268.     super(0, 0, 120, 60)
  269.     self.contents = Bitmap.new(width - 32, height - 32)
  270.     refresh
  271.   end
  272.   #--------------------------------------------------------------------------
  273.   # ● 刷新
  274.   #--------------------------------------------------------------------------
  275.   def refresh
  276.     self.contents.clear
  277.     self.contents.font.color = normal_color
  278.     self.contents.font.color = system_color
  279.     self.contents.font.color = Color.new(255, 255, 255, 255)
  280.        self.contents.font.name = "迷你简行楷"  
  281.    self.contents.font.size = 20
  282.     self.contents.draw_text(0,0, 80, 30, "善良:")
  283.     self.contents.draw_text(60,0, 80, 30, "#{$game_variables[104]}%")
  284.     #==设定刀剑精通不得超过350
  285.     if $game_variables[19]>=350
  286.        $game_variables[19]=350
  287.     end
  288.     end
  289.   end
  290. #■ 称号
  291. class Window_ChenHao < Window_Base
  292.   #--------------------------------------------------------------------------
  293.   # ● 初始化窗口
  294.   #--------------------------------------------------------------------------
  295.   def initialize
  296.     super(0, 0, 560, 650)
  297.     self.contents = Bitmap.new(width - 32, height - 32)
  298.     refresh
  299.   end
  300.   #--------------------------------------------------------------------------
  301.   # ● 刷新
  302.   #--------------------------------------------------------------------------
  303.   def refresh
  304.     self.contents.clear
  305.     self.contents.font.color = normal_color
  306.     self.contents.font.color = system_color  
  307.     self.contents.font.color = Color.new(255, 255, 255, 255)
  308.    
  309.    ##########################################
  310.    self.contents.font.name = "迷你简行楷"  
  311.    self.contents.font.size = 20
  312.     self.contents.font.color = Color.new(255, 000, 000, 255)   

  313.     self.contents.draw_text(400, -5, 120, 32, "次元传说-君临天下")
  314.     self.contents.font.color = Color.new(255, 017, 153, 255)   
  315.     self.contents.draw_text(410, 95, 60, 32, "时辰")
  316.   # 以下[]内为游戏内变量id,用来在游戏进行中增减时间。
  317.     clocktime = $game_variables[97] * 10 # 可在游戏中增减时辰数
  318.     daytime = $game_variables[98] * 120 # 可在游戏中增减天数
  319.     monthtime = $game_variables[99] * 3600 # 可在游戏中增减月数
  320.     yeartime = $game_variables[100] * 43200 # 可在游戏中增减年数
  321.     @total_sec =Graphics.frame_count / Graphics.frame_rate
  322.     time = clocktime + daytime + monthtime + yeartime + @total_sec
  323.     if time >= 2592000
  324.       time -= 2592000
  325.     elsif time <= 0
  326.       time = 1  
  327.     end
  328.     cclock = time / 10 % 12 # 10帧为一个时辰,每天十二个时辰
  329.     cday = time / 120 % 30 # 10 * 12 = 120 帧为一天,每月三十天
  330.     cmonth = time / 3600 % 12 # 10 * 12 * 30 = 3600帧为一个月,每年十二个月
  331.     cyearearth = time / 43200 % 12 # 10 * 12 * 30 *12 = 43200 帧为一年,12年为一地支
  332.     cyearsky = time / 43200 % 10 # 10 * 12 * 30 *12 = 43200 帧为一年,10年为一天干
  333.    case cclock
  334.     when 0
  335.       clock = "子"
  336.     when 1   
  337.       clock = "丑"
  338.     when 2
  339.       clock = "寅"
  340.     when 3
  341.       clock = "卯"
  342.     when 4
  343.       clock = "辰"
  344.     when 5
  345.       clock = "巳"
  346.     when 6
  347.       clock = "午"
  348.     when 7
  349.       clock = "未"
  350.     when 8
  351.       clock = "申"
  352.     when 9
  353.       clock = "酉"
  354.     when 10
  355.       clock = "戌"
  356.     when 11
  357.       clock = "亥"
  358.     end
  359.    
  360.     case cday
  361.     when 0
  362.       day = "初壹"
  363.     when  1
  364.       day = "初贰"
  365.     when  2
  366.       day = "初叁"
  367.     when  3
  368.       day = "初肆"
  369.     when  4
  370.       day = "初伍"
  371.     when  5
  372.       day = "初陆"
  373.     when  6
  374.       day = "初柒"
  375.     when  7
  376.       day = "初捌"
  377.     when  8
  378.       day = "初玖"
  379.     when  9
  380.       day = "初拾"
  381.     when 10
  382.       day = "拾壹"
  383.     when 11
  384.       day = "拾贰"
  385.     when 12
  386.       day = "拾叁"
  387.     when 13
  388.       day = "拾肆"
  389.     when 14
  390.       day = "拾伍"
  391.     when 15
  392.       day = "拾陆"
  393.     when 16
  394.       day = "拾柒"
  395.     when 17
  396.       day = "拾捌"
  397.     when 18
  398.       day = "拾玖"
  399.     when 19
  400.       day = "贰拾"
  401.     when 20
  402.       day = "廿壹"
  403.     when 21
  404.       day = "廿贰"
  405.     when 22
  406.       day = "廿叁"
  407.     when 23
  408.       day = "廿肆"
  409.     when 24
  410.       day = "廿伍"
  411.     when 25
  412.       day = "廿陆"
  413.     when 26
  414.       day = "廿柒"
  415.     when 27
  416.       day = "廿捌"
  417.     when 28
  418.       day = "廿玖"
  419.     when 29
  420.       day = "叁拾"
  421.     end
  422.    
  423.     case cmonth
  424.     when 0
  425.       month = "正"
  426.     when  1
  427.       month = "贰"
  428.     when  2
  429.       month = "叁"
  430.     when  3
  431.       month = "肆"
  432.     when  4
  433.       month = "伍"
  434.     when  5
  435.       month = "陆"
  436.     when  6
  437.       month = "柒"
  438.     when  7
  439.       month = "捌"
  440.     when  8
  441.       month = "玖"
  442.     when  9
  443.       month == "拾"
  444.     when  10
  445.       month = "拾壹"
  446.     when  11
  447.       month = "腊"
  448.     end
  449.    
  450.     if cmonth <= 2
  451.       season = "春季"
  452.     else
  453.       if cmonth <= 5
  454.         season = "夏季"
  455.       else
  456.         if cmonth <= 8
  457.           season = "秋季"
  458.         else
  459.           season = "冬季"
  460.         end
  461.       end
  462.     end

  463.     case cyearearth
  464.     when 0
  465.       yearearth = "子"
  466.     when 1
  467.       yearearth = "丑"
  468.     when 2
  469.       yearearth = "寅"
  470.     when 3
  471.       yearearth = "卯"
  472.     when 4
  473.       yearearth = "辰"
  474.     when 5
  475.       yearearth = "巳"
  476.     when 6
  477.       yearearth = "午"
  478.     when 7
  479.       yearearth = "未"
  480.     when 8
  481.       yearearth = "申"
  482.     when 9
  483.       yearearth = "酉"
  484.     when 10
  485.       yearearth = "戌"
  486.     when 11
  487.       yearearth = "亥"
  488.     end
  489.    
  490.     case cyearsky
  491.     when 0
  492.       yearsky = "甲"
  493.     when 1
  494.       yearsky = "乙"
  495.     when 2
  496.       yearsky = "丙"
  497.     when 3
  498.       yearsky = "丁"
  499.     when 4
  500.       yearsky = "戊"
  501.     when 5
  502.       yearsky = "己"
  503.     when 6
  504.       yearsky = "庚"
  505.     when 7
  506.       yearsky = "辛"
  507.     when 8
  508.       yearsky = "壬"
  509.     when 9
  510.       yearsky = "癸"
  511.     end
  512.    
  513.    
  514.    
  515.     texta = sprintf("%s%s年    %s",yearsky,yearearth,season)
  516.     self.contents.font.color = normal_color
  517.     self.contents.draw_text(400, 35, 120, 32, texta, 2)
  518.     textb = sprintf("%s月%s",month,day)
  519.     self.contents.font.color = normal_color
  520.     self.contents.draw_text(400, 65, 120, 32, textb, 2)
  521.     textc = sprintf("%s时",clock)
  522.     self.contents.font.color = normal_color
  523.     self.contents.draw_text(400, 95, 120, 32, textc, 2)

  524.    @total_sec = Graphics.frame_count / Graphics.frame_rate
  525.    hour = @total_sec / 10080
  526.    hour += 0+$game_variables[40]
  527.    min =  @total_sec /900 % 12
  528.    min+=1
  529.    sec = @total_sec/2%24
  530.    sec+=1
  531.    day = @total_sec /30 % 30
  532.    day+=1
  533.   
  534.   # text = sprintf("%02d:%02d:%02d", hour, min, sec)
  535.   text="次元"+hour.to_s+"年"+min.to_s+"月"+day.to_s+"日"
  536.    self.contents.font.color = normal_color
  537.    self.contents.draw_text(180, 15, 350, 32, text, 2)

  538.         self.contents.font.color = Color.new(000, 255, 153, 255)  
  539.     self.contents.draw_text(0,-5, 70, 30, "武道境界:")
  540.             self.contents.font.color = Color.new(255, 017, 153, 255)  
  541.    if $game_switches[400] == true# && @actor.id ==1 31变量开启
  542.     case $game_variables[401]    #400高级变量提升  31初级提升

  543.     when 0
  544.        self.contents.draw_text(62,-5, 70, 30, "凡人")
  545.     when 1
  546.        self.contents.draw_text(62,-5, 70, 30, "武徒一阶")
  547.     when 2
  548.        self.contents.draw_text(62,-5, 70, 30, "武徒二阶")
  549.     when 3
  550.        self.contents.draw_text(62,-5, 70, 30, "武徒三阶")
  551.     when 4
  552.        self.contents.draw_text(62,-5, 70, 30, "武徒四阶")
  553.     when 5
  554.        self.contents.draw_text(10,20, 70, 30, "武徒五阶")
  555.     when 6
  556.        self.contents.draw_text(10,20, 70, 30, "武徒六阶")
  557.     when 7
  558.        self.contents.draw_text(10,20, 70, 30, "武徒七阶")
  559.     when 8
  560.        self.contents.draw_text(10,20, 70, 30, "武徒八阶")
  561.     when 9
  562.        self.contents.draw_text(10,20, 70, 30, "武徒九阶")
  563.     when 10
  564.        self.contents.draw_text(10,20, 70, 30, "武徒十阶")
  565.     when 11
  566.        self.contents.draw_text(10,20, 70, 30, "玄者初期")
  567.     when 12
  568.        self.contents.draw_text(10,20, 70, 30, "玄者中期")
  569.     when 13
  570.        self.contents.draw_text(10,20, 70, 30, "玄者高期")
  571.     when 14
  572.        self.contents.draw_text(10,20, 70, 30, "玄者后期")
  573.     when 15
  574.        self.contents.draw_text(10,20, 70, 30, "玄者巅峰")
  575.     when 16
  576.        self.contents.draw_text(10,20, 70, 30, "玄士初期")
  577.     when 17
  578.        self.contents.draw_text(10,20, 70, 30, "玄士中期")
  579.     when 18
  580.        self.contents.draw_text(10,20, 70, 30, "玄士高期")
  581.     when 19
  582.        self.contents.draw_text(10,20, 70, 30, "玄士后期")
  583.     when 20
  584.        self.contents.draw_text(10,20, 70, 30, "玄士巅峰")     
  585.     when 21
  586.        self.contents.draw_text(10,20, 70, 30, "灵师一阶")
  587.     when 22
  588.        self.contents.draw_text(10,20, 70, 30, "灵师二阶")
  589.     when 23
  590.        self.contents.draw_text(10,20, 70, 30, "灵师三阶")
  591.     when 24
  592.        self.contents.draw_text(10,20, 70, 30, "灵师四阶")
  593.     when 25
  594.        self.contents.draw_text(10,20, 70, 30, "灵师五阶")
  595.     when 26
  596.        self.contents.draw_text(10,20, 70, 30, "灵师六阶")
  597.     when 27
  598.        self.contents.draw_text(10,20, 70, 30, "灵师七阶")
  599.     when 28
  600.        self.contents.draw_text(10,20, 70, 30, "灵师八阶")
  601.     when 29
  602.        self.contents.draw_text(10,20, 70, 30, "灵师九阶")
  603.     when 30
  604.        self.contents.draw_text(10,20, 70, 30, "灵师巅峰")
  605.     when 31
  606.        self.contents.draw_text(10,20, 70, 30, "武王初期")
  607.     when 32
  608.        self.contents.draw_text(10,20, 70, 30, "武王中期")
  609.     when 33
  610.        self.contents.draw_text(10,20, 70, 30, "武王后期")
  611.     when 34
  612.        self.contents.draw_text(10,20, 70, 30, "武王巅峰")      
  613.     when 35
  614.        self.contents.draw_text(10,20, 70, 30, "宗师初期")
  615.     when 36
  616.        self.contents.draw_text(10,20, 70, 30, "宗师中期")
  617.     when 37
  618.        self.contents.draw_text(10,20, 70, 30, "宗师后期")      
  619.     when 38
  620.        self.contents.draw_text(10,20, 70, 30, "宗师巅峰")
  621.     when 39
  622.        self.contents.draw_text(10,20, 70, 30, "地皇初期")
  623.     when 40
  624.        self.contents.draw_text(10,20, 70, 30, "地皇中期")
  625.     when 41
  626.        self.contents.draw_text(10,20, 70, 30, "地皇后期")  
  627.     when 42
  628.        self.contents.draw_text(10,20, 70, 30, "地皇巅峰")
  629.     when 43
  630.        self.contents.draw_text(10,20, 70, 30, "天尊初期")
  631.     when 44
  632.        self.contents.draw_text(10,20, 70, 30, "天尊中期")
  633.     when 45
  634.        self.contents.draw_text(10,20, 70, 30, "天尊后期")
  635.     when 46
  636.        self.contents.draw_text(10,20, 70, 30, "天尊巅峰")
  637.     when 47
  638.        self.contents.draw_text(10,20, 70, 30, "伪圣初期")   
  639.     when 48
  640.        self.contents.draw_text(10,20, 70, 30, "伪圣中期")  
  641.     when 49
  642.        self.contents.draw_text(10,20, 70, 30, "伪圣后期")
  643.     when 50
  644.        self.contents.draw_text(10,20, 70, 30, "伪圣巅峰")
  645.     when 51
  646.        self.contents.draw_text(10,20, 70, 30, "圣者初期")
  647.     when 52
  648.        self.contents.draw_text(10,20, 70, 30, "圣者中期")
  649.     when 53
  650.        self.contents.draw_text(10,20, 70, 30, "圣者后期")
  651.     when 54
  652.        self.contents.draw_text(10,20, 70, 30, "圣者巅峰")
  653.     when 55
  654.        self.contents.draw_text(10,20, 70, 30, "武圣初期")
  655.     when 56
  656.        self.contents.draw_text(10,20, 70, 30, "武圣中期")
  657.     when 57
  658.        self.contents.draw_text(10,20, 70, 30, "武圣后期")
  659.     when 58
  660.        self.contents.draw_text(10,20, 70, 30, "武圣巅峰")  
  661.     when 59
  662.        self.contents.draw_text(10,20, 70, 30, "圣灵初期")
  663.     when 60
  664.        self.contents.draw_text(10,20, 70, 30, "圣灵中期")
  665.     when 61
  666.        self.contents.draw_text(10,20, 70, 30, "圣灵后期")
  667.     when 62
  668.        self.contents.draw_text(10,20, 70, 30, "圣灵巅峰")
  669.     when 63
  670.        self.contents.draw_text(10,20, 70, 30, "圣徒")     
  671.     when 64
  672.        self.contents.draw_text(10,20, 70, 30, "圣宗")     
  673.     when 65
  674.        self.contents.draw_text(10,20, 70, 30, "圣尊")   
  675.     when 65
  676.        self.contents.draw_text(10,20, 70, 30, "圣王")
  677.     when 65
  678.        self.contents.draw_text(10,20, 70, 30, "圣帝")
  679.     when 65
  680.        self.contents.draw_text(10,20, 70, 30, "圣皇")  
  681.     when 65
  682.        self.contents.draw_text(10,20, 70, 30, "圣人")
  683.     when 65
  684.        self.contents.draw_text(10,20, 70, 30, "圣君")  
  685.     when 65
  686.        self.contents.draw_text(10,20, 70, 30, "圣主")         
  687.     when 65
  688.        self.contents.draw_text(10,20, 70, 30, "伪帝")
  689.     when 65
  690.        self.contents.draw_text(10,20, 70, 30, "玄帝")        
  691.     when 65
  692.        self.contents.draw_text(10,20, 70, 30, "玄皇")
  693.     when 65
  694.        self.contents.draw_text(10,20, 70, 30, "玄圣")
  695.     when 65
  696.        self.contents.draw_text(10,20, 70, 30, "玄仙")      
  697.     when 65
  698.        self.contents.draw_text(10,20, 70, 30, "玄主")        
  699.     when 65
  700.        self.contents.draw_text(10,20, 70, 30, "伪仙")        
  701.     when 65
  702.        self.contents.draw_text(10,20, 70, 30, "仙人")
  703.     when 65
  704.        self.contents.draw_text(10,20, 70, 30, "仙兵")
  705.     when 65
  706.        self.contents.draw_text(10,20, 70, 30, "仙将")
  707.     when 65
  708.        self.contents.draw_text(10,20, 70, 30, "仙帅")
  709.     when 65
  710.        self.contents.draw_text(10,20, 70, 30, "仙王")
  711.     when 65
  712.        self.contents.draw_text(10,20, 70, 30, "仙宗")
  713.     when 65
  714.        self.contents.draw_text(10,20, 70, 30, "仙帝")
  715.     when 65
  716.        self.contents.draw_text(10,20, 70, 30, "仙尊")
  717.     when 65
  718.        self.contents.draw_text(10,20, 70, 30, "仙皇")
  719.     when 65
  720.        self.contents.draw_text(10,20, 70, 30, "仙君")
  721.     when 65
  722.        self.contents.draw_text(10,20, 70, 30, "仙主")
  723.     when 65
  724.        self.contents.draw_text(10,20, 70, 30, "伪神")
  725.     when 65
  726.        self.contents.draw_text(10,20, 70, 30, "神灵")        
  727.     when 65
  728.        self.contents.draw_text(10,20, 70, 30, "神人")
  729.     when 65
  730.        self.contents.draw_text(10,20, 70, 30, "神徒")  
  731.     when 65
  732.        self.contents.draw_text(10,20, 70, 30, "神兵")         
  733.     when 65
  734.        self.contents.draw_text(10,20, 70, 30, "神将")  
  735.     when 65
  736.        self.contents.draw_text(10,20, 70, 30, "神使")
  737.     when 65
  738.        self.contents.draw_text(10,20, 70, 30, "神王")
  739.     when 65
  740.        self.contents.draw_text(10,20, 70, 30, "神君")
  741.     when 65
  742.        self.contents.draw_text(10,20, 70, 30, "神尊")      
  743.     when 65
  744.        self.contents.draw_text(10,20, 70, 30, "神皇")
  745.     when 65
  746.        self.contents.draw_text(10,20, 70, 30, "神帝")
  747.     when 65
  748.        self.contents.draw_text(10,20, 70, 30, "神主")        
  749.     when 65
  750.        self.contents.draw_text(10,20, 70, 30, "天阶")
  751.     when 65
  752.        self.contents.draw_text(10,20, 70, 30, "逆天阶")
  753.     when 65
  754.        self.contents.draw_text(10,20, 70, 30, "剑仙")
  755.     when 65
  756.        self.contents.draw_text(10,20, 70, 30, "剑神")
  757.     when 65
  758.        self.contents.draw_text(10,20, 70, 30, "武神")        
  759.     when 65
  760.        self.contents.draw_text(10,20, 70, 30, "主宰")
  761.     when 65
  762.        self.contents.draw_text(10,20, 70, 30, "真神")
  763.     when 65
  764.        self.contents.draw_text(10,20, 70, 30, "下位真神")
  765.     when 65
  766.        self.contents.draw_text(10,20, 70, 30, "中位真神")
  767.     when 65
  768.        self.contents.draw_text(10,20, 70, 30, "上位真神")
  769.      when 65
  770.        self.contents.draw_text(10,20, 70, 30, "伪主神")
  771.      when 65
  772.        self.contents.draw_text(10,20, 70, 30, "主神")  
  773.      when 65
  774.        self.contents.draw_text(10,20, 70, 30, "至高神")
  775.     when 65
  776.        self.contents.draw_text(10,20, 70, 30, "创世神")
  777.     when 65
  778.        self.contents.draw_text(10,20, 70, 30, "掌控者")
  779.     when 65
  780.        self.contents.draw_text(10,20, 70, 30, "式神")
  781.     when 65
  782.        self.contents.draw_text(10,20, 70, 30, "始神")      
  783.     when 65
  784.        self.contents.draw_text(10,20, 70, 30, "界主")
  785.     when 65
  786.        self.contents.draw_text(10,20, 70, 30, "域主")
  787.     when 65
  788.        self.contents.draw_text(10,20, 70, 30, "天主")
  789.     when 65
  790.        self.contents.draw_text(10,20, 70, 30, "天道")
  791.     when 65
  792.        self.contents.draw_text(10,20, 70, 30, "万恶の主")  
  793.     when 65
  794.        self.contents.draw_text(10,20, 70, 30, "仙界の主")      
  795.     when 65
  796.        self.contents.draw_text(10,20, 70, 30, "星际の主")      
  797.     when 65
  798.        self.contents.draw_text(10,20, 70, 30, "神界の主")
  799.     when 65
  800.        self.contents.draw_text(10,20, 70, 30, "魔界の主")        
  801.     when 65
  802.        self.contents.draw_text(10,20, 70, 30, "神魔の主")
  803.     when 65
  804.        self.contents.draw_text(10,20, 70, 30, "生命の主")  
  805.     when 65
  806.        self.contents.draw_text(10,20, 70, 30, "万物の主")
  807.     when 65
  808.        self.contents.draw_text(10,20, 70, 30, "宇宙の主")        
  809.     when 65
  810.        self.contents.draw_text(10,20, 70, 30, "时空の主")
  811.     when 65
  812.        self.contents.draw_text(10,20, 70, 30, "命运の主")
  813.     when 65
  814.        self.contents.draw_text(10,20, 70, 30, "永恒の主")
  815.     when 65
  816.        self.contents.draw_text(10,20, 70, 30, "九五至尊")
  817.       
  818.       
  819.       
  820.       
  821.       
  822.      end   
  823.     end
  824.   end  
  825.   end   
  826. #■ 刀剑灵力
  827. class Window_DaoLin < Window_Base
  828.   #--------------------------------------------------------------------------
  829.   # ● 初始化窗口
  830.   #--------------------------------------------------------------------------
  831.   def initialize
  832.     super(0, 0, 132, 75)
  833.     self.contents = Bitmap.new(width - 32, height - 32)
  834.     refresh
  835.   end
  836.   #--------------------------------------------------------------------------
  837.   # ● 刷新
  838.   #--------------------------------------------------------------------------
  839.   def refresh
  840.     self.contents.clear
  841.     self.contents.font.color = normal_color
  842.     self.contents.font.color = system_color
  843.     self.contents.font.color = Color.new(255, 255, 255, 255)
  844.        self.contents.font.name = "迷你简行楷"  
  845.    self.contents.font.size = 20
  846.     self.contents.draw_text(0, 0, 70, 30, "次元碎片:")
  847.     self.contents.draw_text(40, 20, 70, 30, "#{$game_variables[105]}片")
  848.   end
  849. end
  850. #■ 拳掌灵力
  851. class Window_QaoLin < Window_Base
  852.   #--------------------------------------------------------------------------
  853.   # ● 初始化窗口
  854.   #--------------------------------------------------------------------------
  855.   def initialize
  856.     super(0, 0, 150, 80)
  857.     self.contents = Bitmap.new(width - 32, height - 32)
  858.     refresh
  859.   end
  860.   #--------------------------------------------------------------------------
  861.   # ● 刷新
  862.   #--------------------------------------------------------------------------
  863.   def refresh
  864.     self.contents.clear
  865.     self.contents.font.color = normal_color
  866.     self.contents.font.color = system_color
  867.     self.contents.font.color = Color.new(255, 255, 255, 255)
  868.        self.contents.font.name = "迷你简行楷"  
  869.    self.contents.font.size = 20
  870.     self.contents.draw_text(0, 0, 70, 30, "宇宙碎片:")
  871.     self.contents.draw_text(40, 20, 70, 30, "#{$game_variables[106]}片")
  872.   end
  873. end
  874. #■ 道术灵力
  875. class Window_QaoSin < Window_Base
  876.   #--------------------------------------------------------------------------
  877.   # ● 初始化窗口
  878.   #--------------------------------------------------------------------------
  879.   def initialize
  880.     super(0, 0, 133, 75)
  881.     self.contents = Bitmap.new(width - 32, height - 32)
  882.     refresh
  883.   end
  884.   #--------------------------------------------------------------------------
  885.   # ● 刷新
  886.   #--------------------------------------------------------------------------
  887.   def refresh
  888.     self.contents.clear
  889.     self.contents.font.color = normal_color
  890.     self.contents.font.color = system_color
  891.     self.contents.font.color = Color.new(255, 255, 255, 255)
  892.        self.contents.font.name = "迷你简行楷"  
  893.    self.contents.font.size = 20
  894.     self.contents.draw_text(0, 0, 70, 30, "空间碎片:")
  895.     self.contents.draw_text(40, 20, 70, 30, "#{$game_variables[107]}片")
  896.   end
  897. end
  898. #■ 熟练精通
  899. class Window_SuLian < Window_Base
  900.   #--------------------------------------------------------------------------
  901.   # ● 初始化窗口
  902.   #--------------------------------------------------------------------------
  903.   def initialize
  904.     super(0, 0, 133, 75)
  905.     self.contents = Bitmap.new(width - 32, height - 32)
  906.     refresh
  907.   end
  908.   #--------------------------------------------------------------------------
  909.   # ● 刷新
  910.   #--------------------------------------------------------------------------
  911.   def refresh
  912.     self.contents.clear
  913.     self.contents.font.color = normal_color
  914.     self.contents.font.color = system_color
  915.     self.contents.font.color = Color.new(255, 255, 255, 255)
  916.        self.contents.font.name = "迷你简行楷"  
  917.    self.contents.font.size = 20
  918.     self.contents.draw_text(0, 0, 70, 30, "神魔碎片:")
  919.     self.contents.draw_text(40, 20, 70, 30, "#{$game_variables[108]}片")
  920.   end
  921. end






  922. #==============================================================================
  923. # ■ Scene_Menu
  924. #------------------------------------------------------------------------------
  925. #  处理菜单画面的类。
  926. #==============================================================================

  927. class Scene_Menu
  928.   #--------------------------------------------------------------------------
  929.   # ● 初始化对像
  930.   #     menu_index : 命令光标的初期位置
  931.   #--------------------------------------------------------------------------
  932.   def initialize(menu_index = 0)

  933.     @menu_index = menu_index

  934.   end
  935.   #--------------------------------------------------------------------------
  936.   # ● 主处理
  937.   #--------------------------------------------------------------------------
  938.   def main
  939.     # 生成命令窗口

  940.     s1  =  "江湖用品"#$data_system.words.item
  941.     s2  =  "技能神通"#$data_system.words.skill
  942.     s3  =  "协同整备"#$data_system.words.equip
  943.     s4  =  "查看状态"
  944.     s5  =  "九世轮回"
  945.     s6  =  "至尊仓库"
  946.     s7  =  "江湖情缘"
  947.     s8  =  "任务大全"
  948.     s9  =  "怪物图鉴"
  949.     s10 =  "赏金猎人"
  950.     s11 =  "游戏设置"
  951.     s12 =  "第二菜单"
  952.     @command_window = Window_Command.new(130, [s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11,s12])
  953.     @command_window.index = @menu_index
  954.     # 同伴人数为 0 的情况下
  955.     if $game_party.actors.size == 0
  956.       # 物品、特技、装备、状态无效化
  957.       @command_window.disable_item(0)
  958.       @command_window.disable_item(1)
  959.       @command_window.disable_item(2)
  960.       @command_window.disable_item(3)
  961.     end
  962.     # 禁止存档的情况下
  963.     if $game_system.save_disabled
  964.       # 存档无效
  965.       @command_window.disable_item(4)
  966.     end  

  967.    
  968.    
  969. #==============================================================================
  970. # ■ 武技值的窗口
  971. #==============================================================================
  972.     @hunli_window = Window_HunLi.new
  973.     @hunli_window.x = 125
  974.     @hunli_window.y = 760
  975. #==============================================================================
  976. # ■ 魔法值的窗口
  977. #==============================================================================
  978.     @jingqi_window = Window_JiQi.new
  979.     @jingqi_window.x = 240
  980.     @jingqi_window.y = 760
  981. #==============================================================================
  982. # ■ 魔武值的窗口
  983. #==============================================================================
  984.     @daojian_window = Window_DaoJian.new
  985.     @daojian_window.x = 350
  986.     @daojian_window.y = 760
  987. #==============================================================================
  988. # ■ 罪恶值的窗口
  989. #==============================================================================
  990.     @quanzhang_window = Window_QuaznZhang.new
  991.     @quanzhang_window.x = 465
  992.     @quanzhang_window.y = 760
  993. #==============================================================================
  994. # ■ 善良值的窗口
  995. #==============================================================================
  996.     @daoshu_window = Window_DaoShu.new
  997.     @daoshu_window.x = 560
  998.     @daoshu_window.y = 760
  999. #==============================================================================
  1000. # ■ 称号的窗口
  1001. #==============================================================================
  1002.     @chenhao_window = Window_ChenHao.new
  1003.     @chenhao_window.x = 110
  1004.     @chenhao_window.y = 0
  1005. #==============================================================================
  1006. # ■ 次元碎片的窗口
  1007. #==============================================================================
  1008.     @daolin_window = Window_DaoLin.new
  1009.     @daolin_window.x = 560
  1010.     @daolin_window.y = 550
  1011.       
  1012.    
  1013. #==============================================================================
  1014. # ■ 宇宙碎片的窗口
  1015. #==============================================================================
  1016.     @qaolin_window = Window_QaoLin.new
  1017.     @qaolin_window.x = 560
  1018.     @qaolin_window.y = 480
  1019. #==============================================================================
  1020. # ■ 空间碎片的窗口
  1021. #==============================================================================
  1022.     @qaosin_window = Window_QaoSin.new
  1023.     @qaosin_window.x = 560
  1024.     @qaosin_window.y = 620
  1025. #==============================================================================
  1026. # ■ 神魔碎片的窗口
  1027. #==============================================================================
  1028.     @sulian_window = Window_SuLian.new
  1029.     @sulian_window.x = 560
  1030.     @sulian_window.y = 690
  1031.    
  1032.     # 生成步数窗口
  1033.     @steps_window = Window_Steps.new
  1034.     @steps_window.x = 0
  1035.     @steps_window.y = 320
  1036.    
  1037.     # 生成游戏时间窗口
  1038.     @playtime_window = Window_PlayTime.new
  1039.     @playtime_window.x = -20
  1040.     @playtime_window.y = 750   

  1041.     # 生成任务窗口
  1042.     @steps_window = Window_Go.new
  1043.     @steps_window.x = 0
  1044.     @steps_window.y = 640   
  1045.     # 生成金钱窗口
  1046.     @gold_window = Window_Gold.new
  1047.     @gold_window.x = 560
  1048.     @gold_window.y = 410
  1049.     # 生成状态窗口
  1050.     @status_window = Window_MenuStatus.new
  1051.     @status_window.x = 670#左右移动修改
  1052.     @status_window.y = 0   #上下移动修改
  1053.     # 执行过渡
  1054.     Graphics.transition
  1055.     # 主循环
  1056.     loop do
  1057.       # 刷新游戏画面
  1058.       Graphics.update
  1059.       # 刷新输入信息
  1060.       Input.update
  1061.       # 刷新画面
  1062.       update
  1063.       # 如果切换画面就中断循环
  1064.       if $scene != self
  1065.         break
  1066.       end
  1067.     end
  1068.     # 准备过渡
  1069.     Graphics.freeze
  1070.     # 释放窗口
  1071.     @playtime_window.dispose#时间窗口释放
  1072.     @command_window.dispose
  1073.     @gold_window.dispose
  1074.     @status_window.dispose
  1075.     @hunli_window.dispose
  1076.     @jingqi_window.dispose
  1077.    
  1078.    
  1079.     @daojian_window.dispose
  1080.     @quanzhang_window.dispose
  1081.     @daoshu_window.dispose
  1082.     @chenhao_window.dispose
  1083.     @daolin_window.dispose
  1084.     @qaolin_window.dispose
  1085.     @qaosin_window.dispose
  1086.     @sulian_window.dispose
  1087.     @steps_window.dispose #任务窗口释放   
  1088.   end
  1089.   #--------------------------------------------------------------------------
  1090.   # ● 刷新画面
  1091.   #--------------------------------------------------------------------------
  1092.   def update
  1093.     # 刷新窗口
  1094.     @playtime_window.update#时间窗口刷新
  1095.     @command_window.update
  1096.     @gold_window.update
  1097.     @status_window.update
  1098.     @hunli_window.update

  1099.     @jingqi_window.update
  1100.     @daojian_window.update
  1101.    

  1102.    
  1103.     @quanzhang_window.update
  1104.     @daoshu_window.update
  1105.     @chenhao_window.update
  1106.     @daolin_window.update
  1107.     @qaolin_window.update
  1108.     @qaosin_window.update
  1109.     @sulian_window.update
  1110.     @steps_window.update #任务窗口刷新

  1111.    
  1112.     # 命令窗口被激活的情况下: 调用 update_command
  1113.     if @command_window.active
  1114.       update_command
  1115.       return
  1116.     end
  1117.     # 状态窗口被激活的情况下: 调用 update_status
  1118.     if @status_window.active
  1119.       update_status
  1120.       return
  1121.     end
  1122.   end
  1123.   #--------------------------------------------------------------------------
  1124.   # ● 刷新画面 (命令窗口被激活的情况下)
  1125.   #--------------------------------------------------------------------------
  1126.   def update_command
  1127.     # 按下 B 键的情况下
  1128.     if Input.trigger?(Input::B)
  1129.       # 演奏取消 SE
  1130.       $game_system.se_play($data_system.cancel_se)
  1131.       # 切换的地图画面
  1132.       $scene = Scene_Map.new
  1133.       return
  1134.     end
  1135.     # 按下 C 键的情况下
  1136.     if Input.trigger?(Input::C)
  1137.       # 同伴人数为 0、存档、游戏结束以外的场合
  1138.       if $game_party.actors.size == 0 and @command_window.index < 9
  1139.         # 演奏冻结 SE
  1140.         $game_system.se_play($data_system.buzzer_se)
  1141.         return
  1142.       end
  1143.       # 命令窗口的光标位置分支
  1144.       case @command_window.index
  1145.       when 0  # 物品
  1146.         # 演奏确定 SE
  1147.         $game_system.se_play($data_system.decision_se)
  1148.         # 切换到物品画面
  1149.         $scene = Scene_Item.new
  1150.       when 1  # 特技
  1151.         # 演奏确定 SE
  1152.         $game_system.se_play($data_system.decision_se)
  1153.         # 激活状态窗口
  1154.         @command_window.active = false
  1155.         @status_window.active = true
  1156.         @status_window.index = 0
  1157.       when 2  # 装备
  1158.         # 演奏确定 SE
  1159.         $game_system.se_play($data_system.decision_se)
  1160.         # 激活状态窗口
  1161.         @command_window.active = false
  1162.         @status_window.active = true
  1163.         @status_window.index = 0
  1164.       when 3  # 状态
  1165.         # 演奏确定 SE
  1166.         $game_system.se_play($data_system.decision_se)
  1167.         # 激活状态窗口
  1168.         @command_window.active = false
  1169.         @status_window.active = true
  1170.         @status_window.index = 0
  1171.         when 4 #九世轮回
  1172.         # 演奏确定 SE
  1173.         $game_system.se_play($data_system.decision_se)
  1174.         # 切换到加点画面
  1175.         $scene = Scene_Map.new
  1176.         $scene = Scene_Lx.new
  1177.          #$scene = Scene_Lvup.new
  1178.         when 5 #至尊仓库
  1179.         # 演奏确定 SE
  1180.         $game_system.se_play($data_system.decision_se)
  1181.         # 切换到修炼界面
  1182.         $scene = Scene_Map.new
  1183.         $scene = Scene_Shop_Va.new(1) # 得更改
  1184.         when 6 #人物仓库
  1185.         # 演奏确定 SE
  1186.         $game_system.se_play($data_system.decision_se)
  1187.         # 切换到人物仓库界面
  1188.         $scene = Scene_Map.new
  1189.         $scene = Scene_Party_in.new#得更改
  1190.         when 7 #任务
  1191.         # 演奏确定 SE
  1192.         $game_system.se_play($data_system.decision_se)
  1193.         # 切换到修炼界面
  1194.         $scene = Scene_Map.new
  1195.         $scene = Scene_Task.new
  1196.         #得更改
  1197.         when 8 #怪物图鉴
  1198.         $game_system.se_play($data_system.decision_se)
  1199.         $scene = Scene_MonsterBook.new
  1200.         when 9 #赏金猎人
  1201.         # 演奏确定 SE
  1202.         $game_system.se_play($data_system.decision_se)
  1203.         # 切换到修炼界面
  1204.         $scene = Scene_Map.new
  1205.         $scene = SceneMission.new
  1206.         #$game_temp.common_event_id = 977#记得更改
  1207.       when 10  # 游戏设置
  1208.         # 禁止存档的情况下
  1209.         if $game_system.save_disabled
  1210.           # 演奏冻结 SE
  1211.           $game_system.se_play($data_system.buzzer_se)
  1212.           return
  1213.         end
  1214.         # 演奏确定 SE
  1215.         $game_system.se_play($data_system.decision_se)
  1216.         # 切换到存档画面
  1217.         $game_temp.common_event_id = 30#记得更改
  1218.       when 11  # 第二菜单
  1219.         # 演奏确定 SE
  1220.         $game_system.se_play($data_system.decision_se)
  1221.         # 切换到游戏结束画面
  1222.         $scene = Scene_End.new
  1223.       end
  1224.       return
  1225.     end
  1226.   end
  1227.   #--------------------------------------------------------------------------
  1228.   # ● 刷新画面 (状态窗口被激活的情况下)
  1229.   #--------------------------------------------------------------------------
  1230.   def update_status
  1231.     # 按下 B 键的情况下
  1232.     if Input.trigger?(Input::B)
  1233.       # 演奏取消 SE
  1234.       $game_system.se_play($data_system.cancel_se)
  1235.       # 激活命令窗口
  1236.       @command_window.active = true
  1237.       @status_window.active = false
  1238.       @status_window.index = -1
  1239.       return
  1240.     end
  1241.     # 按下 C 键的情况下
  1242.     if Input.trigger?(Input::C)
  1243.       # 命令窗口的光标位置分支
  1244.       case @command_window.index
  1245.       when 1  # 特技
  1246.         # 本角色的行动限制在 2 以上的情况下
  1247.         if $game_party.actors[@status_window.index].restriction >= 2
  1248.           # 演奏冻结 SE
  1249.           $game_system.se_play($data_system.buzzer_se)
  1250.           return
  1251.         end
  1252.         # 演奏确定 SE
  1253.         $game_system.se_play($data_system.decision_se)
  1254.         # 切换到特技画面
  1255.         $scene = Scene_Skill.new(@status_window.index)
  1256.       when 2  # 装备
  1257.         # 演奏确定 SE
  1258.         $game_system.se_play($data_system.decision_se)
  1259.         # 切换的装备画面
  1260.         $scene = Scene_Equip.new(@status_window.index)
  1261.       when 3  # 状态
  1262.         # 演奏确定 SE
  1263.         $game_system.se_play($data_system.decision_se)
  1264.         # 切换到状态画面
  1265.         $scene = Scene_Status.new(@status_window.index)
  1266.       end
  1267.       return
  1268.     end
  1269.   end
  1270. end
复制代码
360截图20170822150639506.jpg
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

梦石
0
星屑
19426
在线时间
3082 小时
注册时间
2013-1-11
回帖
1207
发表于 2017-8-22 15:47:43 | 显示全部楼层
本帖最后由 张咚咚 于 2017-8-22 15:52 编辑
j296196585 发表于 2017-8-22 15:03
目前游戏的主界面
整合了多方面大佬的资料 做出来的
可是中间太空了 我想增加内容不行 怎么回事 ...


你这个牵扯到太多的窗口

主要问题是
@honglian_window = Window_Base.new(100,100,100,100) 这里要实例化,下面的才可以执行,不然现在这个是空
@honglian_window.dispose  释放窗口
@honglian_window.update  刷新窗口

你是不是像写成这样

@qaolin_window = Window_HongLian.new
@qaolin_window.x = 160
@qaolin_window.y = 380   
@qaolin_window.update  刷新窗口
@qaolin_window.dispose  释放窗口

点评

谢谢 我想大概知道错误在哪里了  发表于 2017-8-22 16:09
我就复制黏贴 其他没感觉会出问题  发表于 2017-8-22 16:00

评分

参与人数 2星屑 +206 收起 理由
RyanBern + 200 认可答案
j296196585 + 6 没糖了

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部