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

Project1

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

[已经解决] 有关两个脚本的整合

 关闭 [复制链接]
跳转到指定楼层
1
乌有君  发表于 2007-12-16 20:36:46 回帖奖励 |倒序浏览 |阅读模式

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

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

x

  1. Playerdate_SWITCH = 1 # 当1号开关打开,本脚本才开始工作。
  2. Playerdate_magicdef =19
  3. Yellowkey_itemid=1
  4. Bluekey_itemid=2
  5. Redkey_itemid=3
  6. Greenkey_itemid=41

  7. #==============================================================================
  8. # ■ Window_PlayerDate
  9. #------------------------------------------------------------------------------
  10. #  显示玩家状态的窗口。
  11. #==============================================================================

  12. class Window_PlayerDate < Window_Base
  13.   #--------------------------------------------------------------------------
  14.   # ● 初始化窗口
  15.   #--------------------------------------------------------------------------
  16.   def initialize
  17.     super(0, 0, 160, 480)#395)#192,416
  18.     self.contents = Bitmap.new(width - 32, height - 32)
  19.     self.z =210
  20.     self.opacity=0
  21.     self.back_opacity =255
  22. #    self.contents_opacity = 255
  23.     self.visible = false
  24. #    self.contents.clear
  25.     refresh
  26. #    if $game_switches[XY_SWITCH]
  27. #      self.contents_opacity = 0
  28. #    else
  29. #      self.contents_opacity = 5
  30. #    end
  31.    
  32.   end
  33.   
  34.   
  35.   def refresh
  36.     if $game_switches[50]#进入屏幕右侧状态栏换到左侧
  37.       self.x=0
  38.     else#进入屏幕左侧状态栏换到右侧
  39.       self.x=480
  40.     end

  41.     self.contents.clear
  42.     x=25
  43.     x=30 if !$game_switches[27]
  44.     y=75
  45.     y=40 if !$game_switches[27]
  46.     #actor = $game_party.actors[1]
  47.     draw_actor_graphic($game_party.actors[0], 20, 35)

  48.     self.contents.font.color = system_color
  49.     self.contents.draw_text(40, 11, 25, 20, "第", 0) if $game_switches[36]
  50.     self.contents.draw_text(100, 11, 25, 20, "层", 0)if $game_switches[36]
  51.     self.contents.draw_text(0, 55, 50, 20, "等级", 0)
  52.    
  53.     if $game_switches[42]
  54.       if $game_variables[$game_variables[1]+81]!=0
  55.         bitmap = Bitmap.new("Graphics/Pictures/up.png")
  56.         self.contents.blt(40,55 , bitmap, Rect.new(0, 0, 20, 20))
  57.       end
  58.     end

  59.     self.contents.draw_text(4, 65+x, 40, 20, "生命", 0)
  60.     self.contents.draw_text(4, 65+x*2, 40, 20, "攻击", 0)
  61.     self.contents.draw_text(4, 65+x*3, 40, 20,"防御", 0)
  62.     self.contents.draw_text(4, 65+x*4, 40, 20, "内力", 0) if $game_switches[Playerdate_magicdef]
  63.     self.contents.draw_text(4, 65+x*5, 40, 20, "速度", 0) if $game_switches[27]

  64.     self.contents.draw_text(4, y+x*6, 40, 20, "经验", 0)
  65.     self.contents.draw_text(4, y+x*7, 40, 20, "金币", 0)

  66.     if $game_switches[26]
  67.       bitmap = RPG::Cache.icon("101-01")#黄钥匙)
  68.       self.contents.blt(10, 280, bitmap, Rect.new(0, 0, 32, 32))   
  69.       bitmap = RPG::Cache.icon("101-02")#蓝钥匙)
  70.       self.contents.blt(10, 307, bitmap, Rect.new(0, 0, 32, 32))
  71.       bitmap = RPG::Cache.icon("101-03")#红钥匙)
  72.       self.contents.blt(10, 334, bitmap, Rect.new(0, 0, 32, 32))
  73.       bitmap = RPG::Cache.icon("101-04") if $game_switches[43]#绿钥匙)
  74.       self.contents.blt(10, 361, bitmap, Rect.new(0, 0, 32, 32)) if $game_switches[43]

  75.     else
  76.       self.contents.font.color = text_color(6)   
  77.       self.contents.draw_text(8, 285, 50, 20, "黄钥匙", 0)
  78.       self.contents.font.color = text_color(4)   
  79.       self.contents.draw_text(8, 313, 50, 20, "蓝钥匙", 0)
  80.       self.contents.font.color = text_color(2)   
  81.       self.contents.draw_text(8, 341, 50, 20, "红钥匙", 0)
  82.       self.contents.font.color = text_color(3)   
  83.       self.contents.draw_text(8, 369, 50, 20, "绿钥匙", 0) if $game_switches[43]
  84.     end
  85.    
  86.     @xgraphic=$game_party.actors[0].character_name
  87.     @xfloor=$game_variables[2]
  88.     @xlevel=$game_actors[$game_variables[1]+1].level
  89.     @xlevelup=$game_variables[$game_variables[1]+81] if $game_switches[42]
  90.     @xlife=$game_actors[$game_variables[1]+1].hp
  91.     @xattact=$game_actors[$game_variables[1]+1].str
  92.     @xdefence=$game_actors[$game_variables[1]+1].dex
  93.     @xmagicdef=$game_actors[$game_variables[1]+1].int if $game_switches[Playerdate_magicdef]
  94.     @xspeed=$game_actors[$game_variables[1]+1].agi if $game_switches[27]
  95.     @xexp= $game_actors[$game_variables[1]+1].exp
  96.     @xgold=$game_party.gold
  97.     @xyellowkey=$game_party.item_number(Yellowkey_itemid)
  98.     @xbluekey=$game_party.item_number(Bluekey_itemid)
  99.     @xredkey=$game_party.item_number(Redkey_itemid)
  100.     @xgreenkey=$game_party.item_number(Greenkey_itemid) if $game_switches[43]
  101.     @xpoison=$game_switches[13]
  102.     @xpoor=$game_switches[15]
  103.     @xcurse=$game_switches[16]
  104.     @xslow=$game_switches[12]
  105.     @xchange=$game_switches[50]
  106.    
  107.    
  108.     self.contents.font.color = normal_color
  109.     self.contents.draw_text(32, 0, 60, 45, @xfloor.to_s, 2) if $game_switches[36]
  110.     self.contents.draw_text(40, 0, 80, 45, @xfloor.to_s, 2) if !$game_switches[36]
  111.    
  112.     self.contents.draw_text(50, 50, 65, 30, @xlevel.to_s, 2)
  113.     self.contents.draw_text(43, 65+x, 72, 20,@xlife .to_s, 2)
  114.     self.contents.draw_text(50, 65+x*2, 65, 20,@xattact .to_s, 2)
  115.     self.contents.draw_text(50, 65+x*3, 65, 20,@xdefence .to_s, 2)
  116.     self.contents.draw_text(50, 65+x*4, 65, 20,@xmagicdef .to_s, 2) if $game_switches[Playerdate_magicdef]
  117.     self.contents.draw_text(50, 65+x*5, 65, 20,@xspeed .to_s, 2) if $game_switches[27]

  118.     self.contents.draw_text(50, y+x*6, 65, 20,@xexp.to_s, 2)
  119.     self.contents.draw_text(50, y+x*7, 65, 20, @xgold.to_s, 2)
  120.    
  121.     self.contents.font.color = text_color(6)
  122.     self.contents.draw_text(75, 285, 25, 20, @xyellowkey.to_s, 2)
  123.     self.contents.font.color = text_color(4)
  124.     self.contents.draw_text(75, 313, 25, 20, @xbluekey .to_s, 2)
  125.     self.contents.font.color = text_color(2)
  126.     self.contents.draw_text(75, 341, 25, 20, @xredkey.to_s, 2)
  127.     self.contents.font.color = text_color(3)
  128.     self.contents.draw_text(75, 369, 25, 20, @xgreenkey.to_s, 2) if $game_switches[43]
  129.    
  130.     self.contents.font.color = text_color(3)
  131.     self.contents.draw_text(8, 390, 30, 30, "毒".to_s, 0) if $game_switches[13]
  132.     self.contents.font.color = text_color(5)
  133.     self.contents.draw_text(36, 390, 30, 30, "衰".to_s, 0) if $game_switches[15]
  134.     self.contents.font.color = text_color(4)
  135.     self.contents.draw_text(64, 390, 30, 30, "咒".to_s, 0) if $game_switches[16]
  136.     self.contents.font.color = text_color(1)
  137.     self.contents.draw_text(92, 390, 30, 30, "慢".to_s, 0) if $game_switches[12]
  138.    
  139.    
  140.    
  141.   end
  142.   
  143.   def judge#用于判断是否数据变更,节约内存
  144.     return true if @xgraphic!=$game_party.actors[0].character_name
  145.     return true if @xfloor!=$game_variables[2]
  146.     return true if @xlevel!=$game_actors[$game_variables[1]+1].level
  147.     return true if @xlevelup!=$game_variables[$game_variables[1]+81] if $game_switches[42]
  148.     return true if @xlife!=$game_actors[$game_variables[1]+1].hp
  149.     return true if @xattact!=$game_actors[$game_variables[1]+1].str
  150.     return true if @xdefence!=$game_actors[$game_variables[1]+1].dex
  151.     return true if @xmagicdef!=$game_actors[$game_variables[1]+1].int if $game_switches[Playerdate_magicdef]
  152.     return true if @xspeed!=$game_actors[$game_variables[1]+1].agi if $game_switches[27]
  153.     return true if @xexp!= $game_actors[$game_variables[1]+1].exp
  154.     return true if @xgold!=$game_party.gold
  155.     return true if @xyellowkey!=$game_party.item_number(Yellowkey_itemid)
  156.     return true if @xbluekey!=$game_party.item_number(Bluekey_itemid)
  157.     return true if @xredkey!=$game_party.item_number(Redkey_itemid)
  158.     return true if @xgreenkey!=$game_party.item_number(Greenkey_itemid) if $game_switches[43]
  159.     return true if @xpoison!=$game_switches[13]
  160.     return true if @xpoor!=$game_switches[15]
  161.     return true if @xcurse!=$game_switches[16]
  162.     return true if @xslow!=$game_switches[12]
  163.     return true if @xchange!=$game_switches[50]
  164.     return false
  165.   end

  166. end

  167. ###########################################################################
  168. #                           下面的东西不需要掌握~                         #
  169. ###########################################################################

  170. class Scene_Map
  171. alias xy_66rpg_main main
  172. def main
  173.    @Playerdate_window = Window_PlayerDate.new
  174.    @Playerdate_window.x = $game_variables[105]
  175. #   @xy_window.y = 480 - 96
  176. #   @xy_window.opacity = 0
  177.    xy_66rpg_main
  178.    @Playerdate_window .dispose
  179. end
  180. #--------------------------------------------------------------------------
  181. # ● 刷新画面
  182. #--------------------------------------------------------------------------
  183. alias xy_66rpg_update update
  184. def update
  185.    xy_66rpg_update
  186.    if $game_switches[Playerdate_SWITCH]
  187.      @Playerdate_window .visible = true     
  188.      @Playerdate_window .refresh if @Playerdate_window.judge
  189.    else
  190.      @Playerdate_window .visible = false
  191.    end
  192. end
  193. end
  194. #==========================================================================
  195. # 本脚本来自www.66rpg.com,用于任何游戏请保留此信息。别以为加密就可以del哦
  196. #==========================================================================
