| 赞 | 2 |
| VIP | 2 |
| 好人卡 | 4 |
| 积分 | 1 |
| 经验 | 96076 |
| 最后登录 | 2015-12-27 |
| 在线时间 | 93 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 93 小时
- 注册时间
- 2008-5-16
- 帖子
- 745
|
#--------------------------------------------------------------------------
# ● 刷新角色普通攻击行为
#--------------------------------------------------------------------------
def update_actor_attk
# C按下时
if ((Kboard.trigger?($R_Key_SPACE) or Kboard.trigger?($R_Key_RETURN)) or S[1])and @actor_atktime <= 0
if @actor.weapon_id.between?(50, 65) # and $data_weapons[@actor.weapon_id].rang >= 1
new_x = @x + (@d == 6 ? 1 : @d == 4 ? -1 : 0)
new_y = @y + (@d == 2 ? 1 : @d == 8 ? -1 : 0)
event = $game_map.events[$game_map.check_event(new_x,new_y)]
return if !event.nil? and !event.is_enemy?
rang_atk#(@actor.animation1_id)
return
end
new_x = @x + (@d == 6 ? 1 : @d == 4 ? -1 : 0)
new_y = @y + (@d == 2 ? 1 : @d == 8 ? -1 : 0)
event = $game_map.events[$game_map.check_event(new_x,new_y)]
show_ain(@actor.animation1_id,true)
if $data_weapons[@actor.weapon_id].element_set.include?(17)
tag = []
rang = ARPG_Rangs.new($game_player, 2).rangs
for xy in rang
event = $game_map.events[$game_map.check_event(xy[0],xy[1])]
if !event.nil? and event.maxhp > 0
tag.push(event)
end
end
tag.each{|t|dagame_acon(t,event_damage(@actor, t),@actor.animation2_id)}
end
if $data_weapons[@actor.weapon_id].element_set.include?(18)
tag = []
rang = ARPG_Rangs.new($game_player, 8).rangs
for xy in rang
event = $game_map.events[$game_map.check_event(xy[0],xy[1])]
if !event.nil? and event.maxhp > 0
tag.push(event)
end
end
tag.each{|t|dagame_acon(t,event_damage(@actor, t),@actor.animation2_id)}
end
if !event.nil? and event.maxhp > 0 and @actor_atktime <= 0
@attev = event
dagame_acon(event,event_damage(@actor, event),@actor.animation2_id)
end
end
end
这样修改后即可
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|