Author Topic: [WB v1.127, SP, code] Expanded dialog system kit (v1.0)  (Read 8522 times)

0 Members and 1 Guest are viewing this topic.

jrider

  • Veteran
  • *
    • View Profile
  • Faction: Neutral
  • WB
[WB v1.127, SP, code] Expanded dialog system kit (v1.0)
« on: August 13, 2010, 11:15:36 PM »
I thought some dialogs were a little bland, especially the ones where you have list of things (such as the tavern minstrel maiden list or the looking for from lord/ladies), things are also a bit cumbersome there, since you have to go into the notes from the dialog and manually search for the character to have some basic information like relatives or feeling toward the player.

I also changed the mechanic of browsing the lord/lady so that you're brought back to the list instead of being brought back to the dialog where you ask for the list (didn't apply the same change to the minstrel dialog).

  • Lord/Ladies location of someone dialog:
    • Relation string toward player added ("knows of you" is a new one, used when player has relation but no string).
    • A married lady display its husband's name
    • Lord's display their father (and/or mother)
    • Prisoner status for male Lords is displayed
    • Changes to Maiden is identical to the ones made for minstrel
    • loop back to list after selecting an entry, use the leave entry to go back to the main lord/lady dialog
  • Minstrel eligible maiden dialog:
    • Maiden's closest male relative is displayed as well as their relation (daughter or pupil for sisters/nieces)
    • Betrothal status and name of the suitor displayed
  • Select emissary dialog:
    • Adds a string (title like) to companion name, to reflect skill level (strings for persuasion only for now) according to tiers (same as the party bonus tiers).
                 NB: this one a bit of a work in progress, it has starting elements to extend it for use with other skills and set the new string, title like, for the duration of the mission
  • Select kingdom for action dialog:
    • Adds player's relation to ruler string and kingdom relation string to the dialog
Screenshots:
(click to show/hide)
(click to show/hide)

Just new scripts, new strings and hooks so using this with a previous savegame shouldn't cause any problem.

NB: I use this with my modified title system (see thread in The Forge) so the lord/ladies' land ownership and relation to ruler informations automatically appears when their name is used.

Strings' font in the ingame dialogs scale automatically, so you can put quite a bit in there.

Note that the new scripts are highly context sensitive, using them in another dialog context than the ones used here should check the global strings and register in the new context to ensure compatibility.

here is the code (for Warband v1.127), feel free to reuse anywhere  (this is v1.0):
Changelog:
(click to show/hide)

  • in module_strings.py add these the end of the tuple:
(click to show/hide)

  • in module_scripts.py add these new scripts at the end of the tuple:
(click to show/hide)

  • Dialogs hooks in module_dialogs.py:
for the lord/lady ask location dialog, change the lord_talk_ask_location_2 dialog entry with the tagged code :
(click to show/hide)

to loop back to the list after seeing an entry, in the lord_talk_ask_location_2 dialog entries, comment the lady_pretalk / lord_pretalk lines and add (for each) the following line:
(click to show/hide)

for the minstrel eligible maiden dialog, insert the tagged code in the following minstrel_gossip_select dialog entry :
(click to show/hide)

for the select kingdom for action dialog, insert the tagged code in the following minister_diplomatic_kingdoms_select dialog entry :
(click to show/hide)

for the select emissary dialog, insert the tagged code in the following minister_emissary_select dialog entry :
(click to show/hide)
« Last Edit: August 21, 2010, 03:34:01 PM by jrider »

jrider

  • Veteran
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, SP, code] Expanded dialog system kit
« Reply #1 on: August 13, 2010, 11:16:50 PM »
<reserved>

Panzercracker

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Swadian
Re: [WB, SP, code] Expanded dialog system kit
« Reply #2 on: August 14, 2010, 08:51:07 AM »
In this kit, this is error
Quote
Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Error: Unable to find object:str_faction_relation_mnus_100_ns
ERROR: Illegal Identifier:str_faction_relation_mnus_100_ns
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .

jrider

  • Veteran
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, SP, code] Expanded dialog system kit
« Reply #3 on: August 14, 2010, 09:20:08 AM »
In this kit, this is error

sorry, I forgot to put in the new strings I added in module_strings.py (OP updated), I really shouldn't make these post late at night :)

Idibil

  • External Developer
  • *
    • View Profile
    • Nova Regula
  • Faction: Nord
  • MP nick: Celt√≠beroIdibil
Re: [WB, SP, code] Expanded dialog system kit
« Reply #4 on: August 14, 2010, 08:13:00 PM »
thanks you. Good work!