• New Horizons on Maelstrom
    Maelstrom New Horizons


    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!

Changing the "Ransom Prisoner" options

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Originally posted by Couch Captain Charles
Sometimes I am tempted to ask for early retirement and spent the remaining decades of my life modding PotC  <!--QuoteEnd--></div><!--QuoteEEnd-->

Wouldn't we all here reap the benefit of that?
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bow.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="bow.gif" />

CCC, you should sign on to Bilgemunky's crew with Catalina and Fred Bob. The plan is to conduct pirate raids upon the Great Lakes armed with potato guns and water cannons, always planning our raids to be back in time for dinner. I'm responsible for pizza.... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Originally posted by Couch Captain Charles
Maybe human sharks would...  <!--QuoteEnd--></div><!--QuoteEEnd-->

I've always been under the impression that Silehard comes from a legal background, in which case the sharks would line up on either side of him and escort him to shore as a "professional courtesy". <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" />
 
Oh don't get me started, I'm in a verrrrrry weird mood today! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />

But yes, CCC, Sir Christopher is right, you should come along on our pirate retirees cruise. You can captain the couch and man the analog GPS (sextant) and radar system (spyglass)! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
In that case you would never get back in time for pizza. i couldn't navigate on a small pond, let alone the Great Lakes <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" />
 
Oh but you could use a real GPS and radar system, CCC, just give the illusion of using a sextant and spyglass to freak out the yuppie yachters!

Oh, and since we're going to be sailing in the Great Lakes, I know a GREAT pizza place in Chicago... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
<!--QuoteBegin-CouchcaptainCharles+--><div class='quotetop'>QUOTE(CouchcaptainCharles)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-Sirus_Darke+--><div class='quotetop'>QUOTE(Sirus_Darke)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-CatalinaThePirate+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-SirChristopherMings+--><div class='quotetop'>QUOTE(SirChristopherMings)</div><div class='quotemain'><!--QuoteEBegin-->Lady Cat, I know Governor Silehard never made your Governor's synchronized swimming team, but he certainly is a bouyant soul! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/william.gif" style="vertical-align:middle" emoid=":will" border="0" alt="william.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->Aye... But there be sharks in dem dere waters! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

But would even a shark want to eat Slimehard? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

Maybe human sharks would... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
to save the sharks the trouble of filtering the water from the scraps and blood, I'd just take him aboaard, and either
a) make him a part of the crew
B) maroon him
c) take him on land and grapeshot his a$$
d)or ransom his a$$ for more than anyone can afford and if I do not recieve the payment I'd follow up with a, b, or c.

.. in short... just make him pay for polluting the water
 
oops didn't see the second page, but it brings me to a different idea... how to I get rid of teh radar at the top of the screen to make it a bit more realistic?... if possible
 
<b>Covetski</b>,

Have a look here:
<a href="http://forum.piratesahoy.net/sutra47300.php&highlight=compass#47300" target="_blank">http://forum.piratesahoy.net/sutra47300.ph...t=compass#47300</a>
 
Back to the ransomoptions <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" />
Who said one can't have it all? If you can't decide for one modversion make it tweakable, like this:

In the Buildsettings you can choose two options:
1. You can define at which type of location you must be to cash in the ransom. E.g. you could say that the church is the neutral, humanitarian institution that takes care of hostages, so you can set the ransomlocation to "church". Or to "residence" if you think that it should be conducted by government officials. Or to "jungle" for clandestine or "tavern" for comfortable negotiations.
At all other locations the "Ransom Captive" interface is dectivated.

2. As additional challenge and inducement for some voyages you can activate the "Ransom at home only" option. In that case you can ransom a prisoner only at his nation's island.

To add these options insert the following lines into the BuildSettings.h file:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// PRISONER RANSOM OPTIONS, added Oct17 04.  Based on code by `Stone-D` and Nathan Kell, all credit and thanks to them :)

// You can't get ransom for your prisoners at sea anymore but at certain landlocations only. Choose ONE locationtype from the list. Can be changed during saved games.



#define RANSOMSITE "town"  //You can overwrite "town" with "jungle", "dungeon", "residence", "church" or "tavern".



#define RANSOM_AT_HOME    1    // If you set this option to 1 you must take the prisoner to his "homeisland" to get ransom (i.e. the island with the prisoners nation)<!--c2--></div><!--ec2-->

