level 9
我用的样板是7630
1.那个我想在使用炸弹时插入一个对于怪物的爆炸动画,也就是在勇士面向的下一个格子显示动画,不会呀。
2.另一个就是给一个怪物加上阻击属性,然后设置靠近主角,但靠近后并没有阻击,求解决方案。
2014年02月12日 11点02分
1
level 8
怪物属性什么的表示不懂。什么效果啊?你用别的事件替代一下也许可行?
那个动画……我也在研究……一样不懂。求大触指导
2014年02月12日 11点02分
3
就是怪物接近主角,阻击主角扣血,同时怪物后退一个,又继续接近主角,又阻击。反复循环,直到主角把怪物逼到墙角杀死。
2014年02月12日 12点02分
level 12
使用物品处理,显示动画OK。
第二个你把怪物数据库的属性发出来
2014年02月12日 12点02分
4
1.不知道是在主角上显示还是本事件显示? 2.和7630的一样。没有修改。
2014年02月12日 14点02分
level 12
1、设定一个指定坐标显示动画……
2、在处理事件的脚本库里加入条件分歧……
应该是这样吧……
2014年02月12日 12点02分
5
1.指定的坐标要正好是勇士面向的前面。 2.我脚本不太熟,容大神发个脚本,举个栗子!
2014年02月12日 14点02分
回复 757833328 :【嘛……首先人家不是大神……只是脚本学习者(zha)】1、可以在使用成功后加入这么一句:$game_map.events[@iid].animation_id = 【动画ID】2、……也许是这样吧(见楼下)
2014年02月12日 14点02分
level 12
if $game_party.item_number($game_variables[120])<1#没有阻止退敌的物品时
for i in 0...$game_variables[119].size
xx=($game_map.events[$game_variables[119][i]].x-$game_player.x).abs
yy=($game_map.events[$game_variables[119][i]].y-$game_player.y).abs
kx=$game_map.events[$game_variables[119][i]].x
ky=$game_map.events[$game_variables[119][i]].y
px=$game_player.x
py=$game_player.y
ee=$game_map.events[$game_variables[119][i]].event.name[6,3].to_i
if (xx==1 and yy<1) or (xx<1 and yy==1)
aa=$data_enemies[ee].name.split('/')[1].to_i
$game_actors[$game_variables[1]+1].hp-=aa
$game_player.animation_id=3#显示动画3
if $game_actors[$game_variables[1]+1].hp<=0
$game_variables[19]=1
$game_temp.common_event_id = 12#生命小于0,调用1号结局
else
if py-ky>0
$game_map.events[$game_variables[119][i]].move_up
end
if ky-py>0
$game_map.events[$game_variables[119][i]].move_down
end
if px-kx>0
$game_map.events[$game_variables[119][i]].move_left
end
if kx-px>0
$game_map.events[$game_variables[119][i]].move_right
end
all=$game_map.events[$game_variables[119][i]].event.id
if $movedevents.include?($game_map.map_id)==false
$movedevents[$game_map.map_id]=[]
end
$movedevents[$game_map.map_id][all]=$game_map.he_at(all)
end
end
end
end#退敌怪
把以上脚本加入▲●Game_Event中,大概是在46行新建一个行然后加入吧……
2014年02月12日 14点02分
6
这是第一问题的解还是第二问的?
2014年02月12日 14点02分
回复 757833328 :二问……
2014年02月12日 14点02分
回复 757833328 :问题已解决,感激不尽啊!
2014年02月12日 14点02分
回复 757833328 :额...一问解决了,2问似乎没效果
2014年02月12日 14点02分