I've recently been trying to add a heraldic battle standard to the game, similar to how they're used in viking conquest. However, for whatever reason they keep breaking
https://imgur.com/a/lWJE22z
^ here is an image of what it looks like in game
I used this guide on how to add in heraldics: https://forums.taleworlds.com/index.php/topic,121012.0.html
All help would be appreciated.
https://imgur.com/a/lWJE22z
^ here is an image of what it looks like in game
I used this guide on how to add in heraldics: https://forums.taleworlds.com/index.php/topic,121012.0.html
module_items:
["heraldic_standard", "Battle Standard", [("heraldic_standard",0)], itp_type_two_handed_wpn|itp_merchandise| itp_primary|itp_penalty_with_shield|itp_wooden_parry,itc_staff|itcf_carry_axe_back,
76 , weight(1.5)|difficulty(0)|spd_rtng(90) | weapon_length(157)|swing_damage(26 , cut) | thrust_damage(15 , pierce),imodbits_polearm, [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_heraldic_standard", ":agent_no", ":troop_no")])]],
["heraldic_standard", "Battle Standard", [("heraldic_standard",0)], itp_type_two_handed_wpn|itp_merchandise| itp_primary|itp_penalty_with_shield|itp_wooden_parry,itc_staff|itcf_carry_axe_back,
76 , weight(1.5)|difficulty(0)|spd_rtng(90) | weapon_length(157)|swing_damage(26 , cut) | thrust_damage(15 , pierce),imodbits_polearm, [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_heraldic_standard", ":agent_no", ":troop_no")])]],
module_tableau_materials:
("heraldic_standard", 0, "sample_heraldic_standard_banner", 512, 512, 0, 0, 0, 0,
[
(store_script_param, ":banner_mesh", 1),
(set_fixed_point_multiplier, 100),
(store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
(troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
(cur_tableau_set_background_color, ":background_color"),
(init_position, pos1),
(cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
(init_position, pos1),
(position_set_x, pos1, 1,
(position_set_y, pos1, 170),
(cur_tableau_add_mesh, ":banner_mesh", pos1, 113, 0),
(init_position, pos1),
(position_set_z, pos1, 30),
(cur_tableau_add_mesh, "tableau_mesh_heraldic_standard_banner", pos1, 0, 0),
(cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
]),
("heraldic_standard", 0, "sample_heraldic_standard_banner", 512, 512, 0, 0, 0, 0,
[
(store_script_param, ":banner_mesh", 1),
(set_fixed_point_multiplier, 100),
(store_sub, ":background_slot", ":banner_mesh", arms_meshes_begin), #banner_meshes_begin),
(troop_get_slot, ":background_color", "trp_banner_background_color_array", ":background_slot"),
(cur_tableau_set_background_color, ":background_color"),
(init_position, pos1),
(cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":background_color"),
(init_position, pos1),
(position_set_x, pos1, 1,
(position_set_y, pos1, 170),
(cur_tableau_add_mesh, ":banner_mesh", pos1, 113, 0),
(init_position, pos1),
(position_set_z, pos1, 30),
(cur_tableau_add_mesh, "tableau_mesh_heraldic_standard_banner", pos1, 0, 0),
(cur_tableau_set_camera_parameters, 0, 200, 200, 0, 100000),
]),
module_meshes:
("tableau_mesh_heraldic_standard_banner", 0, "tableau_mesh_heraldic_standard_banner", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("tableau_mesh_heraldic_standard", 0, "tableau_mesh_heraldic_standard", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("tableau_mesh_heraldic_standard_banner", 0, "tableau_mesh_heraldic_standard_banner", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("tableau_mesh_heraldic_standard", 0, "tableau_mesh_heraldic_standard", 0, 0, 0, 0, 0, 0, 1, 1, 1),