复制代码


我想让这个脚本在战斗中显示,怎么合?

  1. #==============================================================================
  2. # ■ Window_BattleStatus
  3. #------------------------------------------------------------------------------
  4. #  显示战斗画面同伴状态的窗口。
  5. #==============================================================================

  6. class Window_BattleStatus < Window_Base
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化对像
  9.   #--------------------------------------------------------------------------
  10.   def initialize
  11.     super(195, 160, 640, 160)
  12.     self.contents = Bitmap.new(width - 32, height - 32)
  13.     @level_up_flags = [false, false, false, false]
  14.     refresh
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● 释放
  18.   #--------------------------------------------------------------------------
  19.   def dispose
  20.     super
  21.   end
  22.   #--------------------------------------------------------------------------
  23.   # ● 设置升级标志
  24.   #     actor_index : 角色索引
  25.   #--------------------------------------------------------------------------
  26.   def level_up(actor_index)
  27.     @level_up_flags[actor_index] = true
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # ● 刷新
  31.   #--------------------------------------------------------------------------
  32.   def refresh
  33.     self.contents.clear
  34.     @item_max = $game_party.actors.size
  35.     for i in 0...$game_party.actors.size
  36.       actor = $game_party.actors[i]
  37.       actor_x = 244
  38.       draw_actor_name(actor, actor_x, 0)
  39.       draw_actor_hp(actor, actor_x, 32, 120)
  40.       draw_actor_parameter(actor, actor_x, 64, 3)
  41.       draw_actor_parameter(actor, actor_x, 96, 4)
  42.       if @level_up_flags[i]
  43.         self.contents.font.color = normal_color
  44.         self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
  45.       else
  46.         draw_actor_state(actor, actor_x+500, 0)
  47.       end
  48.     end
  49.   end
  50.   #--------------------------------------------------------------------------
  51.   # ● 刷新画面
  52.   #--------------------------------------------------------------------------
  53.   def update
  54.     super
  55.     # 主界面的不透明度下降
  56.     if $game_temp.battle_main_phase
  57.       self.contents_opacity -= 4 if self.contents_opacity > 191
  58.     else
  59.       self.contents_opacity += 4 if self.contents_opacity < 255
  60.     end
  61.   end
  62. end
