Need Help Is it possible to add famous ships sail arround the specific islands with accurate captains??

Barbossa gave a fucking fight
Both at sea and on the deck
It was the most epic battle I ever had in the game
In the captain's cabin I and will ended up against the barbossa and the guy almost kills me and will
But it was fucking epic.
I doubt that davy jones and the black beard will give half the fight he gave

That's indeed very close.
I think you just need to add some "location" attributes for the ship as well.
See if you can figure that out; if not, hopefully @Grey Roger can find some time tomorrow to explain it in more detail.

I use
SetCharacterShipLocation(characterFromID("gm_crew15"), "Kristiania_port");
in StartStoryline.c
The ship ends up on the first free loctor of the "ships_other" type. Not sure how to get it on a specific loctor though.

I use
SetCharacterShipLocation(characterFromID("gm_crew15"), "Kristiania_port");
in StartStoryline.c
The ship ends up on the first free loctor of the "ships_other" type. Not sure how to get it on a specific loctor though.

Click to expand...

That is indeed the way to do it when you want a ship visible from shore.

I think @Ivanusiker wanted the ship to sail around in 3D Sailing Mode, though.

Have a look at "PROGRAM\Storyline\Assassin\quests\quests_reaction.c", specifically at case "rocheship". At this point in the storyline, Roche Brasiliano's ship is placed near a random island and the player's job is to search the whole Caribbean to find it. You'll presumably be placing your ship at a specific island, not a random one, but the various cases for the various islands should give you some valid locators on which to place your ship, as well as the code structure needed to put the ship there.

That's the one. You'll note how each case has the 'Group_CreateGroup', 'Group_AddCharacter', 'Group_SetGroupCommander' and 'Group_SetAddress' lines. The difference is that 'Group_SetAddress' line; that's where the ship is placed. If the island where you want your character is not one of these, you'll need to use TOOL to find a suitable locator. For that matter, even if the island you want to use is one of these, you may want to use TOOL to find where the ship is being placed, in case you want your ship to be somewhere else.

For one thing, you won't need the switch unless your ship also is to be placed at a random choice of island. Also, rename everything! The case names, ship group name and character name all refer to Roche Brasiliano, a character in the "Assassin" storyline.

As to where this piece of code goes - I can not answer that as I know nothing of the rest of your code. If you want the ship to be placed right at the start of the game then you could add something like this into "StartStoryline.c":