• 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!

Sidequest characters as PC's

Grey Roger

Sea Dog
Staff member
Administrator
Storm Modder
For my next trick, here's Claire Larrouse sitting in San Juan tavern waiting for someone to join her expedition:
claire_tavern.jpg

In an alternate universe, i.e. another game, I'm Claire Larrouse:
claire_player.jpg

That's not done by renaming myself. I've re-enabled the "name" attributes for model "50_33_40Claire", previously commented out so you couldn't meet yourself in the tavern. So, if I'm Claire, who's in the tavern? Let's ask around:
rumour.jpg zaid.jpg

Meet Madeleine Lelong:
madeleine.jpg dialog.jpg

Dialog file "Claire Larrouse_dialog.c" has code to make her say something amusing if you use character model "50_33_40Claire"; it now checks if you are using the same model as the character, which means if you chose to play as Claire and then bought "9Td" from a tailor, Madeleine will say the same:
madeleine_mirror.jpg

(So will Claire if you're playing someone else and bought "50_33_40Claire".)

The game character is still "Claire Larrouse", defined in "PROGRAM\Characters\init\officers.c", but now has a check - if your name is "Claire Larrouse", change the character to use the alternate name and model. Some code already uses 'GetMyFullName' to insert whatever name Claire is using. Others have it hardcoded. The latter are now replaced with preprocessed variables set using 'GetMyFullName', which means if we want to change the alternate character's name, all that is needed is to change her entry in "officers.c" and the new name will appear in dialogs, rumour and questbook. Because it's still the same character, just with a different name and face, all the quest code is unchanged. (Well, not quite, but the change is nothing to do with the character. After fighting the soldiers at the mine, you have the option to refuse to continue, in which case Claire/Madeleine fights you. Then you return to your ship and you're stuck because 'bQuestDisableSeaEnter' is still set so you can't go to sea. I've simply added a line to set it back to false after you have fought her.)

Next to get the same treatment is probably Will Turner, who as well as being the main character in "The Silver Train" sidequest is also two playable characters - one with a brown suit as seen in CotBP, and one with a black shirt and bandana as seen in AWE, this one being more significant because he gets the uncursed Flying Dutchman. @Bartolomeu o Portugues: as this is your sidequest, how do you feel about replacing Will Turner and Elizabeth Swann with Captaine Chevalle and Eduardo Villanueva? Those are the characters used for the similar quest in "Hoist the Colours".
 

Attachments

  • questbook.jpg
    questbook.jpg
    230.7 KB · Views: 6
Back
Top