After long and hard reflection <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" /> I had an idea which I thought worthy of the Nobelprize for Modding <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid="" border="0" alt="icon_mrgreen1.gif" /> : it would add a nice twist and challenge if you could cash in a ransom for a prisoner only if you sailed to his homeisland <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/keith.gif" style="vertical-align:middle" emoid="" border="0" alt="keith.gif" /> . So I spent quite some time tracking down the code for ransoming and finally found this in passengers.c :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> if(prisonFlag==true)
{
SetShowMode(ISHOW_MODE_CAPTIVE);
if(true) // NK - if(GetRemovable(chPsgn)) //if( GetRemovable(chPsgn) && CheckAttribute(chPsgn,"nation") && chPsgn.nation==curLocNation )
{
SetCharacterRemovable(&chPsgn, true);
SetSelectable("RELEASE_CAPTIVE",true);
}<!--c2--></div><!--ec2-->
Which looks like in the original(?) game you could release prisoners only at home. So my grand project had already been done ages ago... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid="" border="0" alt="mybad.gif" />
(Which prooves once again that it is quite likely that different people develop the same idea independent of each other. Just an aside to those who always like to accuse their fellowmodders of "ideatheft" just because they develop an idea that somone else may have already had. Good ideas are usually obvious, so that there is no need to steal them! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid="" border="0" alt="icon_mrgreen1.gif" /> )
Back to the ransom code. Evidence found at the scene of the crime points to a certain "NK" as prime suspect <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid="" border="0" alt="icon_wink.gif" /> So, Nathan, confess: was there any technical reason for disabling that nationcheck, or would it be safe for me to reinstate that?
Another question: I would like to add the option to set your prisoner free WITHOUT ransom. The reward for your generosity would be reputation and an improved relationship to the prisoner's nation. But so far have i no knowledge about adding interfaceoptions. Can someone tell me on the fly how to do that?
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> if(prisonFlag==true)
{
SetShowMode(ISHOW_MODE_CAPTIVE);
if(true) // NK - if(GetRemovable(chPsgn)) //if( GetRemovable(chPsgn) && CheckAttribute(chPsgn,"nation") && chPsgn.nation==curLocNation )
{
SetCharacterRemovable(&chPsgn, true);
SetSelectable("RELEASE_CAPTIVE",true);
}<!--c2--></div><!--ec2-->
Which looks like in the original(?) game you could release prisoners only at home. So my grand project had already been done ages ago... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid="" border="0" alt="mybad.gif" />
(Which prooves once again that it is quite likely that different people develop the same idea independent of each other. Just an aside to those who always like to accuse their fellowmodders of "ideatheft" just because they develop an idea that somone else may have already had. Good ideas are usually obvious, so that there is no need to steal them! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid="" border="0" alt="icon_mrgreen1.gif" /> )
Back to the ransom code. Evidence found at the scene of the crime points to a certain "NK" as prime suspect <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid="" border="0" alt="icon_wink.gif" /> So, Nathan, confess: was there any technical reason for disabling that nationcheck, or would it be safe for me to reinstate that?
Another question: I would like to add the option to set your prisoner free WITHOUT ransom. The reward for your generosity would be reputation and an improved relationship to the prisoner's nation. But so far have i no knowledge about adding interfaceoptions. Can someone tell me on the fly how to do that?