①瞬移:
可以使用该代码的武器:
箭矢、弩矢、投掷武器、火枪弹药
触发条件为箭矢击中
代码为:
(store_trigger_param_1,":var_0"),
(agent_set_position,":var_0",pos1),
(play_sound,"snd_your_flag_taken"),
效果:立即瞬移到箭矢落点
####################################
②范围治疗:
可以使用该代码的武器:
单手、双手、长杆、弩、弓、投掷、火枪
触发条件为武器攻击
(store_trigger_param_1,":var_0"),
(agent_get_party_id,":var_3",":var_0"),
(try_for_agents,":var_1"),
(agent_get_position,pos2,":var_1"),
(get_distance_between_positions_in_meters,":var_2",pos1,pos2),
(agent_get_party_id,":var_4",":var_1"),
(try_begin),
(neg|gt,":var_2",7),此处的7为加血的范围、单位为米
(eq,":var_3",":var_4"),
(store_agent_hit_points,reg36,":var_1",0),
(val_add,reg36,8),此处的8为加血每次攻击加血的数量
(agent_set_hit_points,":var_1",reg36,0),
(try_end),(try_end),
效果:武器攻击时给队友增加生命值、
建议:建议增加粒子系统,这样可以知道效果是否作用到
####################################
③规避:
可以使用该代码的武器:
单手、双手、长杆、弩、弓、投掷、火枪
触发条件为武器攻击
(store_trigger_param_1,":var_0"),
(agent_get_party_id,":var_3",":var_0"),
(try_for_agents,":var_1"),
(agent_get_position,pos2,":var_1"),
(get_distance_between_positions_in_meters,":var_2",pos1,pos2),
(agent_get_party_id,":var_4",":var_1"),
(try_begin),
(neg|gt,":var_2",3),此处的3为作用范围
(neg|eq,":var_3",":var_4"),
(position_has_line_of_sight_to_position,pos1,pos2),
(map_get_random_position_around_position,pos3,pos1,20),此处的20为效果范围
(particle_system_burst,"psys_gourd_smoke",pos2,60),
(agent_set_position,":var_1",pos3),
(try_end),
(try_end),
效果:武器攻击时可以把三米以内的敌人转移到三米以外二十米以内的任意位置
建议:建议附着在远程武器上、、近战的话、、你懂的、、
####################################
④爆炸:
箭矢、弩矢、投掷武器、火枪弹药
触发条件为箭矢击中
代码为:
(particle_system_burst,"psys_torch_fire",pos1,150),
(store_trigger_param_1,":var_0"),
(agent_get_party_id,":var_3",":var_0"),
(try_for_agents,":var_1"),
(agent_get_position,pos2,":var_1"),
(get_distance_between_positions,":var_2",pos1,pos2),
(agent_get_party_id,":var_4",":var_1"),
(try_begin),
(neg|gt,":var_2",150),此处的150是作用范围、单位为厘米
(neg|eq,":var_3",":var_4"),
(agent_deliver_damage_to_agent,":var_0",":var_1",50),此处的50为伤害值
(try_end),
(try_end),
效果:武器攻击时对范围打击,并出现火焰
建议:可以自己做几个花哨点的粒子系统
####################################
⑤仇恨:
可以使用该代码的武器:
单手、双手、长杆、弩、弓、投掷、火枪
触发条件为武器攻击
代码:
(store_trigger_param_1,":var_0"),
(agent_get_party_id,":var_3",":var_0"),
(try_for_agents,":var_1"),
(agent_get_position,pos2,":var_1"),
(get_distance_between_positions_in_meters,":var_2",pos1,pos2),
(agent_get_party_id,":var_4",":var_1"),
(try_begin),
(neg|gt,":var_2",5),此处的5为作用范围
(neg|eq,":var_3",":var_4"),
(agent_set_look_target_agent,":var_1",":var_0"),
(try_end),
(try_end),
效果:武器攻击时可以吸引五米内敌人的仇恨,对方优先对你进行攻击
建议:建议附着单手剑、配合盾战士用、
####################################
⑥回复:
可以使用该代码的武器:
单手、双手、长杆、弩、弓、投掷、火枪
触发条件为武器攻击
代码:
(store_trigger_param_1,":var_1"),
(store_agent_hit_points,reg36,":var_1",0),
(val_add,reg36,5),此处的5为回复数量
(agent_set_hit_points,":var_1",reg36,0),
效果:武器攻击时可以恢复生命值
建议:普通兵种的话回复数值不要太大、3-8相当强力了
####################################
⑦落马:
可以使用该代码的武器:
箭矢、弩矢、投掷武器、火枪弹药
触发条件为箭矢击中
代码:
(store_trigger_param_1,":var_0"),
(agent_get_party_id,":var_3",":var_0"),
(try_for_agents,":var_1"),
(agent_get_position,pos2,":var_1"),
(get_distance_between_positions_in_meters,":var_2",pos1,pos2),
(agent_get_party_id,":var_4",":var_1"),
(try_begin),
(neg|gt,":var_2",5),此处的5为作用范围
(neg|eq,":var_3",":var_4"),
(agent_get_horse,":var_5",":var_1"),
(agent_deliver_damage_to_agent,":var_0",":var_5",500),此处的500为伤害值
(try_end),
(try_end),
效果:范围内对敌人的马匹进行伤害
建议:建议增加粒子系统
######## ############################
⑧被诅咒:
可以使用该代码的武器:
单手、双手、长杆、弩、弓、投掷、火枪
触发条件为武器攻击
代码:
(particle_system_burst,"psys_gourd_smoke",pos1,100),
(store_trigger_param_1,":var_0"),
(store_agent_hit_points,reg36,":var_0",0),
(val_sub,reg36,3),
(agent_set_hit_points,":var_0",reg36,0),
效果:武器攻击时会减少自己的生命
建议:建议附着在非常强力的武器之上、对其进行削弱。 |