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

Information aboute The New Pirate Age - Update! [WIP]

Hallo to all!
How can help me to make some Mix Character.
I will try to make the Mix Character but I need some one for the Talking Haeds.
 
You already know how to make talking heads. It's no different for mixed characters. Whatever you'd normally do to make the talking head, do the same. Start with the talking head model for whichever character you use for the head of the mixed character.
 
Maybe you should check the tutorial. Talking heads can not be switched in the same way as the full body models.
Try the bodies first.
 
You already know how to do this. Write a quest case (in "quests_reaction.c") to make the British guard run to a locator. Then trigger that quest case from the dialog.
 
Ok look that what’s me first Idea.

LAi_ActorRunToLocation(ENGLAND_SOLDIERS, "reload", "reload4_back", "none", "", "", "", 30.0);
 
That won't work because you use it on a specific character. If you have defined a soldier whose ID is "soldier1", then you'd use:
Code:
LAi_SetActorType(characterFromID("soldier1"));
LAi_ActorRunToLocation(CharacterFromID("soldier1"), "reload", "reload4_back", "none", "", "", "", 30.0);
That makes him run to locator "reload4_back" and then disappear. You will need lines for each soldier that you want to run to that locator. For example, if there are three soldiers, ID's "soldier1", "soldier2", "soldier3":
Code:
LAi_SetActorType(characterFromID("soldier1"));
LAi_ActorRunToLocation(CharacterFromID("soldier1"), "reload", "reload4_back", "none", "", "", "", 30.0);
LAi_SetActorType(characterFromID("soldier2"));
LAi_ActorRunToLocation(CharacterFromID("soldier2"), "reload", "reload4_back", "none", "", "", "", 30.0);
LAi_SetActorType(characterFromID("soldier3"));
LAi_ActorRunToLocation(CharacterFromID("soldier3"), "reload", "reload4_back", "none", "", "", "", 30.0);
Change the ID's to match whichever soldiers you want to move. You'll need fewer, or more, lines depending on how many soldiers are going to run.
 
Ah ok thanks.

Which Code have I to use if I get a Gold Chest after a Fight with 50000 Gold?

Do you understand what I mean?
 
To get 50000 gold as a money reward for winning a fight:
Code:
AddMoneyToCharacter(Pchar, -50000);

To give an item:
Code:
GiveItem2Character(Pchar, "lockpick");
That gives you a lockpick. Replace "lockpick" with the ID of the item you want to give. The item must be defined somewhere, either in "initItems.c" or in the storyline's "initQuestItems.c".
 
Ok thank

@Grey Roger
Is the code right for this:
After I kill Pirat Bellamy I win The first Gold Chest with 50000 Gold?

case: „Bellamy_Ends“
GiveItem2Character(Pchar, "lockpick");
AddMoneyToCharacter(Pchar, -50000);
Break;

Thanks
 
Last edited:
If you want to give the player a lockpick and remove 50000 gold, yes. If you want to give the player something else, replace "lockpick" with the ID of the item you want to give. If you want to give the player 50000 gold, remove the "-" sign. So, as another example, suppose you want to give the player a ruby and a cash reward of 50000:
Code:
GiveItem2Character(Pchar, "jewelry3"); // Look in "initItems.c" - "jewelry3" is the ruby
AddMoneyToCharacter(Pchar, 50000);
 
Back
Top