复制代码


谁帮我下?[LINE]1,#dddddd[/LINE]版主对此贴的评论:『标题已被编辑,详情请看版规。』 [LINE]1,#dddddd[/LINE]本贴由论坛斑竹enghao_lim结贴,如楼主认为问题未解决,请重新将此贴编辑为“有事请教”,并回帖叙述疑点即可~ ^-^
2
乌有君  发表于 2007-12-16 20:36:46 回帖奖励 |倒序浏览 |阅读模式

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

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

x

  1. Playerdate_SWITCH = 1 # 当1号开关打开,本脚本才开始工作。
  2. Playerdate_magicdef =19
  3. Yellowkey_itemid=1
  4. Bluekey_itemid=2
  5. Redkey_itemid=3
  6. Greenkey_itemid=41

  7. #==============================================================================
  8. # ■ Window_PlayerDate
  9. #------------------------------------------------------------------------------
  10. #  显示玩家状态的窗口。
  11. #==============================================================================

  12. class Window_PlayerDate < Window_Base
  13.   #--------------------------------------------------------------------------
  14.   # ● 初始化窗口
  15.   #--------------------------------------------------------------------------
  16.   def initialize
  17.     super(0, 0, 160, 480)#395)#192,416
  18.     self.contents = Bitmap.new(width - 32, height - 32)
  19.     self.z =210
  20.     self.opacity=0
  21.     self.back_opacity =255
  22. #    self.contents_opacity = 255
  23.     self.visible = false
  24. #    self.contents.clear
  25.     refresh
  26. #    if $game_switches[XY_SWITCH]
  27. #      self.contents_opacity = 0
  28. #    else
  29. #      self.contents_opacity = 5
  30. #    end
  31.    
  32.   end
  33.   
  34.   
  35.   def refresh
  36.     if $game_switches[50]#进入屏幕右侧状态栏换到左侧
  37.       self.x=0
  38.     else#进入屏幕左侧状态栏换到右侧
  39.       self.x=480
  40.     end

  41.     self.contents.clear
  42.     x=25
  43.     x=30 if !$game_switches[27]
  44.     y=75
  45.     y=40 if !$game_switches[27]
  46.     #actor = $game_party.actors[1]
  47.     draw_actor_graphic($game_party.actors[0], 20, 35)

  48.     self.contents.font.color = system_color
  49.     self.contents.draw_text(40, 11, 25, 20, "第", 0) if $game_switches[36]
  50.     self.contents.draw_text(100, 11, 25, 20, "层", 0)if $game_switches[36]
  51.     self.contents.draw_text(0, 55, 50, 20, "等级", 0)
  52.    
  53.     if $game_switches[42]
  54.       if $game_variables[$game_variables[1]+81]!=0
  55.         bitmap = Bitmap.new("Graphics/Pictures/up.png")
  56.         self.contents.blt(40,55 , bitmap, Rect.new(0, 0, 20, 20))
  57.       end
  58.     end

  59.     self.contents.draw_text(4, 65+x, 40, 20, "生命", 0)
  60.     self.contents.draw_text(4, 65+x*2, 40, 20, "攻击", 0)
  61.     self.contents.draw_text(4, 65+x*3, 40, 20,"防御", 0)
  62.     self.contents.draw_text(4, 65+x*4, 40, 20, "内力", 0) if $game_switches[Playerdate_magicdef]
  63.     self.contents.draw_text(4, 65+x*5, 40, 20, "速度", 0) if $game_switches[27]

  64.     self.contents.draw_text(4, y+x*6, 40, 20, "经验", 0)
  65.     self.contents.draw_text(4, y+x*7, 40, 20, "金币", 0)

  66.     if $game_switches[26]
  67.       bitmap = RPG::Cache.icon("101-01")#黄钥匙)
  68.       self.contents.blt(10, 280, bitmap, Rect.new(0, 0, 32, 32))   
  69.       bitmap = RPG::Cache.icon("101-02")#蓝钥匙)
  70.       self.contents.blt(10, 307, bitmap, Rect.new(0, 0, 32, 32))
  71.       bitmap = RPG::Cache.icon("101-03")#红钥匙)
  72.       self.contents.blt(10, 334, bitmap, Rect.new(0, 0, 32, 32))
  73.       bitmap = RPG::Cache.icon("101-04") if $game_switches[43]#绿钥匙)
  74.       self.contents.blt(10, 361, bitmap, Rect.new(0, 0, 32, 32)) if $game_switches[43]

  75.     else
  76.       self.contents.font.color = text_color(6)   
  77.       self.contents.draw_text(8, 285, 50, 20, "黄钥匙", 0)
  78.       self.contents.font.color = text_color(4)   
  79.       self.contents.draw_text(8, 313, 50, 20, "蓝钥匙", 0)
  80.       self.contents.font.color = text_color(2)   
  81.       self.contents.draw_text(8, 341, 50, 20, "红钥匙", 0)
  82.       self.contents.font.color = text_color(3)   
  83.       self.contents.draw_text(8, 369, 50, 20, "绿钥匙", 0) if $game_switches[43]
  84.     end
  85.    
  86.     @xgraphic=$game_party.actors[0].character_name
  87.     @xfloor=$game_variables[2]
  88.     @xlevel=$game_actors[$game_variables[1]+1].level
  89.     @xlevelup=$game_variables[$game_variables[1]+81] if $game_switches[42]
  90.     @xlife=$game_actors[$game_variables[1]+1].hp
  91.     @xattact=$game_actors[$game_variables[1]+1].str
  92.     @xdefence=$game_actors[$game_variables[1]+1].dex
  93.     @xmagicdef=$game_actors[$game_variables[1]+1].int if $game_switches[Playerdate_magicdef]
  94.     @xspeed=$game_actors[$game_variables[1]+1].agi if $game_switches[27]
  95.     @xexp= $game_actors[$game_variables[1]+1].exp
  96.     @xgold=$game_party.gold
  97.     @xyellowkey=$game_party.item_number(Yellowkey_itemid)
  98.     @xbluekey=$game_party.item_number(Bluekey_itemid)
  99.     @xredkey=$game_party.item_number(Redkey_itemid)
  100.     @xgreenkey=$game_party.item_number(Greenkey_itemid) if $game_switches[43]
  101.     @xpoison=$game_switches[13]
  102.     @xpoor=$game_switches[15]
  103.     @xcurse=$game_switches[16]
  104.     @xslow=$game_switches[12]
  105.     @xchange=$game_switches[50]
  106.    
  107.    
  108.     self.contents.font.color = normal_color
  109.     self.contents.draw_text(32, 0, 60, 45, @xfloor.to_s, 2) if $game_switches[36]
  110.     self.contents.draw_text(40, 0, 80, 45, @xfloor.to_s, 2) if !$game_switches[36]
  111.    
  112.     self.contents.draw_text(50, 50, 65, 30, @xlevel.to_s, 2)
  113.     self.contents.draw_text(43, 65+x, 72, 20,@xlife .to_s, 2)
  114.     self.contents.draw_text(50, 65+x*2, 65, 20,@xattact .to_s, 2)
  115.     self.contents.draw_text(50, 65+x*3, 65, 20,@xdefence .to_s, 2)
  116.     self.contents.draw_text(50, 65+x*4, 65, 20,@xmagicdef .to_s, 2) if $game_switches[Playerdate_magicdef]
  117.     self.contents.draw_text(50, 65+x*5, 65, 20,@xspeed .to_s, 2) if $game_switches[27]

  118.     self.contents.draw_text(50, y+x*6, 65, 20,@xexp.to_s, 2)
  119.     self.contents.draw_text(50, y+x*7, 65, 20, @xgold.to_s, 2)
  120.    
  121.     self.contents.font.color = text_color(6)
  122.     self.contents.draw_text(75, 285, 25, 20, @xyellowkey.to_s, 2)
  123.     self.contents.font.color = text_color(4)
  124.     self.contents.draw_text(75, 313, 25, 20, @xbluekey .to_s, 2)
  125.     self.contents.font.color = text_color(2)
  126.     self.contents.draw_text(75, 341, 25, 20, @xredkey.to_s, 2)
  127.     self.contents.font.color = text_color(3)
  128.     self.contents.draw_text(75, 369, 25, 20, @xgreenkey.to_s, 2) if $game_switches[43]
  129.    
  130.     self.contents.font.color = text_color(3)
  131.     self.contents.draw_text(8, 390, 30, 30, "毒".to_s, 0) if $game_switches[13]
  132.     self.contents.font.color = text_color(5)
  133.     self.contents.draw_text(36, 390, 30, 30, "衰".to_s, 0) if $game_switches[15]
  134.     self.contents.font.color = text_color(4)
  135.     self.contents.draw_text(64, 390, 30, 30, "咒".to_s, 0) if $game_switches[16]
  136.     self.contents.font.color = text_color(1)
  137.     self.contents.draw_text(92, 390, 30, 30, "慢".to_s, 0) if $game_switches[12]
  138.    
  139.    
  140.    
  141.   end
  142.   
  143.   def judge#用于判断是否数据变更,节约内存
  144.     return true if @xgraphic!=$game_party.actors[0].character_name
  145.     return true if @xfloor!=$game_variables[2]
  146.     return true if @xlevel!=$game_actors[$game_variables[1]+1].level
  147.     return true if @xlevelup!=$game_variables[$game_variables[1]+81] if $game_switches[42]
  148.     return true if @xlife!=$game_actors[$game_variables[1]+1].hp
  149.     return true if @xattact!=$game_actors[$game_variables[1]+1].str
  150.     return true if @xdefence!=$game_actors[$game_variables[1]+1].dex
  151.     return true if @xmagicdef!=$game_actors[$game_variables[1]+1].int if $game_switches[Playerdate_magicdef]
  152.     return true if @xspeed!=$game_actors[$game_variables[1]+1].agi if $game_switches[27]
  153.     return true if @xexp!= $game_actors[$game_variables[1]+1].exp
  154.     return true if @xgold!=$game_party.gold
  155.     return true if @xyellowkey!=$game_party.item_number(Yellowkey_itemid)
  156.     return true if @xbluekey!=$game_party.item_number(Bluekey_itemid)
  157.     return true if @xredkey!=$game_party.item_number(Redkey_itemid)
  158.     return true if @xgreenkey!=$game_party.item_number(Greenkey_itemid) if $game_switches[43]
  159.     return true if @xpoison!=$game_switches[13]
  160.     return true if @xpoor!=$game_switches[15]
  161.     return true if @xcurse!=$game_switches[16]
  162.     return true if @xslow!=$game_switches[12]
  163.     return true if @xchange!=$game_switches[50]
  164.     return false
  165.   end

  166. end

  167. ###########################################################################
  168. #                           下面的东西不需要掌握~                         #
  169. ###########################################################################

  170. class Scene_Map
  171. alias xy_66rpg_main main
  172. def main
  173.    @Playerdate_window = Window_PlayerDate.new
  174.    @Playerdate_window.x = $game_variables[105]
  175. #   @xy_window.y = 480 - 96
  176. #   @xy_window.opacity = 0
  177.    xy_66rpg_main
  178.    @Playerdate_window .dispose
  179. end
  180. #--------------------------------------------------------------------------
  181. # ● 刷新画面
  182. #--------------------------------------------------------------------------
  183. alias xy_66rpg_update update
  184. def update
  185.    xy_66rpg_update
  186.    if $game_switches[Playerdate_SWITCH]
  187.      @Playerdate_window .visible = true     
  188.      @Playerdate_window .refresh if @Playerdate_window.judge
  189.    else
  190.      @Playerdate_window .visible = false
  191.    end
  192. end
  193. end
  194. #==========================================================================
  195. # 本脚本来自www.66rpg.com,用于任何游戏请保留此信息。别以为加密就可以del哦
  196. #==========================================================================
