游侠NETSHOW论坛

标题: 生命上限怎么改不了呢? [打印本页]

作者: chaorenzhiwang    时间: 2016-1-27 19:34:24     标题: 生命上限怎么改不了呢?

改了999个九转熊蛇,四万多的生命值

可是一旦战斗或者学习武功后,就又重新跌倒19999了



作者: chaorenzhiwang    时间: 2016-1-27 19:35:49

0.83版本
作者: who961    时间: 2016-1-27 19:58:43

佩服大侠,修改游戏的居然还能到论坛求助。。。
作者: chaorenzhiwang    时间: 2016-1-27 20:02:22

who961 发表于 2016-1-27 19:58
佩服大侠,修改游戏的居然还能到论坛求助。。。



作者: 2285426718    时间: 2016-1-27 20:35:53

渣渣
作者: 浅川慕然    时间: 2016-1-27 20:42:58

一句话,傻逼滚
作者: LIUHAO7977    时间: 2016-1-27 20:48:09

{:13_463:}修改退散
作者: a1259a    时间: 2016-1-27 21:49:07

怎么可以如此为难色大的信徒啊。血内的极限是19999(不装备内功、特技、身法时)
作者: 须臾花满径2    时间: 2016-1-27 21:53:11

其实也没必要那么严苛,毕竟已经是第N版了,许多人都玩过好多次,老实说,这游戏前期已经变得极其无聊了,而且极为冗长,若不是想要体验一下新增剧情,真没信心重开了,所以说,改改也没啥。
作者: 须臾花满径2    时间: 2016-1-27 21:58:47

一款游戏而言,随着版本号的提高,适当提供一些DIY包括修改的机会,也是增强游戏生命力的有效手段,比如暗荣就深谙此道,PK版一般都提供了官方修改。
作者: chaorenzhiwang    时间: 2016-1-27 22:48:02

须臾花满径2 发表于 2016-1-27 21:58
一款游戏而言,随着版本号的提高,适当提供一些DIY包括修改的机会,也是增强游戏生命力的有效手段,比如暗 ...

改了半天了,始终都是19999和999
求高手指导

# ● 获取 MaxHP
  #--------------------------------------------------------------------------
  def maxhp
    if self.id == 1
    n = [[base_maxhp+cx_plus(1)+ @maxhp_plus, 1].max, 999999].min
    else
     n = [[base_maxhp+@maxhp_plus, 1].max, 999999].min
    end
    for i in @states  #BUFF用 增加值=mdef_rate-100/技能LV
       if skill_learn?(i) and $data_states.hold_turn == 9999
       y = self.skill.level
       n *= (y*($data_states.maxhp_rate - 100.0)/1000.0)+1
       # y /= 10
       #n *= (y+100.0)/ 100.0
       else #debuff
       n *= $data_states.maxhp_rate/100.0
       end
    end
    n = [[Integer(n), 1].max, 999999].min
    return n
  end

  #--------------------------------------------------------------------------
  # ● 获取 MaxSP
  #--------------------------------------------------------------------------
  def maxsp
   if self.id == 1
    n = [[base_maxsp+cx_plus(2)+ @maxsp_plus, 1].max, 999999].min
   else
    n = [[base_maxsp + @maxsp_plus, 1].max, 999999].min
   end
     for i in @states  #BUFF用 增加值=mdef_rate-100/技能LV
       if skill_learn?(i) and $data_states.hold_turn == 9999
       y = self.skill.level
       n *= (y*($data_states.maxsp_rate - 100.0)/1000.0)+1
       # y /= 10
       #n *= (y+100.0)/ 100.0
       else #debuff
       n *= $data_states.maxsp_rate/100.0
       end
    end
    n = [[Integer(n), 1].max, 999999].min
    return n
  end

作者: chaorenzhiwang    时间: 2016-1-27 22:48:32

a1259a 发表于 2016-1-27 21:49
怎么可以如此为难色大的信徒啊。血内的极限是19999(不装备内功、特技、身法时) ...

改了半天了,始终都是19999和999
求高手指导

# ● 获取 MaxHP
  #--------------------------------------------------------------------------
  def maxhp
    if self.id == 1
    n = [[base_maxhp+cx_plus(1)+ @maxhp_plus, 1].max, 999999].min
    else
     n = [[base_maxhp+@maxhp_plus, 1].max, 999999].min
    end
    for i in @states  #BUFF用 增加值=mdef_rate-100/技能LV
       if skill_learn?(i) and $data_states.hold_turn == 9999
       y = self.skill.level
       n *= (y*($data_states.maxhp_rate - 100.0)/1000.0)+1
       # y /= 10
       #n *= (y+100.0)/ 100.0
       else #debuff
       n *= $data_states.maxhp_rate/100.0
       end
    end
    n = [[Integer(n), 1].max, 999999].min
    return n
  end

  #--------------------------------------------------------------------------
  # ● 获取 MaxSP
  #--------------------------------------------------------------------------
  def maxsp
   if self.id == 1
    n = [[base_maxsp+cx_plus(2)+ @maxsp_plus, 1].max, 999999].min
   else
    n = [[base_maxsp + @maxsp_plus, 1].max, 999999].min
   end
     for i in @states  #BUFF用 增加值=mdef_rate-100/技能LV
       if skill_learn?(i) and $data_states.hold_turn == 9999
       y = self.skill.level
       n *= (y*($data_states.maxsp_rate - 100.0)/1000.0)+1
       # y /= 10
       #n *= (y+100.0)/ 100.0
       else #debuff
       n *= $data_states.maxsp_rate/100.0
       end
    end
    n = [[Integer(n), 1].max, 999999].min
    return n
  end





欢迎光临 游侠NETSHOW论坛 (https://game.ali213.net/) Powered by Discuz! X2