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

Project1

 找回密码
 注册会员
搜索
楼主: 殤。
打印 上一主题 下一主题

请人写一脚本。

 关闭 [复制链接]

Lv2.观梦者

傻♂逼

梦石
0
星屑
369
在线时间
1605 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

11
发表于 2008-1-31 01:03:38 | 只看该作者
用下列脚本代替第2个脚本可以减少刷新次数,但是一旦刷新对ITEM的刷新将会有两次
也就是第一个每针对窗口,图片,物品刷新1次
这种每针对物品刷新1次(其他直接判断即可).但是一旦刷新
那么那一针的物品刷新2次.
理论上会快点.
(理论,只是理论!!)
  1. #==============================================================================
  2. # ■ Scene_Map
  3. #------------------------------------------------------------------------------
  4. #  处理地图画面的类。
  5. #==============================================================================

  6. class Scene_Map < Scene_Base
  7.   #--------------------------------------------------------------------------
  8.   # ● 开始处理
  9.   #--------------------------------------------------------------------------
  10.   def start
  11.     super
  12.     $window_in = Window_In.new
  13.     $window_in.z = 99998
  14.     $game_map.refresh
  15.     @spriteset = Spriteset_Map.new
  16.     @message_window = Window_Message.new
  17.     @message_window.z = 99999
  18.   end
  19.   #--------------------------------------------------------------------------
  20.   # ● 执行变换
  21.   #--------------------------------------------------------------------------
  22.   def perform_transition
  23.     if Graphics.brightness == 0       # 战斗后、载入后
  24.       fadein(30)
  25.     else                              # 返回至菜单
  26.       Graphics.transition(15)
  27.     end
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # ● 结束处理
  31.   #--------------------------------------------------------------------------
  32.   def terminate
  33.     super
  34.     if $scene.is_a?(Scene_Battle)     # 正在切换战斗画面的情况下
  35.       @spriteset.dispose_characters   # 为了生成背景隐藏角色
  36.     end
  37.     $window_in.dispose
  38.     snapshot_for_background
  39.     @spriteset.dispose
  40.     @message_window.dispose
  41.     if $scene.is_a?(Scene_Battle)     # 正在切换战斗画面的情况下
  42.       perform_battle_transition       # 执行战斗前变换
  43.     end
  44.   end
  45.   #--------------------------------------------------------------------------
  46.   # ● 基本更新处理
  47.   #--------------------------------------------------------------------------
  48.   def update_basic
  49.     Graphics.update                   # 更新游戏画面
  50.     Input.update                      # 更新输入信息
  51.     $game_map.update                  # 更新地图
  52.     @spriteset.update                 # 更新活动块元件
  53.   end
  54.   #--------------------------------------------------------------------------
  55.   # ● フレーム更新
  56.   #--------------------------------------------------------------------------
  57.   def update
  58.     super
  59.     a = $game_variables
  60.     if $v[1] != a[1] or
  61.       $v[2] != a[1] or
  62.       $v[3] != a[3] or
  63.       $v[4] != a[4] or
  64.       $g != $game_party.gold or
  65.       $window_in.updated?
  66.       $window_in.refresh# = Window_In.new
  67.    end
  68.      #$window_in.dispose
  69.      #$window_in.z = 99998

  70.     $game_map.interpreter.update      # 更新解释器
  71.     $game_map.update                  # 更新滴入
  72.     $game_player.update               # 更新玩家
  73.     $game_system.update               # 更新计时器
  74.     @spriteset.update                 # 更新活动块元件
  75.     @message_window.update            # 更新消息窗口
  76.     unless $game_message.visible      # 正在显示消息以外的情况
  77.       update_transfer_player
  78.       update_encounter
  79.       update_call_menu
  80.       update_call_debug
  81.       update_scene_change
  82.     end
  83.   end
  84.   #--------------------------------------------------------------------------
  85.   # ● 画面淡入
  86.   #     duration : 时间
  87.   #    在地图画面、Graphics.fadeout 直接使用会造成天气效果与远景卷动等不正常的
  88.   # 现象、所以执行动态淡入。
  89.   #--------------------------------------------------------------------------
  90.   def fadein(duration)
  91.     Graphics.transition(0)
  92.     for i in 0..duration-1
  93.       Graphics.brightness = 255 * i / duration
  94.       update_basic
  95.     end
  96.     Graphics.brightness = 255
  97.   end
  98.   #--------------------------------------------------------------------------
  99.   # ● 画面淡出
  100.   #     duration : 时间
  101.   #    与上面的淡入相同、不直接使用 Graphics.fadein。
  102.   #--------------------------------------------------------------------------
  103.   def fadeout(duration)
  104.     Graphics.transition(0)
  105.     for i in 0..duration-1
  106.       Graphics.brightness = 255 - 255 * i / duration
  107.       update_basic
  108.     end
  109.     Graphics.brightness = 0
  110.   end
  111.   #--------------------------------------------------------------------------
  112.   # ● 处理场所移动
  113.   #--------------------------------------------------------------------------
  114.   def update_transfer_player
  115.     return unless $game_player.transfer?
  116.     fade = (Graphics.brightness > 0)
  117.     fadeout(30) if fade
  118.     @spriteset.dispose              # 释放活动块元件
  119.     $game_player.perform_transfer   # 执行场所移动
  120.     $game_map.autoplay              # 自动切换 BGM 与 BGS
  121.     $game_map.update
  122.     Graphics.wait(15)
  123.     @spriteset = Spriteset_Map.new  # 在生成活动块元件
  124.     fadein(30) if fade
  125.     Input.update
  126.   end
  127.   #--------------------------------------------------------------------------
  128.   # ● 遇敌处理
  129.   #--------------------------------------------------------------------------
  130.   def update_encounter
  131.     return if $game_player.encounter_count > 0        # 未满遭遇步数?
  132.     return if $game_map.interpreter.running?          # 正在执行事件?
  133.     return if $game_system.encounter_disabled         # 禁止遇敌?
  134.     troop_id = $game_player.make_encounter_troop_id   # 确定敌方队伍
  135.     return if $data_troops[troop_id] == nil           # 敌方队伍无效?
  136.     $game_troop.setup(troop_id)
  137.     $game_troop.can_escape = true
  138.     $game_temp.battle_proc = nil
  139.     $game_temp.next_scene = "battle"
  140.     preemptive_or_surprise
  141.   end
  142.   #--------------------------------------------------------------------------
  143.   # ● 确定先行攻击和被偷袭的概率
  144.   #--------------------------------------------------------------------------
  145.   def preemptive_or_surprise
  146.     actors_agi = $game_party.average_agi
  147.     enemies_agi = $game_troop.average_agi
  148.     if actors_agi >= enemies_agi
  149.       percent_preemptive = 5
  150.       percent_surprise = 3
  151.     else
  152.       percent_preemptive = 3
  153.       percent_surprise = 5
  154.     end
  155.     if rand(100) < percent_preemptive
  156.       $game_troop.preemptive = true
  157.     elsif rand(100) < percent_surprise
  158.       $game_troop.surprise = true
  159.     end
  160.   end
  161.   #--------------------------------------------------------------------------
  162.   # ● 判断取消按钮调用菜单
  163.   #--------------------------------------------------------------------------
  164.   def update_call_menu
  165.     if Input.trigger?(Input::B)
  166.       return if $game_map.interpreter.running?        # 正在执行事件?
  167.       return if $game_system.menu_disabled            # 禁止菜单?
  168.       $game_temp.menu_beep = true                     # 设置播放 SE 标志
  169.       $game_temp.next_scene = "menu"
  170.     end
  171.   end
  172.   #--------------------------------------------------------------------------
  173.   # ● 判断 F9 键调用调试模式
  174.   #--------------------------------------------------------------------------
  175.   def update_call_debug
  176.     if $TEST and Input.press?(Input::F9)    # 测试游戏中 F9 键
  177.       $game_temp.next_scene = "debug"
  178.     end
  179.   end
  180.   #--------------------------------------------------------------------------
  181.   # ● 执行画面切换
  182.   #--------------------------------------------------------------------------
  183.   def update_scene_change
  184.     return if $game_player.moving?    # 角色正在移动?
  185.     case $game_temp.next_scene
  186.     when "battle"
  187.       call_battle
  188.     when "shop"
  189.       call_shop
  190.     when "name"
  191.       call_name
  192.     when "menu"
  193.       call_menu
  194.     when "save"
  195.       call_save
  196.     when "debug"
  197.       call_debug
  198.     when "gameover"
  199.       call_gameover
  200.     when "title"
  201.       call_title
  202.     else
  203.       $game_temp.next_scene = nil
  204.     end
  205.   end
  206.   #--------------------------------------------------------------------------
  207.   # ● 切换至战斗画面
  208.   #--------------------------------------------------------------------------
  209.   def call_battle
  210.     @spriteset.update
  211.     Graphics.update
  212.     $game_player.make_encounter_count
  213.     $game_player.straighten
  214.     $game_temp.map_bgm = RPG::BGM.last
  215.     $game_temp.map_bgs = RPG::BGS.last
  216.     RPG::BGM.stop
  217.     RPG::BGS.stop
  218.     Sound.play_battle_start
  219.     $game_system.battle_bgm.play
  220.     $game_temp.next_scene = nil
  221.     $scene = Scene_Battle.new
  222.   end
  223.   #--------------------------------------------------------------------------
  224.   # ● 切换至商店画面
  225.   #--------------------------------------------------------------------------
  226.   def call_shop
  227.     $game_temp.next_scene = nil
  228.     $scene = Scene_Shop.new
  229.   end
  230.   #--------------------------------------------------------------------------
  231.   # ● 切换至名称输入画面
  232.   #--------------------------------------------------------------------------
  233.   def call_name
  234.     $game_temp.next_scene = nil
  235.     $scene = Scene_Name.new
  236.   end
  237.   #--------------------------------------------------------------------------
  238.   # ● 切换至菜单画面
  239.   #--------------------------------------------------------------------------
  240.   def call_menu
  241.     if $game_temp.menu_beep
  242.       Sound.play_decision
  243.       $game_temp.menu_beep = false
  244.     end
  245.     $game_temp.next_scene = nil
  246.     $scene = Scene_Menu.new
  247.   end
  248.   #--------------------------------------------------------------------------
  249.   # ● 切换至存档画面
  250.   #--------------------------------------------------------------------------
  251.   def call_save
  252.     $game_temp.next_scene = nil
  253.     $scene = Scene_File.new(true, false, true)
  254.   end
  255.   #--------------------------------------------------------------------------
  256.   # ● 切换至调试画面
  257.   #--------------------------------------------------------------------------
  258.   def call_debug
  259.     Sound.play_decision
  260.     $game_temp.next_scene = nil
  261.     $scene = Scene_Debug.new
  262.   end
  263.   #--------------------------------------------------------------------------
  264.   # ● 切换至游戏结束画面
  265.   #--------------------------------------------------------------------------
  266.   def call_gameover
  267.     $game_temp.next_scene = nil
  268.     $scene = Scene_Gameover.new
  269.   end
  270.   #--------------------------------------------------------------------------
  271.   # ● 切换至标题画面
  272.   #--------------------------------------------------------------------------
  273.   def call_title
  274.     $game_temp.next_scene = nil
  275.     $scene = Scene_Title.new
  276.     fadeout(60)
  277.   end
  278.   #--------------------------------------------------------------------------
  279.   # ● 执行战斗前变换
  280.   #--------------------------------------------------------------------------
  281.   def perform_battle_transition
  282.     Graphics.transition(80, "Graphics/System/BattleStart", 80)
  283.     Graphics.freeze
  284.   end
  285. end
