<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> @all!
First of all I want to congratulate all of you, that participated in the Mod-Build! It's great <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid="
" border="0" alt="me.gif" /> and I'm continously looking for updates of the Post Build 12 Mod Compilation.
Now I wanted to do some modding myself. First thing I tried was to mod Alan Smithee's(?) Apothecary Mod so that it's possible to increase maximum health not only for PChar but also for party members. I hope, this is no offending, it's just for learning... And I thought, why should my officers (which are good comrades) not also get the benfits of the contemporary medicine? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid="
" border="0" alt="dunno.gif" />
But when trying to set the dialogues, I ran into problems:
I didn't want to hardcode the strings "For my officer <b>Mr./Miss</b> <officer_name>" into the dialogue. Having in mind the tasks mentioned in the Wiki <a href="http://robotsdontbleed.com/wacko/wakka.php?wakka=TextAndVoiceProject&v=txp" target="_blank">Text and Voice Project</a>, I looked for possibilities, to generalize this.
So I wrote a function <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GetOfficerAddressForm()<!--c2--></div><!--ec2--> in Dialog_func.c:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->string GetOfficerAddressForm(ref officer)
{
string retstr;
int nat = sti(officer.nation);
bool bSex = chrsex(officer);
retstr = GetAddressForm(ADDR_CIVIL, nat, bSex) + " " + officer.name + " " + officer.lastname;
return retstr;
}<!--c2--></div><!--ec2-->
It took some time, until I figured out, why this didn't work: the strings in <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Set_inDialog_Attributes()<!--c2--></div><!--ec2--> have to be in common.ini also and are not now. So I did this. I also did it for the pronouns. Could this be of use for your above mentioned Text and Voice project?
Greetings
First of all I want to congratulate all of you, that participated in the Mod-Build! It's great <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid="

Now I wanted to do some modding myself. First thing I tried was to mod Alan Smithee's(?) Apothecary Mod so that it's possible to increase maximum health not only for PChar but also for party members. I hope, this is no offending, it's just for learning... And I thought, why should my officers (which are good comrades) not also get the benfits of the contemporary medicine? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid="

But when trying to set the dialogues, I ran into problems:
I didn't want to hardcode the strings "For my officer <b>Mr./Miss</b> <officer_name>" into the dialogue. Having in mind the tasks mentioned in the Wiki <a href="http://robotsdontbleed.com/wacko/wakka.php?wakka=TextAndVoiceProject&v=txp" target="_blank">Text and Voice Project</a>, I looked for possibilities, to generalize this.
So I wrote a function <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GetOfficerAddressForm()<!--c2--></div><!--ec2--> in Dialog_func.c:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->string GetOfficerAddressForm(ref officer)
{
string retstr;
int nat = sti(officer.nation);
bool bSex = chrsex(officer);
retstr = GetAddressForm(ADDR_CIVIL, nat, bSex) + " " + officer.name + " " + officer.lastname;
return retstr;
}<!--c2--></div><!--ec2-->
It took some time, until I figured out, why this didn't work: the strings in <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Set_inDialog_Attributes()<!--c2--></div><!--ec2--> have to be in common.ini also and are not now. So I did this. I also did it for the pronouns. Could this be of use for your above mentioned Text and Voice project?
Greetings