• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Low Priority Minor tweaks to Father Bernard's dialog

Grey Roger

Sea Dog
Staff member
Administrator
Storm Modder
After talking to Father Bernard about some business, I noticed there was an entry in "error.log" about his dialog. It's evidently not serious enough to cause the dialog to fail, which is why it's probably never been noticed despite being there for ages. The problem is this line:
Code:
if (npchar.quest.church_help == "done" && pchar.quest.ANIMISTS == "FRIGATE_LOST")
If you haven't started the "Strange Things Going On" sidequest, alias "ANIMISTS", then attribute 'pchar.quest.ANIMISTS' doesn't exist and that's what throws up the error.

The easy way to fix that is to put a 'CheckAttribute(PChar, "ANIMISTS")' check before 'pchar.quest.ANIMISTS == "FRIGATE_LOST"'. The even easier way is to replace it with 'CheckQuestAttribute("ANIMISTS", "FRIGATE_LOST")', which does exactly that - checks if the attribute exists, then checks if it matches the value. So that's what I've done.

Also, apropos someone's comment appreciating the way some dialogs take note of whether you're male or female, Father Bernard doesn't - he frequently refers to you as "my son", and once to "a sailor who doesn't neglect his soul". So I've replaced them all with preprocessor placeholders and put some "Preprocessor_Add" commands into "Father Bernard_dialog.c" to fill them. For some reason, I can't imagine a priest referring to a female parishioner as "my daughter", though I can imagine "my son". He might call both "my child". But, to make at least some distinction, I've set him to refer to male clients as "my son" and female clients as "my child". Which, in turn, needs an addition to "common.ini" so that 'XI_ConvertString("child")' will work.

Next time I release a new version of "post jan7 fixes", it's going to include the change to 'CheckQuestAttribute("ANIMISTS", "FRIGATE_LOST")' in the "JackSparrow" version of "Father Bernard_dialog.c" as well. But I'm not changing that version to distinguish between male and female player characters. If you're using that version of Father Bernard's dialog then you're playing the "JackSparrow" storyline and probably aren't female. xD
 

Attachments

  • Father Bernard_dialog.c
    34.8 KB · Views: 341
  • Father Bernard_dialog.h
    14.4 KB · Views: 316
  • common.ini
    71.7 KB · Views: 333
Back
Top