<!--quoteo(post=313416:date=Apr 15 2009, 11:53 AM:name=bartolomeu o portugues)--><div class='quotetop'>QUOTE (bartolomeu o portugues @ Apr 15 2009, 11:53 AM) <a href="index.php?act=findpost&pid=313416"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->All the signs are in the port. But I can post a list of the locations later today. As I said two locations for each Spanish town and one of them would always be the port. Of course, I will successively add the locations in the quests_reaction.c ; first Santiago after the attack's warehouses and so on....<!--QuoteEnd--></div><!--QuoteEEnd-->With the code I posted, you should be able to do it yourself, right?
<!--quoteo(post=313416:date=Apr 15 2009, 11:53 AM:name=bartolomeu o portugues)--><div class='quotetop'>QUOTE (bartolomeu o portugues @ Apr 15 2009, 11:53 AM) <a href="index.php?act=findpost&pid=313416"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->About how frequent, I let you choose the value. Anyway, we can test the mod when finished and I'll give you my opinion.<!--QuoteEnd--></div><!--QuoteEEnd-->I still need to know the range of that value though. What's the highest negative value you have seen it at during the Bartolomeu quest?
Imagine that the highest negative value is -10, maybe the following would work:<!--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 && abs(GetNationRelation2MainCharacter(sti(GetLocationNation(location)))) > rand(sti(PChar.skill.luck)))
{
relation = LAI_GROUP_ENEMY;
}
else
{
relation = LAI_GROUP_NEITRAL;
}
// PB: For Bartolomeu <--
}
else
relation = LAI_GROUP_FRIEND;
// <-- KK<!--c2--></div><!--ec2-->
If so, the higher your luck, the lower the chance of everybody turning hostile, but the more you're hated by that nation the higher the chance.
It could be that the hostility happens too frequently with this code, though, in which case we'd need to add a factor decreasing the chance.
I haven't tested this chance code, but give it a try and see what you get. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid="
" border="0" alt="dunno.gif" />
<!--quoteo(post=313417:date=Apr 15 2009, 11:57 AM:name=damski62)--><div class='quotetop'>QUOTE (damski62 @ Apr 15 2009, 11:57 AM) <a href="index.php?act=findpost&pid=313417"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Yes...they look a lot better.<!--QuoteEnd--></div><!--QuoteEEnd-->In that case I'll be happy to add them if you make them! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid="
" border="0" alt="w00t.gif" />