赞 | 0 |
VIP | 1 |
好人卡 | 0 |
积分 | 1 |
经验 | 3179 |
最后登录 | 2013-10-25 |
在线时间 | 140 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 66
- 在线时间
- 140 小时
- 注册时间
- 2012-2-6
- 帖子
- 384
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 无双sxa 于 2012-3-16 12:34 编辑
来源:http://cobbtocs.co.uk/wp- =begin
- Learn Skills by Element use
- by Fomar0153
- Version 1.0
- ----------------------
- Notes
- ----------------------
- No requirements
- Allows you to learn new skills by using skills of the same element.
- ----------------------
- Instructions
- ----------------------
- You will need to edit module Fomar, further instructions
- are located there.
- ----------------------
- Known bugs
- ----------------------
- None
- =end
- module Fomar
- ELEMENTS = []
- # Add/Edit lines like the ones below
- ELEMENTS[3] = {}
- # ELEMENTS[id][uses] = [NEW_SKILL_ID, NEW_SKILL_ID...]
- ELEMENTS[3][50] = [52,53]
- ELEMENTS[3][100] = [54]
- end
- class Game_Actor < Game_Battler
- #--------------------------------------------------------------------------
- # ● Aliases setup
- #--------------------------------------------------------------------------
- alias seu_setup setup
- def setup(actor_id)
- seu_setup(actor_id)
- @element_uses = []
- end
- #--------------------------------------------------------------------------
- # ● New Method add_element_use
- #--------------------------------------------------------------------------
- def add_element_use(id)
- if @element_uses[id] == nil
- @element_uses[id] = 0
- end
- @element_uses[id] += 1
- unless Fomar::ELEMENTS[id][@element_uses[id]] == nil
- for skill in Fomar::ELEMENTS[id][@element_uses[id]]
- learn_skill(skill)
- $game_message.add(@name + ' learns ' + $data_skills[skill].name)
- end
- end
- end
- end
- class Game_Battler < Game_BattlerBase
- #--------------------------------------------------------------------------
- # ● Aliases item_apply
- #--------------------------------------------------------------------------
- alias seu_item_apply item_apply
- def item_apply(user, item)
- seu_item_apply(user, item)
- if user.is_a?(Game_Actor) and item.is_a?(RPG::Skill)
- user.add_element_use(item.damage.element_id)
- end
- end
- end
复制代码 多次使用某种五灵属性的仙术后会自动学到高级仙术。
无法实现五灵复合。 |
评分
-
查看全部评分
|