Project1

标题: 怎样设置级高后打低级怪只拿1的经验值? [打印本页]

作者: saeyfei    时间: 2008-8-28 21:51
标题: 怎样设置级高后打低级怪只拿1的经验值?
跟怪的级别拉得越多经验值越少的那种,级别差距到一定值时只拿1的经验~
{/ll}{/ll}{/ll}急急急~~~求高人赐教! [LINE]1,#dddddd[/LINE]此贴于 2008-8-30 11:43:42 被版主darkten提醒,请楼主看到后对本贴做出回应。 [LINE]1,#dddddd[/LINE]此贴于 2008-9-1 12:21:43 被版主darkten提醒,请楼主看到后对本贴做出回应。 [LINE]1,#dddddd[/LINE]版务信息:版主帮忙结贴~
作者: 黑鏻    时间: 2008-8-28 21:55
怪物常换就行,设置相同的怪物,可是其经验值不同,

关于自己等级的判断可以这样设置
条件分歧:[一号人物]已经学会了[一号特技]
作者: 灯笼菜刀王    时间: 2008-8-28 23:07
GAME ENEMY中定义EXP的地方自己加个公式增加减少就可以了。

具体做法也挺麻烦-。- 要先新建个怪物的数值用来定义怪物的强弱,然后在用它和角色等级对比,根据差额把最后获得的经验乘上百分比就可以了。

人懒,不想做这些无意义的事,所以只负责思路不负责实例,我闪~~~~~~~~~` [LINE]1,#dddddd[/LINE]版主对此帖的认可:『正确的思路,把这些运用到楼下给的脚本里面就行了...补上一点奖励积分,感谢你的热心帮忙...』,积分『+200』。
作者: 最後一滴淚    时间: 2008-8-29 02:27
好好的利用状态里的“不能获得exp”的功能,

引用某君的话
for i in 0...$game_party.actors.size
actor = $game_party.actors
case $game_map.map_id
when 1
  if actor.level <= 10
   actor.exp += exp             #增加经验exp
  end
when 2
  if actor.level > 10 and actor.level <= 20
   actor.exp += exp
  end
when 3
  if actor.level > 20 and actor.level <= 30
   actor.exp += exp
  end
when 4
  if actor.level > 30 and actor.level <= 40
   actor.exp += exp
  end
when 5
  if actor.level > 40 and actor.level <= 50
   actor.exp += exp
  end
end
end

这个也行... [LINE]1,#dddddd[/LINE]系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
作者: saeyfei    时间: 2008-8-31 20:22
楼上的能具体说明下嘛?{/fd}
作者: 最後一滴淚    时间: 2008-9-1 01:36
for i in 0...$game_party.actors.size
actor = $game_party.actors
case $game_map.map_id
when 1
if actor.level <= 10
  actor.exp += exp             #增加经验exp
end
when 2
if actor.level > 10 and actor.level <= 20
  actor.exp += exp
end
when 3
if actor.level > 20 and actor.level <= 30
  actor.exp += exp
end
when 4
if actor.level > 30 and actor.level <= 40
  actor.exp += exp
end
when 5
if actor.level > 40 and actor.level <= 50
  actor.exp += exp
end
end
end

搜索脚本"获得 EXP"找到
for i in 0...$game_party.actors.size
      actor = $game_party.actors
      if actor.cant_get_exp? == false
        last_level = actor.level
        actor.exp += exp
        if actor.level > last_level
          @status_window.level_up(i)
        end
      end
    end
把这断删掉把再把上面的复制进去..




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1