复制代码
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

Lv3.寻梦者 (暗夜天使)

名侦探小柯

梦石
0
星屑
3279
在线时间
3618 小时
注册时间
2006-9-6
帖子
37400

开拓者贵宾第3届短篇游戏大赛主流游戏组亚军第5届短篇游戏比赛亚军

12
发表于 2008-1-31 01:03:44 | 只看该作者
下次我改一下坐标就好用了……{/hx}
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-31
帖子
23
13
发表于 2008-1-31 01:04:23 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv2.观梦者

傻♂逼

梦石
0
星屑
369
在线时间
1605 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

14
发表于 2008-1-31 01:06:29 | 只看该作者
以下引用越前リョーマ于2008-1-30 17:03:44的发言:

下次我改一下坐标就好用了……

我几乎没有注释的.
你修改的来吗?
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

喵,小柯的宠物

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
2310
15
 楼主| 发表于 2008-1-31 01:12:54 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv3.寻梦者 (暗夜天使)

名侦探小柯

梦石
0
星屑
3279
在线时间
3618 小时
注册时间
2006-9-6
帖子
37400

开拓者贵宾第3届短篇游戏大赛主流游戏组亚军第5届短篇游戏比赛亚军

16
发表于 2008-1-31 01:15:52 | 只看该作者
以下引用yangff于2008-1-30 17:06:29的发言:


以下引用越前リョーマ于2008-1-30 17:03:44的发言:

下次我改一下坐标就好用了……


我几乎没有注释的.
你修改的来吗?

…………|||

欺负人……
回复 支持 反对

使用道具 举报

Lv2.观梦者

傻♂逼

梦石
0
星屑
369
在线时间
1605 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

17
发表于 2008-1-31 01:28:55 | 只看该作者
替换Window_In
  1. class Window_In < Window_Base
  2.   #--------------------------------------------------------------------------
  3.   # ● 初始化对象
  4.   #--------------------------------------------------------------------------
  5.   def initialize
  6.     @pic = Sprite.new
  7.     @pic.z = 9999
  8.     @pic.bitmap = Cache.picture("变量界面图2_82135405")
  9.     @height = @pic.bitmap.height
  10.     @pic.x = 3
  11.     @pic.y = 416-@height
  12. #    self.z = 99999
  13.     super(0, 416-@height, 544, WLH + @height)
  14.     self.opacity = 0
  15.     #super(0, 0, 544, WLH + 500)
  16.    
  17.     refresh
  18.   end
  19.   def dispose
  20.     super
  21.     @pic.bitmap.dispose
  22.     @pic.dispose
  23.   end
  24.   #--------------------------------------------------------------------------
  25.   # ● 刷新
  26.   #--------------------------------------------------------------------------
  27.   def refresh
  28.     self.contents.clear
  29.     item
  30.     $game_variables[1] = 100 if $game_variables[1]>100
  31.     $game_variables[2] = 100 if $game_variables[2]>100
  32.     $game_variables[3] = 100 if $game_variables[3]>100
  33.     $game_variables[4] = 100 if $game_variables[4]>100
  34.     draw_currency_value($game_party.gold, -23, 60, 140)
  35.     x = 174
  36.     y = 38
  37.     $g = $game_party.gold
  38.     draw_currency_line($game_variables[1],x,y)
  39.     x = 174
  40.     y = 55
  41.     $v = []
  42.     $v[1] = $game_variables[1]
  43.     draw_currency_line($game_variables[2],x,y)
  44.     x = 174+65+32+13
  45.     y = 37
  46.     $v[2] = $game_variables[2]
  47.     draw_currency_line($game_variables[3],x,y)
  48.     x = 174+65+32+13
  49.     y = 56
  50.     $v[3] = $game_variables[3]
  51.     draw_currency_line($game_variables[4],x,y)
  52.     $v[4] = $game_variables[4]
  53.     draw_currency_item
  54.   end
  55.   def draw_currency_item
  56.     for i in 0...5
  57.       draw_item(i)
  58.     end
  59.   end
  60.   def draw_item(index)
  61.     x = 362+(index*32)
  62.     y = 60
  63.     item = @data[index]
  64.     if item != nil
  65.     icon_index = item.icon_index
  66.     bitmap = Cache.system("Iconset")
  67.     rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
  68.     self.contents.blt(x, y, bitmap, rect, 255)
  69.     if $game_party.item_number(item) >1
  70.       self.contents.font.size = 10
  71.       self.contents.font.color = Color.new(255,255,255)
  72.       self.contents.draw_text(x+16, y+10, 10, WLH, $game_party.item_number(item), 2)
  73.       end
  74.     end
  75.   end
  76.   def draw_currency_line(value,x,y)
  77.     gw = 66 * value / 100
  78.     gc1 = hp_gauge_color1
  79.     gc2 = hp_gauge_color2
  80.     #self.contents.fill_rect(x, y + WLH - 8, 72, 6, gauge_back_color)
  81.     self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2)
  82.   end
  83.   def updated?
  84.     if @data != item_i
  85.       return true
  86.     else
  87.       return false
  88.     end
  89.   end
  90.   #--------------------------------------------------------------------------
  91.   # ● 列表中包含的物品
  92.   #     item : 物品
  93.   #--------------------------------------------------------------------------
  94.   def include?(item)
  95.     return false if item == nil
  96.     if $game_temp.in_battle
  97.       return false unless item.is_a?(RPG::Item)
  98.     end
  99.     return true
  100.   end
  101.   #--------------------------------------------------------------------------
  102.   # ● 取得物品
  103.   #--------------------------------------------------------------------------
  104.   def item
  105.     @data = []
  106.     for item in $game_party.items
  107.       next unless include?(item)
  108.       @data.push(item)
  109.       if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id
  110.         #self.index = @data.size - 1
  111.       end
  112.     end
  113.     @data.push(nil) if include?(nil)
  114.     #@item_max = @data.size
  115.   end
  116.   #--------------------------------------------------------------------------
  117.   # ● 取得物品
  118.   #--------------------------------------------------------------------------
  119.   def item_i
  120.     data = []
  121.     for item in $game_party.items
  122.       next unless include?(item)
  123.       data.push(item)
  124.       if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id
  125.         #self.index = @data.size - 1
  126.       end
  127.     end
  128.     data.push(nil) if include?(nil)
  129.     return data
  130.     #@item_max = @data.size
  131.   end
  132. end