复制代码


我想让这个脚本在战斗中显示,怎么合?

  1. #==============================================================================
  2. # ■ Window_BattleStatus
  3. #------------------------------------------------------------------------------
  4. #  显示战斗画面同伴状态的窗口。
  5. #==============================================================================

  6. class Window_BattleStatus < Window_Base
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化对像
  9.   #--------------------------------------------------------------------------
  10.   def initialize
  11.     super(195, 160, 640, 160)
  12.     self.contents = Bitmap.new(width - 32, height - 32)
  13.     @level_up_flags = [false, false, false, false]
  14.     refresh
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● 释放
  18.   #--------------------------------------------------------------------------
  19.   def dispose
  20.     super
  21.   end
  22.   #--------------------------------------------------------------------------
  23.   # ● 设置升级标志
  24.   #     actor_index : 角色索引
  25.   #--------------------------------------------------------------------------
  26.   def level_up(actor_index)
  27.     @level_up_flags[actor_index] = true
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # ● 刷新
  31.   #--------------------------------------------------------------------------
  32.   def refresh
  33.     self.contents.clear
  34.     @item_max = $game_party.actors.size
  35.     for i in 0...$game_party.actors.size
  36.       actor = $game_party.actors[i]
  37.       actor_x = 244
  38.       draw_actor_name(actor, actor_x, 0)
  39.       draw_actor_hp(actor, actor_x, 32, 120)
  40.       draw_actor_parameter(actor, actor_x, 64, 3)
  41.       draw_actor_parameter(actor, actor_x, 96, 4)
  42.       if @level_up_flags[i]
  43.         self.contents.font.color = normal_color
  44.         self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
  45.       else
  46.         draw_actor_state(actor, actor_x+500, 0)
  47.       end
  48.     end
  49.   end
  50.   #--------------------------------------------------------------------------
  51.   # ● 刷新画面
  52.   #--------------------------------------------------------------------------
  53.   def update
  54.     super
  55.     # 主界面的不透明度下降
  56.     if $game_temp.battle_main_phase
  57.       self.contents_opacity -= 4 if self.contents_opacity > 191
  58.     else
  59.       self.contents_opacity += 4 if self.contents_opacity < 255
  60.     end
  61.   end
  62. end
