set_target#设置攻击对象范围
$game_map.push_obj(self)
@x,@y,@c=ream
set_xy #设置位置
$game_map.push_obj(self)
end
def set_xy
@real_x = @x*256
@real_y = @y*256
for i in -@c..@c
for j in -@c..@c
$game_map.ani_play(58,@real_x+i*256,real_y+j*256) if rand(100)<20
end
end
#--------------------------------------------------------------------------
# ●设置攻击对象
#--------------------------------------------------------------------------
def set_target
case @supet
when Game_Player #角色
@target_kinds.push(2) #设置添加敌人类别
when Game_Event
@target_kinds.push(1)
end
end
def attack(target)
if target.change_action"这里填被攻击啦会怎么样?不是这样填,我这是解说")
target.add("这里填被攻击啦会怎么样",20,@supet)
end
target.hp_damage = make_attack_damage_value(@supet,target)*50/10
# target.animation_id = 2
end
end 作者: 逸豫 时间: 2011-2-6 03:07
LZ的方法的确有用~快看,咱明白了Main脚本~