复制代码
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

Lv2.观梦者

傻♂逼

梦石
0
星屑
369
在线时间
1605 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

18
发表于 2008-1-31 01:29:49 | 只看该作者
Sorry
金钱不带单位在系统里将金钱设置为" "即可
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
2 小时
注册时间
2005-10-25
帖子
108
19
发表于 2008-1-31 01:32:09 | 只看该作者
关于物品的刷新,可以考虑增减物品时再执行刷新操作
小星子=亿万星辰@PSVita
回复 支持 反对

使用道具 举报

Lv2.观梦者

傻♂逼

梦石
0
星屑
369
在线时间
1605 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

20
发表于 2008-1-31 01:33:30 | 只看该作者
那////
继续再把Window_In替换为:
  1. class Window_In < Window_Base
  2.   #--------------------------------------------------------------------------
  3.   # ● 初始化对象
  4.   #--------------------------------------------------------------------------
  5.   def initialize
  6.     @pic = Sprite.new
  7.     @pic.z = 9999
  8.     @pic.bitmap = Cache.picture("变量界面图2_82135405")
  9.     @height = @pic.bitmap.height
  10.     @pic.x = 3
  11.     @pic.y = 416-@height
  12. #    self.z = 99999
  13.     super(0, 416-@height, 544, WLH + @height)
  14.     self.opacity = 0
  15.     #super(0, 0, 544, WLH + 500)
  16.    
  17.     refresh
  18.   end
  19.   def dispose
  20.     super
  21.     @pic.bitmap.dispose
  22.     @pic.dispose
  23.   end
  24.   #--------------------------------------------------------------------------
  25.   # ● 刷新
  26.   #--------------------------------------------------------------------------
  27.   def refresh
  28.     self.contents.clear
  29.     item
  30.     $game_variables[1] = 100 if $game_variables[1]>100
  31.     $game_variables[2] = 100 if $game_variables[2]>100
  32.     $game_variables[3] = 100 if $game_variables[3]>100
  33.     $game_variables[4] = 100 if $game_variables[4]>100
  34.    # draw_currency_value(, -23, 60, 140)
  35.     x = 174
  36.     y = 38
  37.    
  38.     $g = $game_party.gold
  39.     draw_currency_line($game_variables[1],x,y)
  40.    
  41.     self.contents.font.size = 13
  42.     cx = contents.text_size($game_party.gold).width
  43.     self.contents.font.color = normal_color
  44.     self.contents.draw_text(-23, 62, 140-cx-2, WLH, $game_party.gold, 2)
  45.     self.contents.font.size = 20
  46.     x = 174
  47.     y = 55
  48.     $v = []
  49.     $v[1] = $game_variables[1]
  50.     draw_currency_line($game_variables[2],x,y)
  51.     x = 174+65+32+13
  52.     y = 37
  53.     $v[2] = $game_variables[2]
  54.     draw_currency_line($game_variables[3],x,y)
  55.     x = 174+65+32+13
  56.     y = 56
  57.     $v[3] = $game_variables[3]
  58.     draw_currency_line($game_variables[4],x,y)
  59.     $v[4] = $game_variables[4]
  60.     draw_currency_item
  61.   end
  62.   def draw_currency_item
  63.     for i in 0...5
  64.       draw_item(i)
  65.     end
  66.   end
  67.   def draw_item(index)
  68.     x = 362+(index*32)
  69.     y = 60
  70.     item = @data[index]
  71.     if item != nil
  72.     icon_index = item.icon_index
  73.     bitmap = Cache.system("Iconset")
  74.     rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
  75.     self.contents.blt(x, y, bitmap, rect, 255)
  76.     if $game_party.item_number(item) >1
  77.       self.contents.font.size = 10
  78.       self.contents.font.color = Color.new(255,255,255)
  79.       self.contents.draw_text(x+16, y+10, 10, WLH, $game_party.item_number(item), 2)
  80.       end
  81.     end
  82.   end
  83.   def draw_currency_line(value,x,y)
  84.     gw = 66 * value / 100
  85.     gc1 = hp_gauge_color1
  86.     gc2 = hp_gauge_color2
  87.     #self.contents.fill_rect(x, y + WLH - 8, 72, 6, gauge_back_color)
  88.     self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2)
  89.   end
  90.   def updated?
  91.     if @data != item_i
  92.       return true
  93.     else
  94.       return false
  95.     end
  96.   end
  97.   #--------------------------------------------------------------------------
  98.   # ● 列表中包含的物品
  99.   #     item : 物品
  100.   #--------------------------------------------------------------------------
  101.   def include?(item)
  102.     return false if item == nil
  103.     if $game_temp.in_battle
  104.       return false unless item.is_a?(RPG::Item)
  105.     end
  106.     return true
  107.   end
  108.   #--------------------------------------------------------------------------
  109.   # ● 取得物品
  110.   #--------------------------------------------------------------------------
  111.   def item
  112.     @data = []
  113.     for item in $game_party.items
  114.       next unless include?(item)
  115.       @data.push(item)
  116.       if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id
  117.         #self.index = @data.size - 1
  118.       end
  119.     end
  120.     @data.push(nil) if include?(nil)
  121.     #@item_max = @data.size
  122.   end
  123.   #--------------------------------------------------------------------------
  124.   # ● 取得物品
  125.   #--------------------------------------------------------------------------
  126.   def item_i
  127.     data = []
  128.     for item in $game_party.items
  129.       next unless include?(item)
  130.       data.push(item)
  131.       if item.is_a?(RPG::Item) and item.id == $game_party.last_item_id
  132.         #self.index = @data.size - 1
  133.       end
  134.     end
  135.     data.push(nil) if include?(nil)
  136.     return data
  137.     #@item_max = @data.size
  138.   end
  139. end
复制代码
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-22 23:47

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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