Project1
标题:
xas3.91的武器设置
[打印本页]
作者:
1733450036
时间:
2012-7-14 23:30
标题:
xas3.91的武器设置
本帖最后由 1733450036 于 2012-7-14 23:43 编辑
xas3.91的系统怎么添加新武器?求助啊跪求啊,我都试了无数遍了,不管啊,脚本不知怎么修改,教教我!!!!!!
dsu_plus_rewardpost_czw
作者:
hys111111
时间:
2012-7-15 07:48
首先先在数据库 > 武器添加武器,武器编号记录下来。
然后到数据库 > 技能添加一个技能,技能编号也记录下来。
然后到TOOL地图里面,新建一个事件(设置路线向前一步),注意:技能ID必须和TOOL的事件ID一样。
然后找到脚本编辑器SKILL第142行左右。A是武器ID,B是技能(TOOL)ID。
#==============================================================================#
#..............................[SPECIAL ATTACKS]...............................#
#==============================================================================#
# FORMAT: A=>B #
# #
# A = WEAPON ID (as listed in the WEAPONS tab in the DATABASE) #
# B = TOOL ID #
#==============================================================================#
# For more information visit: http://xasabs.wordpress.com/advanced-functions/ #
#==============================================================================#
module MOG
#........................................................[CREATE_SPECIAL_ATTACK]
WEP_CHARGE_ID = {
1=>29, # Weapon ID 1
2=>30, # Weapon ID 2
3=>31, # Weapon ID 3
4=>34, # Weapon ID 4
5=>35, # Weapon ID 5
6=>38, # Weapon ID 6
7=>39, # Weapon ID 7
8=>40, # Weapon ID 8
9=>41, # Weapon ID 9
10=>42, # Weapon ID 10
11=>137, # Weapon ID 11
12=>161, # Weapon ID 12
13=>155, # Weapon ID 13
14=>159, # Weapon ID 14
15=>156 # Weapon ID 15
}
复制代码
只要按照刚才的 武器编号=>技能编号 添加上去即可(另,如果后面还有,请加","分割)
最后,在脚本编辑器SAMPLE (01)下面插入这段(只要仿照它改就可以了。)
#==============================================================================#
#...........................[TOOL SCRIPT TUTORIAL].............................#
#==============================================================================#
# For more information visit: http://xasabs.wordpress.com/tool-script/ #
#==============================================================================#
module Database_Bullet
# TOOL ID (the event number on the TOOL map)
action_id = 技能编号
# Which tool do you want to activate next? You can create combos this way.
# Enter ’0′ for no Tool to activate next.
LINK_ACTION_ID[action_id] = 0
# How long do you want the user to stand still whilst using the tool? (in frames)
SUFLAGS[action_id] = 10
# How long do you want the tool to remain in play? (in frames)
DURATIONS[action_id] = 10
# Choose the graphic (found in the Graphics/Characters folder) and put the
# suffix for the character sprite here.
# For more information visit: http://xasabs.wordpress.com/suffix-name-list/
SELF_MOTIONS[action_id] = "_SWD_01"
# How long after you’ve activated the tool do you want its impact to take place?
# This option is used to create tools such as bombs where the impact occurs
# after a few seconds. (in frames)
plan = []
plan[3] = action_id
ATTACK_ID_PLANS[action_id] = plan
# What type of impact area do you want the tool to have?
# (LINE, RHOMBUS or SQUARE)
ATTACK_RANGE_TYPES[action_id] = SQUARE
# What size of impact area do you want the tool to have?
ATTACK_RANGE_PLANS[action_id] = [1]
# What level of power do you want the tool to have?
BLOW_POWERS[action_id] = 1
#==============================================================================#
# How long after you’ve activated the tool do you want an animation to take
# place? This option is used to create tools such as bombs where the
# explosion animation occurs after a few seconds.
# X = Time to activate the animation
# Y = Animation ID
#==============================================================================#
# plan = []
# plan [X] = Y
# SELF_ANIMATION_PLANS [action_id] = plan
#
# A = Time to activate the animation.
# B = ID of the animation
#
# If you do not want to activate the animation, use the code below
#==============================================================================#
SELF_ANIMATION_PLANS[action_id] = []
# What animation do you want to show when the user is hit?
# Enter ’0′ to show no animation.
SELF_ANIMATION_HIT[action_id] = 136
# How long do you want your character to be invincible for? (in frames)
TARGET_INVINCIBLES_DURATIONS[action_id] = 8
ANIMATION_SPEED[action_id] = 2.0
# Do you want the player to move? (FORWARD, BACKWARD or nil)
FORCE_MOVE[action_id] = nil
PLAYER_CAST_TIME[action_id] = 0
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1