设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1412|回复: 4
打印 上一主题 下一主题

[已经过期] 战斗移位的”物理式“攻击法术怎么做

[复制链接]

Lv3.寻梦者

梦石
0
星屑
1556
在线时间
626 小时
注册时间
2010-8-5
帖子
451
跳转到指定楼层
1
发表于 2014-8-5 15:20:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
用了战斗移位系统,怎么让角色使用A技能的时候,先移动,再显示动画,再移动回来。意思就是如何写:当A技能发动的时候,触发战斗移位效果

Lv2.观梦者 (版主)

脚本白痴

梦石
0
星屑
412
在线时间
902 小时
注册时间
2007-7-9
帖子
1403
2
发表于 2014-8-5 16:13:01 | 只看该作者
虽然我不会,但你脚本也没发出来……

正统向RPG-大雄的高井山奇谈
https://rpg.blue/thread-369758-1-1.html
哆啦A梦RTP风格素材
https://rpg.blue/forum.php?mod=viewthread&tid=394608
回复 支持 反对

使用道具 举报

Lv1.梦旅人

薄凉看客

梦石
0
星屑
50
在线时间
1269 小时
注册时间
2010-6-20
帖子
1316
3
发表于 2014-8-6 22:36:09 | 只看该作者
神思真移位??
如果是的话 找到 Scene_Battle 4    400行左右  刷新画面 (主回合步骤 3 : 行动方动画) 那里
  1. if @active_battler.current_action.basic == 0 and
  2.       @active_battler.current_action.kind == 0
复制代码
改为
  1. if (@active_battler.current_action.basic == 0 and
  2.       @active_battler.current_action.kind == 0) or
  3.       (@active_battler.current_action.kind == 1 and
  4.       [57, 61, 65].include?(@active_battler.current_action.skill_id))
复制代码
下方 修改后的 465行左右 找到 刷新画面 (主回合步骤 5 : 显示伤害)
类似的
条件改为
  1. if @active_battler.current_action.basic == 0 and
  2.       @active_battler.current_action.kind == 0 or
  3.       (@active_battler.current_action.kind == 1 and
  4.       [57, 61, 65].include?(@active_battler.current_action.skill_id))
复制代码
这样当角色在发动 id 为 57 61 65的特技(默认的十字斩,扫荡,破坏力量)时
角色就会移位,当作物理技能处理

评分

参与人数 1星屑 +66 收起 理由
RyanBern + 66 塞糖

查看全部评分

回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1556
在线时间
626 小时
注册时间
2010-8-5
帖子
451
4
 楼主| 发表于 2014-8-6 22:56:50 | 只看该作者
恐惧剑刃 发表于 2014-8-6 22:36
神思真移位??
如果是的话 找到 Scene_Battle 4    400行左右  刷新画面 (主回合步骤 3 : 行动方动画) 那 ...
  1.       while @_move_duration > 0
  2.         Graphics.update
  3.         Input.update
  4.         @spriteset.update
  5.         tag = [@target_battlers[0].screen_x,@target_battlers[0].screen_y]
  6.         move(@active_battler, tag, ox, oy)
  7.         @_move_duration -= 1
  8.       end
复制代码
报错
回复 支持 反对

使用道具 举报

Lv1.梦旅人

薄凉看客

梦石
0
星屑
50
在线时间
1269 小时
注册时间
2010-6-20
帖子
1316
5
发表于 2014-8-6 23:02:11 | 只看该作者
你确定?放在Scene_Battle 4 以后
  1. class Scene_Battle
  2.   #--------------------------------------------------------------------------
  3.   # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  4.   #--------------------------------------------------------------------------
  5.   def update_phase4_step3
  6.     #========================================================================
  7.     #只是改了条件而已★★★★★★★★★★★★★
  8.     if (@active_battler.current_action.basic == 0 and
  9.       @active_battler.current_action.kind == 0) or
  10.       (@active_battler.current_action.kind == 1 and
  11.       [57, 61, 65].include?(@active_battler.current_action.skill_id))
  12.       #=============================★★★★★★★★★★★★★
  13.       @active_battler.startactive = "移动"
  14.       @_move_duration = Move_Duration
  15.       ox,oy = @active_battler.screen_x,@active_battler.screen_y
  16.       @oldxy = [@active_battler.screen_x,@active_battler.screen_y]
  17.       while @_move_duration > 0
  18.         Graphics.update
  19.         Input.update
  20.         @spriteset.update
  21.         tag = [@target_battlers[0].screen_x,@target_battlers[0].screen_y]
  22.         move(@active_battler, tag, ox, oy)
  23.         @_move_duration -= 1
  24.       end
  25.       @active_battler.startactive = "待机"
  26.     end
  27.     # 行动方动画 (ID 为 0 的情况下是白色闪烁)
  28.     if @animation1_id == 0
  29.       @active_battler.white_flash = true
  30.     else
  31.       @active_battler.animation_id = @animation1_id
  32.       @active_battler.animation_hit = true
  33.     end
  34.     for target in @target_battlers
  35.       target.animation_id = @animation2_id
  36.       target.animation_hit = (target.damage != "Miss")
  37.     end
  38.     # 移至步骤 4
  39.     @phase4_step = 4
  40.   end
  41.   #--------------------------------------------------------------------------
  42.   # ● 刷新画面 (主回合步骤 5 : 显示伤害)
  43.   #--------------------------------------------------------------------------
  44.   def update_phase4_step5
  45.     # 隐藏帮助窗口
  46.     @help_window.visible = false
  47.    
  48.     #========================================================================
  49.     #只是改了条件而已★★★★★★★★★★★★★
  50.     if (@active_battler.current_action.basic == 0 and
  51.       @active_battler.current_action.kind == 0) or
  52.       (@active_battler.current_action.kind == 1 and
  53.       [57, 61, 65].include?(@active_battler.current_action.skill_id))
  54.       #=============================★★★★★★★★★★★★★
  55.       @active_battler.startactive = "返回"
  56.       @_move_duration = Move_Duration
  57.       ox,oy = @active_battler.screen_x - @active_battler.movex,\
  58.       @active_battler.screen_y - @active_battler.movey
  59.       while @_move_duration > 0
  60.         Graphics.update
  61.         Input.update
  62.         @spriteset.update
  63.         move(@active_battler, @oldxy, ox, oy, true)
  64.         @_move_duration -= 1
  65.       end
  66.       @active_battler.startactive = "待机"
  67.     end
  68.    
  69.     @phase4_step = 6
  70.     return
  71.   end
  72. end
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-10-1 02:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表