赞 | 153 |
VIP | 10 |
好人卡 | 39 |
积分 | 93 |
经验 | 146191 |
最后登录 | 2024-5-6 |
在线时间 | 2504 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 9280
- 在线时间
- 2504 小时
- 注册时间
- 2011-5-20
- 帖子
- 15389
|
- #--------------------------------------------------------------------------
- # ● require Taroxd基础设置
- # 使用方法:在装备/技能/角色/职业上备注 <attackskill x> / <guardskill x>
- #--------------------------------------------------------------------------
- compatibility = false # 如果和战斗系统发生冲突,请尝试设为 true
- class RPG::BaseItem
- note_i :attack_skill, false
- note_i :guard_skill, false
- end
- class Game_Actor < Game_Battler
- #--------------------------------------------------------------------------
- # ● 获取普通攻击的技能 ID
- #--------------------------------------------------------------------------
- def_chain :attack_skill_id do |old|
- note_objects {|item| return item.attack_skill if item.attack_skill }
- old.call
- end
- #--------------------------------------------------------------------------
- # ● 获取防御的技能 ID
- #--------------------------------------------------------------------------
- def_chain :guard_skill_id do |old|
- note_objects {|item| return item.guard_skill if item.guard_skill }
- old.call
- end
- end
- unless compatibility
- class Scene_Battle < Scene_Base
- #--------------------------------------------------------------------------
- # ● 普通攻击无需选择目标的情况
- #--------------------------------------------------------------------------
- def_chain :command_attack do |old|
- skill = $data_skills[BattleManager.actor.attack_skill_id]
- if !skill.need_selection?
- BattleManager.actor.input.set_attack
- next_command
- elsif skill.for_opponent?
- old.call
- else
- BattleManager.actor.input.set_attack
- select_actor_selection
- end
- end
- #--------------------------------------------------------------------------
- # ● 防御需要选择目标的情况
- #--------------------------------------------------------------------------
- def_chain :command_guard do |old|
- skill = $data_skills[BattleManager.actor.guard_skill_id]
- if skill.need_selection?
- BattleManager.actor.input.set_guard
- skill.for_opponent? ? select_enemy_selection : select_actor_selection
- else
- old.call
- end
- end
- end
- class Window_ActorCommand < Window_Command
- #--------------------------------------------------------------------------
- # ● 更改攻击指令名称
- #--------------------------------------------------------------------------
- def add_attack_command
- name = $data_skills[@actor.attack_skill_id].name
- add_command(name, :attack, @actor.attack_usable?)
- end
- #--------------------------------------------------------------------------
- # ● 更改防御指令名称
- #--------------------------------------------------------------------------
- def add_guard_command
- name = $data_skills[@actor.guard_skill_id].name
- add_command(name, :guard, @actor.guard_usable?)
- end
- end
- end # unless compatibility
复制代码 @taroxd 的东西- -|||
你把普通攻击的那个技能复制一个,里面放吸血效果,武器里设置装备爱心金刚击枪后习得这个技能,这样的话你的普通攻击就是那个技能而不是1号技能了 |
评分
-
查看全部评分
|