<!--quoteo(post=312920:date=Apr 13 2009, 03:26 PM:name=bartolomeu o portugues)--><div class='quotetop'>QUOTE (bartolomeu o portugues @ Apr 13 2009, 03:26 PM) <a href="index.php?act=findpost&pid=312920"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Or Town-dependent <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />
Each time, it happens something important in a Spanish town, a sign appears there.
For instance, Santiago after the warehouses' atttack.
Havana after releasing the Bartolomeu's crew
San Juan after the infiltration mission
Santo Domingo after capturing the light galleon.<!--QuoteEnd--></div><!--QuoteEEnd-->The following seems to work. In PROGRAM\Loc_ai\LAi_monsters.c find:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// KK -->
if (GetLocationNation(location) != PERSONAL_NATION)
relation = LAI_GROUP_NEITRAL;
else
relation = LAI_GROUP_FRIEND;
// <-- KK<!--c2--></div><!--ec2-->Replace it with:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// KK -->
if (GetLocationNation(location) != PERSONAL_NATION)
{
// PB: For Bartolomeu -->
if(CheckAttribute(location,"dangerous") && NationsRelations2MainCharacter[sti(GetLocationNation(location))] == RELATION_ENEMY)
{
relation = LAI_GROUP_ENEMY;
}
else
{
relation = LAI_GROUP_NEITRAL;
}
// PB: For Bartolomeu <--
}
else
relation = LAI_GROUP_FRIEND;
// <-- KK<!--c2--></div><!--ec2-->
You can then enable this functionality for a location at a certain point in your quest with a line like:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Locations[FindLocation("Havana_town_01")].dangerous = true;<!--c2--></div><!--ec2-->
Of course at the moment this code is fairly unsophisticated and there's no chance or fame or level influence at all.
If anybody has some input on how any such influence should work, post here, and I'll see about making the required modifications. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid="
" border="0" alt="yes.gif" />