Este tutorial pertenece a al usuario del foro de Taleworlds "Lathrael", lo que yo traigo es una simple traducción de su post.
Lo primero que hay que hacer es añadir lo siguiente en "spouse_talk" (module_dialogs)-->(Conversations.txt) :
- Código:
[anyone|plyr, "spouse_talk",
[
(troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
(eq, "$g_talk_troop", ":player_spouse"),
],
"I want you to join my party", "spouse_join",
[]],
[anyone, "spouse_join",
[
],
"Of course my love!", "close_window",
[
(party_add_members, "p_main_party", "$g_talk_troop", 1),
(assign, "$g_leave_encounter", 1),
]],
Al principio de member_talk,
- Código:
[anyone,"member_chat",
[
(store_conversation_troop,"$g_talk_troop"),
(troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
(troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
], "Yes, my love?", "member_talk",
[]],
Ahora ya podremos usar los menús de conversación con ella, sin embargo esto producirá bastantes bugs a no ser que cambiemos lo siguiente:
- Código:
[anyone,"member_chat",
[
(store_conversation_troop,"$g_talk_troop"),
(troop_is_hero,"$g_talk_troop"),
(troop_get_slot, ":honorific", "$g_talk_troop", slot_troop_honorific),
(str_store_string, s5, ":honorific"),
(neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
], "Yes, {s5}?", "member_talk",....................................................
- Código:
[anyone|plyr,"member_talk", [
(neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
], "We need to separate for a while.", "member_separate",[.....................
[anyone|plyr,"member_talk", [
(neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
], "I'd like to ask you something.", "member_question",[]],
Para tener disponible la opción de hacer que vuelva a la corte añadiremos:
[
- Código:
anyone|plyr,"member_talk", [
(troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
(troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
], "This is unsafe for you. You should get back to our court.", "spouse_leave",[]],
[anyone, "spouse_leave", [
], "Are you sure, my love?", "spouse_leave_confirm", []],
[anyone|plyr,"spouse_leave_confirm", [], "Yes.", "close_window",
[(remove_member_from_party, "$g_talk_troop"),
]],
[anyone|plyr,"spouse_leave_confirm", [], "No, I'd rather have you at my side.", "do_member_trade",[]],
- Código:
[anyone ,"member_chat", [
(store_conversation_troop, "$g_talk_troop"),
(try_begin),
(is_between, "$g_talk_troop", companions_begin, companions_end),
(talk_info_show, 1),
(call_script, "script_setup_talk_info_companions"),
(else_try),
(troop_is_hero, "$g_talk_troop"),
(talk_info_show, 1),
(call_script, "script_setup_talk_info"),
(else_try),
(is_between, "$g_talk_troop", pretenders_begin, pretenders_end),
(talk_info_show, 1),
(call_script, "script_setup_talk_info"),
(try_end),
Eso es todo. Por último decir que si tenéis el juego en español y queréis que estos diálogos sean en español, podéis podéis modificar fácilmente estos códigos simplemente escribiendo los mensajes que están entre comillas (y no tienen barras-bajas) en español. Me explico.
En el primer código que he colocado sale "I want you to join my party". Podemos borrar (el contenido, las comillas se mantienen) y escribir tranquilamente "Quiero que te unas a mi ejército".