赞 | 0 |
VIP | 104 |
好人卡 | 0 |
积分 | 1 |
经验 | 16939 |
最后登录 | 2023-4-27 |
在线时间 | 1387 小时 |
Lv1.梦旅人 追从自然的旅行者 奇特空·煦
- 梦石
- 0
- 星屑
- 107
- 在线时间
- 1387 小时
- 注册时间
- 2010-12-31
- 帖子
- 4944
|
本帖最后由 Kimu 于 2011-7-28 23:12 编辑
wu2671437 发表于 2011-7-28 16:46
知道啊,但不知怎样修改啊
行,不过你等一等,我现在不在windows系统下,没法看
===========================================- #====================================================
- # 战斗胜利获得额外经验 by kimu
- #====================================================
- BOUNSEXP = 3 # 每个等级差获得的经验
- #使用方法:
- # 在敌人的注释中写上该敌人的等级,
- # 每个敌人的等级在战斗胜利时会和队伍等级作比较
- # (队伍等级 = 各角色登记之合 整除 角色数)
- # 等级差将会影响经验的获得
- class Game_Enemy < Game_Battler
- attr_accessor :level
-
- def initialize(index, enemy_id)
- super()
- @index = index
- @enemy_id = enemy_id
- enemy = $data_enemies[@enemy_id]
- @original_name = enemy.name
- @letter = ''
- @plural = false
- @screen_x = 0
- @screen_y = 0
- @battler_name = enemy.battler_name
- @battler_hue = enemy.battler_hue
- @hp = maxhp
- @mp = maxmp
- self.level = enemy.note.to_i
- end
-
-
-
- end
- class Game_Party < Game_Unit
-
- def level
- total = 0
- for i in self.members
- total += i.level
- end
- b = self.members.size
- return (total / b)
- end
- end
- class Game_Troop < Game_Unit
-
- def exp_total
- exp = 0
- for enemy in dead_members
- exp += enemy.exp unless enemy.hidden
- a = enemy.level - $game_party.level
- exp += a * BOUNSEXP
- end
- return exp
- end
- end
复制代码 |
|