查看: 4393|回复: 1

[已经过期] 大佬们 使用负重脚本之后 获得一个道具游戏变卡了

[复制链接]
梦石
0
星屑
40
在线时间
20 小时
注册时间
2019-6-26
回帖
12
发表于 2020-4-9 10:36:03 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 VIPArcher 于 2022-6-15 09:09 编辑
  1. #==============================================================================
  2. # +++ VX移植 - VA负重系统改进版 +++
  3. #==============================================================================
  4. # VX版 原作者 By 雪流星
  5. # 蓝本 杂兵天下的VA移植版
  6. # 改进 By:VIPArcher
  7. #  -- 本脚本来自 [url]https://rpg.blue[/url] 使用或转载请保留以上信息。
  8. # 二次小改 By:小茶司令(爱呗茶)2020.4.3
  9. #==============================================================================
  10. # 就是在物品画面的右上角放了一个显示负重的窗口
  11. # 更新了代码,取消的原来的计算每个队员的负重然后累加的模式 2014-12-10
  12. # 增加了商店界面的负重显示     2014-9-3
  13. #==============================================================================
  14. #
  15. # 物品备注<load N> 则该物品占用 N 点负重
  16. # load也可以写成「负重」或「負重」#注:没有“「」”不写的话默认为 Default_Load
  17. # 更改当前负重 current_load(x[,assign])
  18. # 其中 x 为数值可以为负数,assign 为 true 时当前负重直接赋值为x(可省略)
  19. # 例如:current_load(10,true) 当前负重直接赋值为10
  20. # 默认给物品增加一行说明.说明内容是物品的重量.
  21. # 但默认帮助窗口一共只能显示2行内容.
  22. # 因此你在数据库设置武器、护甲说明的时候.
  23. # 如果设置了2行内容.那么这新增加的第3行将无法显示出来.
  24. # 特别地,如果你使用了我的【技能物品说明增强】脚本,请将其置于该脚本以上的位置
  25. # 2020.4.3 增加内容:
  26. # 1.每名角色的独立装备负重
  27. # 2.队伍中若有一名以上角色装备负重超过上限则进行超重处理
  28. # 3.装备超重提示
  29. # 4.添加若干常量设置
  30. #==============================================================================
  31. $VIPArcherScript ||= {};$VIPArcherScript[:load] = 20140919
  32. #==============================================================================
  33. # ★ 设定部分 ★
  34. #==============================================================================
  35. module  VIPArcher end
  36. module  VIPArcher::Load
  37.   Default_Load = 1    #物品的默认负重
  38.   Default_Equip = 40  #每名角色默认装备重量上限 ###########################
  39. #若不想使用默认负重则需数据库角色备注里添加文本 例: <负重 50>

  40.   Width = 150         #负重信息窗口宽度

  41.   Load_Name = "负重:" #负重前显示的文字

  42.   Load_Var = 0        #作为队伍负重上限的变量ID,为0禁用变量作为负重上限,变成
  43.                       #累计每个角色的负重能力来计算负重上限

  44.   EQUIPSWLOAD  = true     #true 使用 / false 不使用
  45.   # 用于是否显示装备栏的负重信息#####################

  46.   $equip_map = true   #装备负重提示开关

  47.   Load_Eval = "((mhp + mmp) * @level / agi) * [hp_rate,0.5].max"
  48.   # 每个角色的负重计算公式(eval)

  49.   Stop_SW = false       #true 使用 / false 不使用
  50.   # 事件中调用增减道具/武器/防具时,如果会导致超过负重上限,是否执行中断事件处理
  51.   # 推荐不使用,因为新加的功能就有一个是当超过负重时限制角色移动,开启这个
  52.   # 的话这个限制移动就无效了的说·3·

  53.   Movable =  false       #true 使用 / false 不使用
  54.   # 满负重时降低移动速度(不使用时禁止移动连事件都无法启动,只能丢弃/使用物品)


  55.   Move_Speed = 2 # 满负重时的移动速度

  56.   # 负重超过上限时的提示内容
  57.   Message = "\\i[4]负重超过可承受的范围,\n移动将变得\\c[10]十分艰难!\\c[0]
  58. 丢些没用的东西掉吧。"

  59.   # 装备负重超过上限时的提示内容
  60.   Message2 = "\\i[4]检测到队伍中至少有一名角色装备负重\n\\c[10]超过可承受范围\\c[0],队伍行动将变得\\c[10]十分艰难!\\c[0]
  61. 必要时请及时更换更轻便的装备哦。"

  62.   # 装备负重信息默认显示位置
  63.   Messset = 1  #0 上 / 1 中 / 2 下

  64.   # 按X键(A键)是否可以丢弃道具
  65.   # 如果你另外使用了丢弃道具的脚本请关闭
  66.   Lose_SW = false       #true 使用 / false 不使用

  67.   # 是否在帮助窗口内自动添加负重信息
  68.   Help_SW = false       #true 使用 / false 不使用

  69.   # 装备在身上的装备是否算入负重
  70.   Equip_SW = true      #true 计算 / false 不计算
  71.   #         "★★★★★★ 注意 ★★★★★★"
  72.   # 如果你的角色初始装备有占负重并且开启上面的功能,那么你必须
  73.   # 在游戏一开始时为当前负重赋值(自己算到底有多少负重·3·)
  74.   # 当有新队员加入队伍并且也带有负重的装备那么你也需要为当前负重加上对应的重量,
  75.   # 例如:事件脚本运行 current_load(10) 就是加上10的当前负重
  76. end
  77. #==============================================================================
  78. # ☆ 装备负重 ☆#######################
  79. #==============================================================================
  80. class Game_Actor
  81.   include VIPArcher::Load
  82.   attr_accessor :equip_weight      #已装备物品重量
  83.   attr_accessor :equip_weightmax   #最大负重
  84.   alias setup_plus setup
  85.   alias refresh_plus refresh
  86.   alias change_equip_plus change_equip
  87.   #--------------------------------------------------------------------------
  88.   # ● 设置
  89.   #--------------------------------------------------------------------------
  90.   def setup(actor_id)
  91.     setup_plus(actor_id)
  92.     @equip_weight = equips.compact.inject(0) {|r, item| r += item.load }
  93.     @equip_weightmax = loadmax
  94.   end  
  95.   #--------------------------------------------------------------------------
  96.   # ● 获取队伍角色最大负重
  97.   #--------------------------------------------------------------------------
  98.    def loadmax
  99.     return $1.to_i if $data_actors[id].note =~ /<(?:load|负重|負重)\s*(\d+)>/i
  100.     return Default_Equip
  101.   end
  102.   #--------------------------------------------------------------------------
  103.   # ● 更换装备
  104.   #     slot_id : 装备栏 ID
  105.   #     item    : 武器/护甲(为 nil 时装备解除)
  106.   #--------------------------------------------------------------------------
  107.   def change_equip(slot_id, item)
  108.   change_equip_plus(slot_id, item)
  109.   $equip_map = true  
  110.   end
  111.   #--------------------------------------------------------------------------
  112.   # ● 刷新
  113.   #--------------------------------------------------------------------------
  114.   def refresh
  115.    if @equip_weight != equips.compact.inject(0) {|r, item| r += item.load }
  116.     @equip_weight = equips.compact.inject(0) {|r, item| r += item.load }
  117.    end
  118.    refresh_plus
  119.   end
  120. end
  121. #==============================================================================
  122. #  ☆ 装备超重提示 ☆#######################
  123. #==============================================================================
  124. class Scene_Map < Scene_Base
  125. include  VIPArcher::Load
  126. alias start_plus start
  127. def start
  128.    start_plus
  129.    equiptips
  130. end  
  131.   #--------------------------------------------------------------------------
  132.   # ● 装备超重提示
  133.   #--------------------------------------------------------------------------
  134.   def equiptips
  135.       if $equip_map
  136.      for i in 1..$data_system.party_members.clone.size
  137.    if $game_actors[i].equip_weight > $game_actors[i].equip_weightmax
  138.       $game_message.position = Messset
  139.       $equip_map = false
  140.      return $game_message.texts.push("#{Message2}")
  141.     end
  142.    end
  143.   end
  144. end
  145. end   
  146. #==============================================================================
  147. #  ☆ 能力窗口 ☆#######################
  148. #==============================================================================
  149. class Window_EquipStatus
  150.   include VIPArcher::Load #继承了该模块
  151.   alias refresh_plus refresh
  152.   #--------------------------------------------------------------------------
  153.   # ● 刷新
  154.   #--------------------------------------------------------------------------
  155.   def refresh
  156.   refresh_plus
  157.   if EQUIPSWLOAD
  158.   contents.font.size = 16 ;contents.font.color = text_color(21)
  159. if @actor !=nil
  160.   x=80
  161.    contents.draw_text(x,0,100,16,"负重:")
  162.    if @actor.equip_weight > @actor.equip_weightmax
  163.    contents.font.color = text_color(10)
  164.    contents.draw_text(x-30,20,100,16,"超重!")
  165.    end
  166.   contents.font.color = text_color(0)
  167.   contents.draw_text(x+50,0,100,16,"#{@actor.equip_weight}/#{@actor.equip_weightmax}")
  168. end  
  169.   contents.font.size = 21
  170.   end
  171. end
  172. end  
  173. #==============================================================================
  174. # ☆ 设定结束 ☆
  175. #==============================================================================
  176. class RPG::BaseItem
  177.   include VIPArcher::Load #继承了该模块
  178.   #--------------------------------------------------------------------------
  179.   # ● 获取道具的重量
  180.   #--------------------------------------------------------------------------
  181.   def load
  182.     return unless self.is_a?(RPG::Item) || self.is_a?(RPG::EquipItem)
  183.     return $1.to_i if @note =~ /<(?:load|负重|負重)\s*(\d+)>/i
  184.     return Default_Load #若备注没有 <负重 (数字)> 则自动替换为该常量
  185.   end
  186.   #--------------------------------------------------------------------------
  187.   # ● 新增负重帮助内容
  188.   #--------------------------------------------------------------------------
  189.   def description
  190.     if Help_SW && load && load != 0
  191.       return @description + "\n\\}重量:#{load}"
  192.     else
  193.       return @description
  194.     end
  195.   end unless $VIPArcherScript[:help_ex]
  196. end
  197. #==============================================================================
  198. #  显示当前负重信息的窗口
  199. #==============================================================================
  200. class Window_Load < Window_Base
  201.   include VIPArcher::Load
  202.   #--------------------------------------------------------------------------
  203.   # ● 初始化对象
  204.   #--------------------------------------------------------------------------
  205.   def initialize
  206.     super(Graphics.width - window_width, 72, window_width, fitting_height(1))
  207.     refresh
  208.   end
  209.   #--------------------------------------------------------------------------
  210.   # ● 获取窗口的宽度
  211.   #--------------------------------------------------------------------------
  212.   def window_width
  213.     Width
  214.   end
  215.   #--------------------------------------------------------------------------
  216.   # ● 刷新
  217.   #--------------------------------------------------------------------------
  218.   def refresh
  219.     contents.clear
  220.     contents.font.size - 4
  221.     draw_text(0, 0, window_width - 64, 24,load_name,0)
  222.     draw_text(0, 0, window_width - 24, 24, weight,2)
  223.     @temp_load = $game_party.current_load
  224.   end
  225.   #--------------------------------------------------------------------------
  226.   # ● 获取当前负重信息
  227.   #--------------------------------------------------------------------------
  228.   def weight
  229.     "#{$game_party.current_load}/#{$game_party.total_load}"
  230.   end
  231.   #--------------------------------------------------------------------------
  232.   # ● 获取负重前显示文字
  233.   #--------------------------------------------------------------------------
  234.   def load_name
  235.     Load_Name
  236.   end
  237.   #--------------------------------------------------------------------------
  238.   # ● 更新画面
  239.   #--------------------------------------------------------------------------
  240.   def update
  241.     super
  242.     refresh if @temp_load != $game_party.current_load
  243.   end
  244. end
  245. #-------------------------------------------------------------------------------
  246. class Window_ItemCategory < Window_HorzCommand
  247.   include VIPArcher::Load
  248.   #--------------------------------------------------------------------------
  249.   # ● 获取窗口的宽度
  250.   #--------------------------------------------------------------------------
  251.   def window_width
  252.     scene_item_is? ? Graphics.width - Width : Graphics.width
  253.   end
  254.   #--------------------------------------------------------------------------
  255.   # ● 获取列数
  256.   #--------------------------------------------------------------------------
  257.   def col_max
  258.     return scene_item_is? ? 3 : 4
  259.   end
  260.   #--------------------------------------------------------------------------
  261.   # ● 判断是否为物品栏场景
  262.   #--------------------------------------------------------------------------
  263.   def scene_item_is?
  264.     return SceneManager.scene_is?(Scene_Item)
  265.   end
  266. end
  267. #==============================================================================
  268. # ■ 物品界面显示负重栏
  269. #==============================================================================
  270. class Scene_Item < Scene_ItemBase
  271.   include VIPArcher::Load
  272.   #--------------------------------------------------------------------------
  273.   # ● 开始处理
  274.   #--------------------------------------------------------------------------
  275.   alias load_start start
  276.   def start
  277.     load_start
  278.     @load_window = Window_Load.new
  279.     @load_window.y = 30
  280.     @load_window.viewport = @viewport
  281.   end
  282.   #--------------------------------------------------------------------------
  283.   # ● 结束处理
  284.   #--------------------------------------------------------------------------
  285.   alias load_terminate terminate
  286.   def terminate
  287.     load_terminate
  288.     @load_window.dispose
  289.   end
  290.   #--------------------------------------------------------------------------
  291.   # ● 更新画面
  292.   #--------------------------------------------------------------------------
  293.   alias load_update update
  294.   def update
  295.     #--------------------------------------------------------------------------
  296.     # ★ 按X键(A键)丢弃道具 - 贵重物品无法丢弃 ★修改:VIPArcher
  297.     #--------------------------------------------------------------------------
  298.     if Input.trigger?(Input::X) && Lose_SW
  299.       item = @item_window.item
  300.       if item.is_a?(RPG::Item) && item.key_item?
  301.         Sound.play_buzzer
  302.       else
  303.         Sound.play_cancel
  304.         $game_party.lose_item(item, 1)
  305.         @item_window.refresh
  306.       end unless item == nil
  307.     end
  308.     @load_window.update
  309.     load_update
  310.   end
  311. end
  312. #-------------------------------------------------------------------------------
  313. class Window_ShopNumber < Window_Selectable
  314.   include VIPArcher::Load
  315.   attr_accessor :buy_or_sell                    #买入的标志
  316.   #--------------------------------------------------------------------------
  317.   # ● 刷新
  318.   #--------------------------------------------------------------------------
  319.   alias vip_shopnumber_refresh refresh
  320.   def refresh
  321.     vip_shopnumber_refresh
  322.     draw_current_weight(@item)
  323.   end
  324.   #--------------------------------------------------------------------------
  325.   # ○ 买卖时重量变化的描绘
  326.   #--------------------------------------------------------------------------
  327.   def draw_current_weight(item)
  328.     current = $game_party.current_load
  329.     weight = current + item.load * @number * (@buy_or_sell ? 1 : -1)
  330.     width = contents_width - 8
  331.     cx = text_size(@currency_unit).width
  332.     change_color(system_color)
  333.     draw_text(4, y + 60, width, line_height, "#{Load_Name}")
  334.     change_color(normal_color)
  335.     wt = "#{weight} / #{$game_party.total_load}"
  336.     draw_text(4, y + 60, width, line_height, wt, 2)
  337.   end
  338. end
  339. #-------------------------------------------------------------------------------
  340. class Window_ShopStatus < Window_Base
  341.   include VIPArcher::Load
  342.   #--------------------------------------------------------------------------
  343.   # ● 刷新
  344.   #--------------------------------------------------------------------------
  345.   alias vip_shopstatus_refresh refresh
  346.   def refresh
  347.     vip_shopstatus_refresh
  348.     draw_weight_occupy(4, 24)
  349.   end
  350.   #--------------------------------------------------------------------------
  351.   # ● 绘制持负重信息
  352.   #--------------------------------------------------------------------------
  353.   def draw_weight_occupy(x, y)
  354.     rect = Rect.new(x, y, contents.width - 4 - x, line_height)
  355.     change_color(system_color)
  356.     draw_text(rect, "#{Load_Name}", 3)
  357.     change_color(normal_color)
  358.     weight = "#{$game_party.current_load}/#{$game_party.total_load}"  #重量/MAX重量
  359.     draw_text(rect, weight, 2)
  360.     @temp_load = $game_party.current_load
  361.   end
  362. end
  363. #==============================================================================
  364. # ■ 获取队伍最大负重
  365. #==============================================================================
  366. class Game_Party < Game_Unit
  367.   include VIPArcher::Load
  368.   #--------------------------------------------------------------------------
  369.   # ● 定义实例变量
  370.   #--------------------------------------------------------------------------
  371.   attr_accessor :current_load, :load_trade_item     #负重
  372.   #--------------------------------------------------------------------------
  373.   # ● 初始化对象
  374.   #--------------------------------------------------------------------------
  375.   alias load_initialize initialize
  376.   def initialize
  377.     load_initialize
  378.     total_load
  379.     @current_load = 0
  380.     @total_load = 0
  381.   end
  382.   #--------------------------------------------------------------------------
  383.   # ● 获取队伍最大负重
  384.   #--------------------------------------------------------------------------
  385.   def total_load
  386.     return $game_variables[Load_Var] if Load_Var > 0
  387.     all_members.inject(0) {|total,actor| total + actor.load }
  388.   end
  389.   #--------------------------------------------------------------------------
  390.   # ● 判断物品负重是否已满
  391.   #--------------------------------------------------------------------------
  392.   def load_max?
  393.     return false if @current_load == 0
  394.     @current_load >= total_load
  395.   end
  396.   #--------------------------------------------------------------------------
  397.   # ● 获取队伍的总装备重量
  398.   #--------------------------------------------------------------------------
  399. #  def equiptotal
  400. #    load=0
  401. #    for i in 1..$data_system.party_members.clone.size
  402. #    load += $game_actors[i].equip_weight
  403. #    end
  404. #    return load
  405. #  end  
  406.   #--------------------------------------------------------------------------
  407.   # ● 判断装备负重是否已满##################################
  408.   #--------------------------------------------------------------------------
  409.   def eload_max?
  410.    max=0
  411.    for i in 1..$data_system.party_members.clone.size
  412.    max+=1 if $game_actors[i].equip_weight <= $game_actors[i].equip_weightmax
  413.    return false if max == $data_system.party_members.clone.size
  414.    end
  415. end  
  416.   #--------------------------------------------------------------------------
  417.   # ● 增加/减少物品时计算负重
  418.   #--------------------------------------------------------------------------
  419.   alias load_gain_item gain_item
  420.   def gain_item(item, n, include_equip = false)
  421.     return if item.nil?
  422.     load_gain_item(item, n, include_equip)
  423.     @current_load += item.load * n if !@load_trade_item
  424.   end
  425. end
  426. #-------------------------------------------------------------------------------
  427. class Game_Actor < Game_Battler
  428.   include VIPArcher::Load
  429.   #--------------------------------------------------------------------------
  430.   # ● 装备时不计算负重的增减 * 方法覆盖
  431.   #     new_item : 取出的物品
  432.   #     old_item : 放入的物品
  433.   #--------------------------------------------------------------------------
  434.   def trade_item_with_party(new_item, old_item)
  435.     return false if new_item && !$game_party.has_item?(new_item)
  436.     $game_party.load_trade_item = true if Equip_SW == true
  437.     $game_party.gain_item(old_item, 1)
  438.     $game_party.lose_item(new_item, 1)
  439.     $game_party.load_trade_item = false if Equip_SW == true
  440.     return true
  441.   end
  442.   #--------------------------------------------------------------------------
  443.   # ● 获取角色的负重上限
  444.   #--------------------------------------------------------------------------
  445.   def load
  446.     eval(Load_Eval).to_i
  447.   end
  448. end
  449. #==============================================================================
  450. # ■ 增减物品时判断负重
  451. #==============================================================================
  452. class Game_Interpreter
  453.   include VIPArcher::Load
  454.   #--------------------------------------------------------------------------
  455.   # ● 增减道具
  456.   #--------------------------------------------------------------------------
  457.   alias load_command_126 command_126
  458.   def command_126
  459.     n = operate_value(@params[1], @params[2], @params[3])
  460.     return command_115 if check_load(@params[0], 0, n) && Stop_SW
  461.     load_command_126
  462.   end
  463.   #--------------------------------------------------------------------------
  464.   # ● 增減武器
  465.   #--------------------------------------------------------------------------
  466.   alias load_command_127 command_127
  467.   def command_127
  468.     n = operate_value(@params[1], @params[2], @params[3])
  469.     return command_115 if check_load(@params[0], 1, n) && Stop_SW
  470.     load_command_127
  471.   end
  472.   #--------------------------------------------------------------------------
  473.   # ● 增減防具
  474.   #--------------------------------------------------------------------------
  475.   alias load_command_128 command_128
  476.   def command_128
  477.     n = operate_value(@params[1], @params[2], @params[3])
  478.     return command_115 if check_load(@params[0], 2, n) && Stop_SW
  479.     load_command_128
  480.   end
  481.   #--------------------------------------------------------------------------
  482.   # ● 增减物品超重时提示
  483.   #--------------------------------------------------------------------------
  484.   def check_load(item_id, type, n)
  485.     case type
  486.     when 0; item = $data_items[item_id]
  487.     when 1; item = $data_weapons[item_id]
  488.     when 2; item = $data_armors[item_id]
  489.     end
  490.     if (((item.load * n) + $game_party.current_load) > $game_party.total_load)
  491.       $game_message.texts.push("#{Message}") if $game_message.visible != true
  492.       $game_message.visible = true
  493.     end
  494.     return (((item.load * n) + $game_party.current_load) > $game_party.total_load)
  495.   end
  496.   #--------------------------------------------------------------------------
  497.   # ● 更改负重
  498.   #--------------------------------------------------------------------------
  499.   def current_load(current_load,assign = false)
  500.     if assign
  501.       $game_party.current_load = current_load
  502.     else
  503.       $game_party.current_load += current_load
  504.     end
  505.   end
  506. end
  507. #==============================================================================
  508. # ★ 满负重时限制行动 ★
  509. #==============================================================================
  510. class Game_Player < Game_Character
  511.   include VIPArcher::Load
  512.   #--------------------------------------------------------------------------
  513.   # ● 判定是否可以移动###################
  514.   #--------------------------------------------------------------------------
  515.   alias load_movable? movable?
  516.   def movable?
  517.     return false if $game_party.load_max? && !Movable
  518.     return false if $game_party.eload_max? && !Movable ###################
  519.     load_movable?
  520.   end
  521. end
  522. #==============================================================================
  523. # ★ 满负重时降低移动速度 ★
  524. #==============================================================================
  525. class Game_CharacterBase
  526.   include VIPArcher::Load
  527.   #--------------------------------------------------------------------------
  528.   # ● 获取移动速度(判断是否跑步)################
  529.   #--------------------------------------------------------------------------
  530.   alias load_real_move_speed real_move_speed
  531.   def real_move_speed
  532.     return Move_Speed if $game_party.load_max? && Movable
  533.     return Move_Speed if $game_party.eload_max? && Movable ################
  534.     load_real_move_speed
  535.   end
  536. end
  537. #==============================================================================
  538. # ★ 满负重时限制购买 ★
  539. #==============================================================================
  540. class Window_ShopBuy < Window_Selectable
  541.   #--------------------------------------------------------------------------
  542.   # ● 查询商品是否可买
  543.   #--------------------------------------------------------------------------
  544.   alias load_enable? enable?
  545.   def enable?(item)
  546.     load_enable?(item) && !$game_party.load_max?
  547.   end
  548. end
  549. #==============================================================================
  550. # ★ 根据负重设定可购买的物品数量 ★
  551. #==============================================================================
  552. class Scene_Shop < Scene_MenuBase
  553.   #--------------------------------------------------------------------------
  554.   # ● 指令“买入”
  555.   #--------------------------------------------------------------------------
  556.   alias vip_load_command_buy command_buy
  557.   def command_buy
  558.     vip_load_command_buy
  559.     @number_window.buy_or_sell = true
  560.   end
  561.   #--------------------------------------------------------------------------
  562.   # ● 指令“卖出”
  563.   #--------------------------------------------------------------------------
  564.   alias vip_load_command_sell command_sell
  565.   def command_sell
  566.     vip_load_command_sell
  567.     @number_window.buy_or_sell = false
  568.   end
  569.   #--------------------------------------------------------------------------
  570.   # ● 获取可以买入的最大值
  571.   #--------------------------------------------------------------------------
  572.   alias load_max_buy max_buy
  573.   def max_buy
  574.     vip = @item.load == 0 ? load_max_buy : ($game_party.total_load -
  575.     $game_party.current_load) / @item.load
  576.     [load_max_buy,vip].min
  577.   end
  578. end
复制代码
梦石
3
星屑
7346
在线时间
609 小时
注册时间
2019-9-15
回帖
112

R考场第七期金奖

发表于 2020-4-10 02:47:18 | 显示全部楼层
本帖最后由 Cupidk爱呗茶 于 2020-4-10 03:01 编辑

虽说测试空白工程没有发现问题 但是还是先说声抱歉啦【确实技术这方面小茶还需要学习 可能某些地方写法真的不太对
不过LZ有需要的话可以贴出卡顿的工程 小茶会尽量解决的 【因为可能涉及到脚本冲突什么的
********
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部