The actual mod consists of a few lines in interfacepassengers.c (the actual changes are the lines with the comment "// ccc ransom..." behind)

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    if(prisonFlag==true)

    {

 SetShowMode(ISHOW_MODE_CAPTIVE);

 // ccc ransom options added Oct17 04.  Based on code by `Stone-D` and Nathan Kell, all credit and thanks to them :)

 //ccc if(true) // NK - if(GetRemovable(chPsgn)) //if( GetRemovable(chPsgn) && CheckAttribute(chPsgn,"nation") && chPsgn.nation==curLocNation )

 if(CheckAttribute(loadedLocation,"type") && loadedLocation.type== RANSOMSITE ) // ccc ransom only at loc as defined in Buildsettings

 {

     SetCharacterRemovable(&chPsgn, true);

     SetSelectable("RELEASE_CAPTIVE",true);

     

     if( RANSOM_AT_HOME==1 && CheckAttribute(chPsgn,"nation") && chPsgn.nation!=Islands[GetCharacterCurrentIsland(_refCh)].smuggling_nation)  //ccc ransom at home option

     {SetSelectable("RELEASE_CAPTIVE",false);} //ccc ransom only at homeisland of captive

     // ccc ransom options end. Last lines are a bit crude coding but that way its more clear what I've messed up;)

 }

 else

 {

     SetSelectable("RELEASE_CAPTIVE",false);

 }<!--c2--></div><!--ec2-->


BTW, still nobody able to tell me how to add a third "free captive for reputation and good relations" interfaceoption ? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />
 
<!--`QuoteBegin-CouchcaptainCharles`+--><div class='quotetop'>QUOTE(CouchcaptainCharles)</div><div class='quotemain'><!--QuoteEBegin-->Back to the ransomoptions  ;)  
Who said one can't have it all? If you can't decide for one modversion make it tweakable, like this:

In the Buildsettings you can choose two options:  
1. You can define at which type of location you must be to cash in the ransom. E.g. you could say that the church is the neutral, humanitarian institution that takes care of hostages, so you can set the ransomlocation to "church". Or to "residence" if you think that it should be conducted by government officials. Or to "jungle" for clandestine or "tavern" for comfortable negotiations.
At all other locations the "Ransom Captive" interface is dectivated.

2. As additional challenge and inducement for some voyages you can activate the "Ransom at home only" option. In that case you can ransom a prisoner only at his nation's island.[/quote]


<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />

This is my first message, so hi everybody, and sorry because i don't speak english very fine, so i hope you can anderstand me.
I like so much this mod, and i've a question:
Can i set the ramsomlocation to prison? So i can earn a reward by his head, instead ramsom him... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" />
On the other hand, if i set the ramsomlocation to church, (i don't know if this can be done... is only an idea <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> ) i earn 0 pieces of gold but i improve my reputation. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/william.gif" style="vertical-align:middle" emoid=":will" border="0" alt="william.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/thumbs1.gif" style="vertical-align:middle" emoid=":2up" border="0" alt="thumbs1.gif" />

Nothing else. Thx all by this new and better game.
Ciao.
 
CCC: I'm not Kieron, but if he doesn't magically appear (hey presto!) I'll try to write a minitut for interfacing (emphasis on try; I'm pretty lost with interfaces).
 
Yes, that would be great, Nathan, thanks for the offer. Even a quick rough outline of the interface codestructure would save me a lot of codesearching. And new interfaces would be very handy not only for this mod but also for things like additional worldmapevents.


<!--`QuoteBegin-Mauric`+--><div class='quotetop'>QUOTE(Mauric)</div><div class='quotemain'><!--QuoteEBegin-->This is my first message, so hi everybody, and sorry because i don't speak english very fine, so i hope you can anderstand me.
I like so much this mod, and i've a question:
Can i set the ramsomlocation to prison? So i can earn a reward by his head, instead ramsom him...  :d: <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" />
[/quote]

Great idea ! And PotC is just the game to make your own ideas come true.

To make the prisons the site of hostage release you just have to put

#DEFINE RANSOMSITE "jail"

into Buildsettings.h . And you can turn ransoming into "headhuntig" by overwriting the interface text. Which you will find (with F3) at several! places in resourceinitextsenglishcommon.txt . Replace "Ransom" with e.g. "Reward", and "Captives can be ransomed for gold." with e.g. "You get a reward if you take this felon to a prison"

And welcome to the forum. Don't worry about your English, it's fine <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Not all towns have jails... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
Absolutely true <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" /> , and therefore I wouldn't recommend the "jail" option for publication. But if Mauric likes that as a special challenge he can easily make it come true <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> Don't dream of your dreamgame, make it ! If you can read and write you can also mod. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/type_1.gif" style="vertical-align:middle" emoid=":nk" border="0" alt="type_1.gif" />
 
If we are looking for locations for turning captives, about ransoming them at the loansharks, who are presumably only loyal to money.

Also what about tuning captured pirates in to Governors, presumably for trial and punishment. That would make their payments rewards not ransom.
 
And here comes another WHAT IF...

What if we could ransom the guy for money, or sell him to the enemy, OR give him back to his nation for a rep boost (or if you give the guy back to the pirates, you get a rep loss...) <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
I love that phrase, "what if"!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />

Gets me into trouble every time! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />

So here's another... The DIPLOMATS... Hmmmm? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
Back
Top