复制代码


谁帮我下?[LINE]1,#dddddd[/LINE]版主对此贴的评论:『标题已被编辑,详情请看版规。』 [LINE]1,#dddddd[/LINE]本贴由论坛斑竹enghao_lim结贴,如楼主认为问题未解决,请重新将此贴编辑为“有事请教”,并回帖叙述疑点即可~ ^-^
3
乌有君  发表于 2007-12-20 05:50:46
顶啊 [LINE]1,#dddddd[/LINE]版主对此帖的评论:『无意义回帖,详情请看版规。』,积分『-10』。这些被扣积分的一半会用于对本帖正确答案的悬赏。
回复 支持 反对

使用道具

4
乌有君  发表于 2007-12-21 04:25:21
没人··没办法顶··扣分就扣吧··
回复 支持 反对

使用道具

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
14
5
发表于 2007-12-21 04:35:30 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

6
乌有君  发表于 2007-12-21 05:08:38
先发,我看看
回复 支持 反对

使用道具

Lv1.梦旅人

梦石
0
星屑
49
在线时间
157 小时
注册时间
2007-12-16
帖子
3454
7
发表于 2007-12-21 05:11:29 | 只看该作者
什么意思?怎么LZ的好人变成-了?
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
14
8
发表于 2007-12-21 05:19:23 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

9
乌有君  发表于 2007-12-21 05:25:52
可以了,怎么弄的,你发下,我给你好人卡
回复 支持 反对

使用道具

10
乌有君  发表于 2007-12-21 05:26:55
我是在做魔塔的战斗,所以会乱乱的···
回复 支持 反对

使用道具

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

本版积分规则

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

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

GMT+8, 2026-6-21 23:49

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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