for ch.Sound type, what ones can I use to fit a woman?
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!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
for ch.Sound type, what ones can I use to fit a woman?
// Jane Attwell
ch.old.name = "Jane";
ch.old.lastname = "Attwell";
ch.name = TranslateString("","Jane");
ch.lastname = TranslateString("","Attwell");
ch.id = "Jane Attwell";
ch.model = "towngirl7";
ch.sound_type = "female_citizen";
ch.fanatic = "1";
ch.church = "Redmond_church";
ch.church.loc = "goto3";
ch.back.location = "Redmond_town_01";
ch.back.locator = "citizen06";
ch.sex = "woman";
ch.nation = ENGLAND;
ch.location = "Redmond_town_01";
ch.location.group = "goto";
ch.location.locator = "citizen06";
ch.Dialog.Filename = "Redmond Citizen_dialog.c";
ch.greeting = "Gr_Woman_English Citizen";
ch.rank = 1;
ch.reputation = "None";
ch.experience = "0";
ch.skill.Leadership = "1";
ch.skill.Fencing = "1";
ch.skill.Sailing = "1";
ch.skill.Accuracy = "1";
ch.skill.Cannons = "1";
ch.skill.Grappling = "1";
ch.skill.Repair = "1";
ch.skill.Defence = "1";
ch.skill.Commerce = "1";
ch.skill.Sneak = "1";
ch.money = "10";
LAi_SetCitizenType(ch);
LAi_group_MoveCharacter(ch, "ENGLAND_CITIZENS");
AddGameCharacter(n, ch);
lol, hey, when I use GM viewer, all I see is a grey "body" of the character with no color or definition, is there any way to change that?
Also, what's the proper name of the locator for grand cayman and for the governor's harbor and Alice town for the dialog files and what not?
Also, what do I change in order to get my copied (from dowessun) C file to use an H file with a different name?
It's one thing after another with these dialog files, I'll need all these questions answered before I can do anything... kinda frustrating honestly...
okay, let me explain, there is an option in the dialog that uses city locators and makes the citizen say the size of the town, I need to know what the locator for grand cayman the town as a whole is so that the citizens will properly say however many troops the fort has, however many citizens there are, etc. It's set to dowessen, since that's what I copied it from, and until I change it, it will use dowessen's fort troops and dowessen's citizen count... Sorry if I'm being difficult, I'm just not sure if anyone knows what I'm talking about, if I just keep missing the point then I'll just forget about it and just set up the directions
case "Douwesen":
d.Text = DLG_TEXT[143] + " " + DLG_TEXT[171] + " " + GetTownSize("Douwesen") + " " + DLG_TEXT[172]; // NK
Link.l1 = DLG_TEXT[144];
Link.l1.go = "Douwesen_1";
Link.l2 = DLG_TEXT[145];
Link.l2.go = "new question";
break;
int GetTownSize(string sTownName)
{
// NK 05-04-23 switch to towns[]
ref ctown = GetTownFromID(sTownName);
if(CheckAttribute(ctown,"size")) return sti(ctown.size);
return DEFAULT_TOWN_POP;
}
case "Fleur":
d.Text = DLG_TEXT[134] + DLG_TEXT[168] + GetTownSize("Falaise de Fleur") + DLG_TEXT[169]; // NK
Link.l1 = pcharrepphrase(DLG_TEXT[135], DLG_TEXT[136]);
Link.l1.go = "new question";
link.l2 = pcharrepphrase(DLG_TEXT[137], DLG_TEXT[138]);
link.l2.go = "exit";
break;
string ret;
if (REAL_CARIBBEAN == 1) {
switch (townid) {
case "Conceicao":
switch(GetCurrentPeriod())
{
case PERIOD_REVOLUTIONS: ret = "Saint George"; break;
case PERIOD_THE_CORSICAN: ret = "Saint George"; break;
ret = "Sao Jorge";
}
break;
case "Douwesen":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Palo Brasil"; break
// case PERIOD_THE_SPANISH_MAIN: ret = "Palo Brasil"; break;
ret = "Kralendijk";
}
break;
case "Falaise de Fleur":
ret = "St Pierre";
break;
case "Isla Muelle":
ret = "San Juan";
break;
case "Oxbay":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "São Luis"; break;
ret = "Speightstown";
}
break;
case "Greenford":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Santa Inês"; break;
ret = "Bridgetown";
}
break;
case "Redmond":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Villa de la Vega"; break;
case PERIOD_REVOLUTIONS: ret = "Kingston"; break;
case PERIOD_THE_CORSICAN: ret = "Kingston"; break;
ret = "Port Royale";
}
break;
case "Charlestown":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Pueblo Carlos"; break;
ret = "Charlestown";
}
break;
case "Quebradas Costillas":
ret = "Pirate Settlement";
break;
case "Port au Prince":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Santa Maria del Puerto"; break;
case PERIOD_THE_SPANISH_MAIN: ret = "Hôpital"; break;
ret = "Port au Prince";
}
break;
case "Santo Domingo":
switch(GetCurrentPeriod())
{
case PERIOD_COLONIAL_POWERS: ret = "Saint Domingue"; break;
case PERIOD_REVOLUTIONS: ret = "Saint Domingue"; break;
ret = "Santo Domingo";
}
break;
/* case "Grand Turk":
ret = "Grand Turk";
break;
*/ case "Grand Cayman":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Cumana"; break;
ret = "Grand Cayman";
}
break;
case "Havana":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "San Cristobal de la Habana"; break;
ret = "Havana";
}
break;
case "Santiago":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Santiago de Cuba"; break;
ret = "Santiago";
}
break;
case "Pointe a Pitre":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Guadalupe"; break;
ret = "Pointe a Pitre";
}
break;
case "Tortuga":
switch(GetCurrentPeriod())
{
case PERIOD_COLONIAL_POWERS: ret = "Tortuga"; break;
ret = "La Tortue";
}
break;
/* case "Marigot":
ret = "Marigot";
break;
case "Philipsburg":
ret = "Philipsburg";
break;
case "St John's":
ret = "St John's";
break;
case "Willemstad":
ret = "Willemstad";
break;
*/ case "Eleuthera":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "Puerto la Cruz"; break;
case PERIOD_THE_SPANISH_MAIN: ret = "Puerto la Cruz"; break;
ret = "Governor's Harbor";
}
break;
case "Alice":
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS: ret = "San Elena"; break;
ret = "Alice Town";
}
break;
/* case "Oranjestad":
ret = "Oranjestad";
break;
*/ case "Khael Roa":
ret = "Cozumel";
break;
// default:
ret = townid;
}
} else {
ret = townid;
}
return ret;
}
Well, right now I have a much bigger problem, quoting my last post:
I noticed that Randomly when I ask about the locals, I get these errors along with a game crash:
RUNTIME ERROR - file: dialogs\Alice citizen_dialog.c; line: 166
invalid index -1 [size:2250]
RUNTIME ERROR - file: dialogs\Alice citizen_dialog.c; line: 166
function 'ProcessDialogEvent' stack error
It will happen randomly with only alice town it seems and I don't know what's going on...
RUNTIME ERROR - file: dialogs\cayman_citizen_dialog.c; line: 166
invalid index -1 [size:2250]
RUNTIME ERROR - file: dialogs\cayman_citizen_dialog.c; line: 166
function 'ProcessDialogEvent' stack error
and cayman...
The alice town file should be on here somewhere around post #20 or so, it will be grouped with other dialogs, just download the Alice citizen_dialog ones if you want to look at them yourself...
case "info":
dialog.snd1 = "";
dialog.snd2 = "";
dialog.snd3 = "";
d.Text = RandPhrase(DLG_TEXT[79] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[80], DLG_TEXT[81], DLG_TEXT[82] + GetMyName(Pchar) + DLG_TEXT[83], &Dialog, Dialog.snd1, Dialog.snd2, Dialog.snd3);
if(Rand(1)==0)
{
Link.l1 = DLG_TEXT[84] + GetMyFullName(&Characters[GetCharacterIndex(DLG_TEXT[85])]) + DLG_TEXT[87];
Link.l1.go = "governor";
}
else
{
Link.l1 = DLG_TEXT[88] + GetMyFullName(&Characters[GetCharacterIndex(DLG_TEXT[89])]) + DLG_TEXT[91];
Link.l1.go = "tavernkeeper";
}
if(Rand(1)==0)
{
Link.l2 = DLG_TEXT[92] + GetMyFullName(&Characters[GetCharacterIndex(DLG_TEXT[93])]) + DLG_TEXT[95];
Link.l2.go = "shipwright";
}
else
{
Link.l2 = DLG_TEXT[96] + GetMyFullName(&Characters[GetCharacterIndex(DLG_TEXT[97])]) + DLG_TEXT[99];
Link.l2.go = "localtrader";
}
// RobC/Alan_Smithee Blacksmiths -->
Link.l3 = DLG_TEXT[162];
Link.l3.go = "smithy";
Link.l4 = DLG_TEXT[100];
Link.l4.go = "new question";
break;
case "info":
dialog.snd1 = "";
dialog.snd2 = "";
dialog.snd3 = "";
d.Text = RandPhrase(DLG_TEXT[73] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[74], DLG_TEXT[75] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[76], DLG_TEXT[77] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[78], &Dialog, dialog.snd1, dialog.snd2, dialog.snd3);
if(Rand(1)==0)
{
Link.l1 = DLG_TEXT[79];
Link.l1.go = "governor";
}
else
{
Link.l1 = DLG_TEXT[80];
Link.l1.go = "tavernkeeper";
}
if(Rand(1)==0)
{
Link.l2 = DLG_TEXT[81];
Link.l2.go = "shipwright";
}
else
{
Link.l2 = DLG_TEXT[82];
Link.l2.go = "localtrader";
}
// RobC/Alan_Smithee Blacksmiths -->
if(Rand(1)==0)
{
Link.l3 = DLG_TEXT[145];
Link.l3.go = "governor";
}
else
{
Link.l3 = DLG_TEXT[146];
Link.l3.go = "smithy";
}
Link.l4 = DLG_TEXT[83];
Link.l4.go = "new question";
break;
case "info":
dialog.snd1 = "";
dialog.snd2 = "";
dialog.snd3 = "";
d.Text = RandPhrase(DLG_TEXT[72] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[73], DLG_TEXT[74], DLG_TEXT[75], &Dialog, dialog.snd1, dialog.snd2, dialog.snd3);
if(Rand(1)==0)
{
Link.l1 = DLG_TEXT[76];
Link.l1.go = "governor";
}
else
{
Link.l1 = DLG_TEXT[77];
Link.l1.go = "tavernkeeper";
}
if(Rand(1)==0)
{
Link.l2 = DLG_TEXT[78];
Link.l2.go = "shipwright";
}
else
{
Link.l2 = DLG_TEXT[79];
Link.l2.go = "localtrader";
}
// RobC/Alan_Smithee Blacksmiths -->
Link.l3 = DLG_TEXT[133];
Link.l3.go = "smithy";
Link.l4 = DLG_TEXT[80];
Link.l4.go = "new question";
break;
case "info":
dialog.snd1 = "";
dialog.snd2 = "";
dialog.snd3 = "";
d.Text = RandPhrase(DLG_TEXT[93] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[94], DLG_TEXT[95] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[96], DLG_TEXT[97] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[98], &Dialog, Dialog.snd1, Dialog.snd2, Dialog.snd3);
if(Rand(1)==0)
{
Link.l1 = DLG_TEXT[99];
Link.l1.go = "governor";
}
else
{
Link.l1 = DLG_TEXT[100] + GetMyFullName(&Characters[GetCharacterIndex(DLG_TEXT[101])]) + DLG_TEXT[103];
Link.l1.go = "tavern_keeper";
}
if(Rand(1)==0)
{
Link.l2 = DLG_TEXT[104] + Characters[GetCharacterIndex(DLG_TEXT[105])].lastname + DLG_TEXT[106];
Link.l2.go = "Shipwright";
}
else
{
Link.l2 = DLG_TEXT[107] + GetMyFullName(&Characters[GetCharacterIndex(DLG_TEXT[108])]) + DLG_TEXT[110];
Link.l2.go = "Localtrader";
}
// RobC/Alan_Smithee Blacksmiths -->
Link.l3 = DLG_TEXT[174];
Link.l3.go = "smithy";
Link.l4 = DLG_TEXT[111];
Link.l4.go = "new question";
break;
case "info":
dialog.snd1 = "";
dialog.snd2 = "";
dialog.snd3 = "";
d.Text = RandPhrase(DLG_TEXT[84] + GetMyAddressForm(NPChar, PChar, ADDR_CIVIL, false, false) + DLG_TEXT[85], DLG_TEXT[86], DLG_TEXT[87], &Dialog, dialog.snd1, dialog.snd2, dialog.snd3);
if(Rand(1)==0)
{
Link.l1 = DLG_TEXT[88];
Link.l1.go = "governor";
}
else
{
Link.l1 = DLG_TEXT[89];
Link.l1.go = "tavernkeeper";
}
if(Rand(1)==0) // Cat FBQ
{
if(characters[GetCharacterIndex("Fred Bob")].quest.help == "agreed")
{
Link.l2 = DLG_TEXT[147];
Link.l2.go = "fredbob";
}
}
else
{
Link.l2 = DLG_TEXT[148];
Link.l2.go = "harbormaster";
} // Cat FBQ
if(Rand(1)==0)
{
Link.l3 = DLG_TEXT[90];
Link.l3.go = "shipwright";
}
else
{
Link.l3 = DLG_TEXT[91];
Link.l3.go = "localtrader";
}
if(Rand(1)==0)
{
Link.l4 = DLG_TEXT[157];
Link.l4.go = "info";
}
else
{
// RobC/Alan_Smithee Blacksmiths -->
Link.l4 = DLG_TEXT[158];
Link.l4.go = "smithy";
}
Link.l5 = DLG_TEXT[92];
Link.l5.go = "new question";
break;