Project1
标题:
如何添加横版中弓箭手射箭动作呀
[打印本页]
作者:
zhgwj1984313
时间:
2010-11-6 15:59
提示:
作者被禁止或删除 内容自动屏蔽
作者:
Rion幻音
时间:
2010-11-6 17:35
加下这个……
放进Character文档
woodarrow.png
(3.23 KB, 下载次数: 44)
下载附件
保存到相册
2010-11-6 17:33 上传
在资料库动画里制作个动画在第83号
yumi.png
(1.92 KB, 下载次数: 35)
下载附件
保存到相册
2010-11-6 17:33 上传
#==============================================================================
# ■ Bow Attack Animation Sequence for RPG Tankentai SBS
# 1.3.09
#------------------------------------------------------------------------------
# Script by Mr. Bubble with basis from Kylock's Bow Addon
#==============================================================================
# Adds a new bow animation which allows for a much smoother arrow animation
# compared to Kylock's Bow Addon. This script is designed not to have conflicts
# with Kylock's Bow Addon in case you want to use both.
#
# Updated to properly rotate in back attack battles and a newbie friendly
# array for Skills.
#==============================================================================
# ■ How to Install
#------------------------------------------------------------------------------
# - Requires Animation 83 from the demo placed in the same ID in your project.
# - Requires "woodarrow.png" in .Graphics\Characters.
#==============================================================================
module N01
# Weapon element that grants a bow animation. Default is 5.
BOW_WEAPON_ELEMENT = 5
# Skill IDs you want a bow animation for.
BOW_SKILLS = [145]
# Animation ID for Bow.
BOW_ANIMATION = 83
#------------------------------------------------------------------------------
# Attack Animation Actions
BOW_ANIME = {
"DRAW_POSE" => [ 0, 1, 1, 2, 0, -1, 0, true,"" ],
"DRAW_BOW" => ["anime", BOW_ANIMATION, 0, false, false, false],
"ARROW_ANGLE" => [ 30, 60, 11],
"SHOOT_ARROW" => ["m_a", 0, 0, 0, 15, -10, 0, 0, 0,false,"ARROW_ANGLE"],
# Back attack ANIME objects.
"SHOOT_ARROW(BA)" => ["m_a", 0, 0, 0, 15, -10, 0, 0, 0,false,"ARROW_ANGLE(BA)"],
"ARROW_ANGLE(BA)" => [ 330, 300, 11],
}
ANIME.merge!(BOW_ANIME)
# Action Sequence
BOW_ATTACK_ACTION = {
# Normal sequence
"NEW_BOW_ATTACK" => ["BEFORE_MOVE","DRAW_BOW", "DRAW_POSE", "16",
"SHOOT_ARROW", "12","OBJ_ANIM","16",
"Can Collapse","FLEE_RESET"],
# Back attack sequence
"NEW_BOW_ATTACK(BA)" => ["BEFORE_MOVE","DRAW_BOW", "DRAW_POSE", "16",
"SHOOT_ARROW(BA)", "12","OBJ_ANIM","16",
"Can Collapse","FLEE_RESET"],
}
ACTION.merge!(BOW_ATTACK_ACTION)
end
module RPG
class Weapon
alias bubs_bow_base_action base_action
def base_action
# If "Bow" Element is checked on the weapons tab in the database,
# the new ranged attack action sequence is used.
if $data_weapons[@id].element_set.include?(N01::BOW_WEAPON_ELEMENT) && $back_attack
return "NEW_BOW_ATTACK(BA)" # Back attack
elsif $data_weapons[@id].element_set.include?(N01::BOW_WEAPON_ELEMENT)
return "NEW_BOW_ATTACK" # Normal
end
bubs_bow_base_action
end
alias bubs_bow_flying_graphic flying_graphic
def flying_graphic
if $data_weapons[@id].element_set.include?(N01::BOW_WEAPON_ELEMENT)
return "woodarrow" # Arrow graphic in Characters folder
end
bubs_bow_flying_graphic
end
end
class Skill
alias bubs_bow_skill_base_action base_action
def base_action
for x in N01::BOW_SKILLS
return "NEW_BOW_ATTACK(BA)" if @id == x && $back_attack # Back attack
return "NEW_BOW_ATTACK" if @id == x # Normal
end
bubs_bow_skill_base_action
end
end
end
复制代码
作者:
zhgwj1984313
时间:
2010-11-8 08:10
提示:
作者被禁止或删除 内容自动屏蔽
作者:
tp031d23
时间:
2010-11-8 09:52
本帖最后由 tp031d23 于 2010-11-8 09:54 编辑
首先谢谢Rion幻音的脚本,(我的那个好像不行,可能是脚本多,有冲突吧!)
在下向大家发布一个中文版(翻译版)
放进Character
s
(是否需要有s?)文档
默认在资料库动画里制作个动画在第83号
#=============================================================================
# ■ 横战中使用弓箭 by Mr. Bubble (基于 Kylock的弓箭效果)
#------------------------------------------------------------------------------
# 在横战中使用出弓箭的效果补丁
#==============================================================================
# 此脚本制作弓箭动画的技能。
# 相比Kylock(其他人)的弓插件,这个脚本设计不会有冲突。
# 你可以与Kylock的脚本一并使用。
#==============================================================================
# ■ 使用方法
#------------------------------------------------------------------------------
# - 需要从83号动画项目中的相同的ID放在需要的动画。
# - 需要在“Grphics\Character”“woodarrow.png”在图形。
#==============================================================================
module N01
# 武器ID
BOW_WEAPON_ELEMENT = 5
# 技能ID
BOW_SKILLS = [145]
# 动画ID
BOW_ANIMATION = 83
#------------------------------------------------------------------------------
# 攻击动画动作
BOW_ANIME = {
"DRAW_POSE" => [ 0, 1, 1, 2, 0, -1, 0, true,"" ],
"DRAW_BOW" => ["anime", BOW_ANIMATION, 0, false, false, false],
"ARROW_ANGLE" => [ 30, 60, 11],
"SHOOT_ARROW" => ["m_a", 0, 0, 0, 15, -10, 0, 0, 0,false,"ARROW_ANGLE"],
# 回到攻击的人物手上。
"SHOOT_ARROW(BA)" => ["m_a", 0, 0, 0, 15, -10, 0, 0, 0,false,"ARROW_ANGLE(BA)"],
"ARROW_ANGLE(BA)" => [ 330, 300, 11],
}
ANIME.merge!(BOW_ANIME)
# 动作顺序
BOW_ATTACK_ACTION = {
# 正常顺序
"NEW_BOW_ATTACK" => ["BEFORE_MOVE","DRAW_BOW", "DRAW_POSE", "16",
"SHOOT_ARROW", "12","OBJ_ANIM","16",
"Can Collapse","FLEE_RESET"],
# 背面攻击顺序
"NEW_BOW_ATTACK(BA)" => ["BEFORE_MOVE","DRAW_BOW", "DRAW_POSE", "16",
"SHOOT_ARROW(BA)", "12","OBJ_ANIM","16",
"Can Collapse","FLEE_RESET"],
}
ACTION.merge!(BOW_ATTACK_ACTION)
end
module RPG
class Weapon
alias bubs_bow_base_action base_action
def base_action
# 若弓箭在资料库被检查到
# 新的动作顺序便会出来
if $data_weapons[@id].element_set.include?(N01::BOW_WEAPON_ELEMENT) && $back_attack
return "NEW_BOW_ATTACK(BA)" # 回到上面的背向攻击
elsif $data_weapons[@id].element_set.include?(N01::BOW_WEAPON_ELEMENT)
return "NEW_BOW_ATTACK" # 回到上面的正常攻击
end
bubs_bow_base_action
end
alias bubs_bow_flying_graphic flying_graphic
def flying_graphic
if $data_weapons[@id].element_set.include?(N01::BOW_WEAPON_ELEMENT)
return "woodarrow" # 弓箭图形名字
end
bubs_bow_flying_graphic
end
end
class Skill
alias bubs_bow_skill_base_action base_action
def base_action
for x in N01::BOW_SKILLS
return "NEW_BOW_ATTACK(BA)" if @id == x && $back_attack # 背向攻击
return "NEW_BOW_ATTACK" if @id == x # 正常攻击
end
bubs_bow_skill_base_action
end
end
end
复制代码
作者:
zhgwj1984313
时间:
2010-11-8 10:15
提示:
作者被禁止或删除 内容自动屏蔽
作者:
Rion幻音
时间:
2010-11-8 11:00
本帖最后由 Rion幻音 于 2010-11-8 11:07 编辑
回复
zhgwj1984313
的帖子
直接送上范例好了……
(鹰文注意)(还有附上超多技能范例……)
RPG+Tankentai+3.3d+EXTRA+Demo.zip
(4.38 MB, 下载次数: 635)
2010-11-8 10:56 上传
点击文件名下载附件
作者:
zhgwj1984313
时间:
2010-11-8 11:28
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1