zelig
Recruit

How can i understand this code - what's mean each string:
I have problem with this peace of code - when i shot it kill or none or everyone on the map
((((
It's peace of code from curtain of fire magic mode... I tried it on warband
module_items.py:
["fire_staff","Fire Staff", [("fire_staff",0)],itp_type_crossbow |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_crossbow, 4938 , weight(4)|spd_rtng(89) | shoot_speed(999) | thrust_damage(200 , pierce)|max_ammo(30)|weapon_length(65),imodbits_missile,
[(ti_on_weapon_attack, [(try_for_range,reg5,1,500),
(particle_system_burst, "psys_torch_fire", pos1, 15),
(position_move_y,pos1,10),
(copy_position,pos2,pos1),
(position_set_z_to_ground_level, pos2),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",10),
(particle_system_burst, "psys_massive_fire", pos1, 15),
(particle_system_burst, "psys_war_smoke_tall", pos1, 15),
(play_sound,"snd_pistol_shot"),
(try_for_agents,":agent"),
(agent_get_position,pos2,":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",300),
(agent_set_hit_points,":agent",0,0),
(agent_deliver_damage_to_agent,":agent",":agent"),
(end_try),
(scene_prop_get_instance,":instance", "spr_explosion", 0),
(position_copy_origin,pos2,pos1),
(prop_instance_set_position,":instance",pos2),
(position_move_z,pos2,1000),
(prop_instance_animate_to_position,":instance",pos2,175),
(assign,reg5,1000),
(end_try),],)]],
I have problem with this peace of code - when i shot it kill or none or everyone on the map
It's peace of code from curtain of fire magic mode... I tried it on warband
module_items.py:
["fire_staff","Fire Staff", [("fire_staff",0)],itp_type_crossbow |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_crossbow, 4938 , weight(4)|spd_rtng(89) | shoot_speed(999) | thrust_damage(200 , pierce)|max_ammo(30)|weapon_length(65),imodbits_missile,
[(ti_on_weapon_attack, [(try_for_range,reg5,1,500),
(particle_system_burst, "psys_torch_fire", pos1, 15),
(position_move_y,pos1,10),
(copy_position,pos2,pos1),
(position_set_z_to_ground_level, pos2),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",10),
(particle_system_burst, "psys_massive_fire", pos1, 15),
(particle_system_burst, "psys_war_smoke_tall", pos1, 15),
(play_sound,"snd_pistol_shot"),
(try_for_agents,":agent"),
(agent_get_position,pos2,":agent"),
(get_distance_between_positions,":dist",pos1,pos2),
(lt,":dist",300),
(agent_set_hit_points,":agent",0,0),
(agent_deliver_damage_to_agent,":agent",":agent"),
(end_try),
(scene_prop_get_instance,":instance", "spr_explosion", 0),
(position_copy_origin,pos2,pos1),
(prop_instance_set_position,":instance",pos2),
(position_move_z,pos2,1000),
(prop_instance_animate_to_position,":instance",pos2,175),
(assign,reg5,1000),
(end_try),],)]],