赞 | 0 |
VIP | 0 |
好人卡 | 5 |
积分 | 1 |
经验 | 11941 |
最后登录 | 2018-9-22 |
在线时间 | 347 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 143
- 在线时间
- 347 小时
- 注册时间
- 2010-7-7
- 帖子
- 128
|
本帖最后由 yjl494356020 于 2013-4-28 09:03 编辑
在“SideViewアクション設定”脚本中,大概850行左右,有个“スキル系”,也就是“技能系统”,这些是管理技能动画的,也就是不同技能的表现形式。
如果按楼主所说,想制作一个跑到敌人身边攻击的技能,那么在此处加入一段:
# ――スキル系――― "汎用スキル" => ["特技発動","武器振りR","ダメージアニメ","座標リセット"], "汎用魔法" => ["魔法発動","武器振りR","ダメージアニメ","座標リセット"], "水鉄砲" => ["特技発動","武器振りR","水鉄砲発射","座標リセット"], "武器投げ" => ["特技発動","Bow1","武器振りR","6","待機固定","武器投げ開始","武器投げ戻し","座標リセット"], "カットイン攻撃" => ["特技発動","カットイン","攻撃","座標リセット"], "ムービー攻撃" => ["特技発動","待機固定","死亡フラグ動画","通常攻撃始め","武器振りR","通常攻撃終わり"], "オオカミ変身" => ["特技発動","anime(110,false)","オオカミに変身","待機固定","120","座標リセット"], "5回攻撃" => ["特技発動","コラプス禁止","弓除外","敵前移動","攻撃","攻撃","攻撃","攻撃","攻撃","コラプス禁止解除","座標リセット"], "スキル派生" => ["武器投げ","多段攻撃に派生","斬り攻撃"], "背景変更攻撃" => ["魔法発動","武器振りR","背景を宇宙に","ダメージアニメ","背景宇宙解除","座標リセット"], "ピクチャ攻撃" => ["魔法発動","魔方陣表示","武器振りR","anime(80,false)","60","シェイク大","対象アニメ","魔方陣消去","座標リセット"], "暗転攻撃" => ["特技発動","自分とターゲット以外暗転","se('Laser',150)", "残像ON","敵前移動","anime(35,false)","敵後移動","対象アニメ", "武器振りR","20","色調初期化","座標リセット","残像OFF"], "空中攻撃" => ["特技発動","Bow1","一歩前ジャンプ","叩き付け前ジャンプ", "待機固定","左1回転","10","anime(117,false)","叩き付け", "対象アニメ","シェイク中","強制","縦揺れ","20", "一歩後ジャンプ","座標リセット"], "近身攻撃" => ["特技発動","敵前移動","武器振りR","ダメージアニメ", "シェイク中","30","座標リセット"], "远程攻撃" => ["特技発動","武器振りR","ダメージアニメ","シェイク中", "30","座標リセット"], "魔法攻撃" => ["魔法発動","武器振りR","ダメージアニメ","シェイク中", "30","座標リセット"],
# ――スキル系―――
"汎用スキル" => ["特技発動","武器振りR","ダメージアニメ","座標リセット"],
"汎用魔法" => ["魔法発動","武器振りR","ダメージアニメ","座標リセット"],
"水鉄砲" => ["特技発動","武器振りR","水鉄砲発射","座標リセット"],
"武器投げ" => ["特技発動","Bow1","武器振りR","6","待機固定","武器投げ開始","武器投げ戻し","座標リセット"],
"カットイン攻撃" => ["特技発動","カットイン","攻撃","座標リセット"],
"ムービー攻撃" => ["特技発動","待機固定","死亡フラグ動画","通常攻撃始め","武器振りR","通常攻撃終わり"],
"オオカミ変身" => ["特技発動","anime(110,false)","オオカミに変身","待機固定","120","座標リセット"],
"5回攻撃" => ["特技発動","コラプス禁止","弓除外","敵前移動","攻撃","攻撃","攻撃","攻撃","攻撃","コラプス禁止解除","座標リセット"],
"スキル派生" => ["武器投げ","多段攻撃に派生","斬り攻撃"],
"背景変更攻撃" => ["魔法発動","武器振りR","背景を宇宙に","ダメージアニメ","背景宇宙解除","座標リセット"],
"ピクチャ攻撃" => ["魔法発動","魔方陣表示","武器振りR","anime(80,false)","60","シェイク大","対象アニメ","魔方陣消去","座標リセット"],
"暗転攻撃" => ["特技発動","自分とターゲット以外暗転","se('Laser',150)",
"残像ON","敵前移動","anime(35,false)","敵後移動","対象アニメ",
"武器振りR","20","色調初期化","座標リセット","残像OFF"],
"空中攻撃" => ["特技発動","Bow1","一歩前ジャンプ","叩き付け前ジャンプ",
"待機固定","左1回転","10","anime(117,false)","叩き付け",
"対象アニメ","シェイク中","強制","縦揺れ","20",
"一歩後ジャンプ","座標リセット"],
"近身攻撃" => ["特技発動","敵前移動","武器振りR","ダメージアニメ",
"シェイク中","30","座標リセット"],
"远程攻撃" => ["特技発動","武器振りR","ダメージアニメ","シェイク中",
"30","座標リセット"],
"魔法攻撃" => ["魔法発動","武器振りR","ダメージアニメ","シェイク中",
"30","座標リセット"],
所加入的“近身攻撃”就是楼主所要的跑到敌人面前进行特技攻击的效果,其中“ダメージアニメ”(伤害动画)是显示该技能的动画,“远程攻撃”是原地进行特技攻击,“魔法攻撃”是原地进行魔法攻击。
这里的技能动画设定是多种多样的,可以有很多的改变,比如跳跃,幻影,变身,连续攻击,还可以改变普通攻击的动画,比如把法杖的普通攻击改成一个火球等等。
*注意:要在“SideViewバトラー設定 ”脚本中,大概285行的“スキルアクション”,为你的技能进行分类,比如你制作一个ID为115的技能,那么在此处加入:
#-------------------------------------------------------------------------- # ● スキルアクション #-------------------------------------------------------------------------- def skill_action # スキルIDで指定 case skill_id when 1 # スキル1番は通常攻撃なので、上の武器アクションを実行します return weapon_action when 2 # スキル2番は防御 return "防御" when 3,4,5 # スキル3/4/5番は連続攻撃 return weapon_action when 6 # スキル6番はエネミー逃走 return escape when 7 # スキル7番は様子を見る return "様子見" when 115 return "近身攻撃" end
#--------------------------------------------------------------------------
# ● スキルアクション
#--------------------------------------------------------------------------
def skill_action
# スキルIDで指定
case skill_id
when 1 # スキル1番は通常攻撃なので、上の武器アクションを実行します
return weapon_action
when 2 # スキル2番は防御
return "防御"
when 3,4,5 # スキル3/4/5番は連続攻撃
return weapon_action
when 6 # スキル6番はエネミー逃走
return escape
when 7 # スキル7番は様子を見る
return "様子見"
when 115
return "近身攻撃"
end
|
|