configurar torneos en ciudades nuevas

    Rafalongo
    Rafalongo
    Modder
    Modder


    Mensajes : 694
    Facción : Imperio Calrádico del Sur

    configurar torneos en ciudades nuevas Empty configurar torneos en ciudades nuevas

    Mensaje por Rafalongo Miér Jul 08, 2015 12:08 am

    Buenass! tengo un problema, en mi mod he creado varias ciudades nuevas, y cuando entro al torneo en Roma por ejemplo, los aprticipantes usan turbantes, como en el sultanato sarranid, alguien sabe como configuro las caracteristicas de los torneos de cada ciudad nueva??!

    graciasss
    Rafalongo
    Rafalongo
    Modder
    Modder


    Mensajes : 694
    Facción : Imperio Calrádico del Sur

    configurar torneos en ciudades nuevas Empty Re: configurar torneos en ciudades nuevas

    Mensaje por Rafalongo Jue Ago 06, 2015 10:04 pm

    bueno, se me empieza a hacer costumbre lod e contestarme solo xD aca comparto la solucion:

    empece a buscar "itm_arena_turban_red" (turbante de torneos sarracenos) por todo los achivos .py, y di con el comando en module_game_menus, esto ams especificamente:

    Código:
    (try_begin),
                (eq, ":town_original_faction", "fac_kingdom_1"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),

    como pueden ver la segunda linea indica el reino, y el tipo de armadura que tendra, y otras cosas, cada reino tiene uno, y el ultimo no indica reino, porq es el que por defecto le caera a cualquier nueva faccion nueva que uno haga, o sea, son los turbantes del sultanato sarranid. primero probe poner ..."fac_kingdom_1", "fac_kingdom_10", "fac_kingdom_11", "fac_kingdom_12"),
    pero asi no funciona, hay que crear un nuevo codigo para cada faccion, copiando desde "else_try" hasta "try_end" y sustituyendo la faccion por la que queramos agregar.

    por ejemplo a mi me quedó asi:

    Código:
              (try_begin),
                (eq, ":town_original_faction", "fac_kingdom_1"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_10"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_11"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_12"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_14"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_15"),
                #Swadia
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 100, 0, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 100, 0, 0, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 40, 0, 0, 0, "itm_arena_armor_red", "itm_tourney_helm_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_2"),
                #Vaegirs
                (store_mod, ":mod", ":town_index_within_faction", 4),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 0, 0, 0, 0, "itm_arena_armor_red", "itm_steppe_helmet_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 50, 0, 0, 0, 20, 30, 0, "itm_arena_armor_red", "itm_steppe_helmet_red"),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 100, 0, 50, 0, 0, 20, 30, 0, "itm_arena_armor_red", "itm_steppe_helmet_red"),
                (else_try),
                  (eq, ":mod", 3),
                  (call_script, "script_set_items_for_tournament", 40, 80, 50, 20, 30, 0, 60, 0, "itm_arena_armor_red", "itm_steppe_helmet_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_3"),
                #Khergit
                (store_mod, ":mod", ":town_index_within_faction", 2),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 100, 0, 0, 0, 0, 40, 60, 0, "itm_arena_tunic_red", "itm_steppe_helmet_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 50, 25, 0, 0, 30, 50, 0, "itm_arena_tunic_red", "itm_steppe_helmet_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_17"),
                #Khergit
                (store_mod, ":mod", ":town_index_within_faction", 2),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 100, 0, 0, 0, 0, 40, 60, 0, "itm_arena_tunic_red", "itm_steppe_helmet_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 50, 25, 0, 0, 30, 50, 0, "itm_arena_tunic_red", "itm_steppe_helmet_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_18"),
                #Khergit
                (store_mod, ":mod", ":town_index_within_faction", 2),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 100, 0, 0, 0, 0, 40, 60, 0, "itm_arena_tunic_red", "itm_steppe_helmet_red"),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 100, 50, 25, 0, 0, 30, 50, 0, "itm_arena_tunic_red", "itm_steppe_helmet_red"),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_4"),
                #Nords
                (store_mod, ":mod", ":town_index_within_faction", 3),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 50, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 40, 0, 0, 100, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_13"),
                #Nords
                (store_mod, ":mod", ":town_index_within_faction", 3),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 50, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 40, 0, 0, 100, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_16"),
                #Nords
                (store_mod, ":mod", ":town_index_within_faction", 3),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 50, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 40, 0, 0, 100, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (try_end),
              (else_try),
                (eq, ":town_original_faction", "fac_kingdom_7"),
                #Nords
                (store_mod, ":mod", ":town_index_within_faction", 3),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 1),
                  (call_script, "script_set_items_for_tournament", 0, 0, 50, 80, 50, 0, 0, 0, "itm_arena_armor_red", -1),
                (else_try),
                  (eq, ":mod", 2),
                  (call_script, "script_set_items_for_tournament", 40, 0, 0, 100, 0, 0, 0, 0, "itm_arena_armor_red", -1),
                (try_end),
              (else_try),
                #Rhodoks
                (eq, ":town_original_faction", "fac_kingdom_8"),
                (call_script, "script_set_items_for_tournament", 25, 100, 60, 0, 30, 0, 30, 50, "itm_arena_tunic_red", "itm_arena_helmet_red"),
              (else_try),
                #Sarranids
                (store_mod, ":mod", ":town_index_within_faction", 2),
                (try_begin),
                  (eq, ":mod", 0),
                  (call_script, "script_set_items_for_tournament", 100, 40, 60, 0, 30, 30, 0, 0, "itm_arena_tunic_red", "itm_arena_turban_red"),
                (else_try),
                  (call_script, "script_set_items_for_tournament", 50, 0, 60, 0, 30, 30, 0, 0, "itm_arena_tunic_red", "itm_arena_turban_red"),
                (try_end),

    espero que a alguien le sirva, no me habian contestado ni los gringos de tales world forum D:

      Fecha y hora actual: Vie Abr 19, 2024 3:41 pm