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

POTC! Character Creation!!!

Ah; so it IS fixed then. Good. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
I hope you can get that GiveShip2Character function working. It's really quite useful as far as I'm concerned. <img src="style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />
 
Whit that code I will get a ship whit two characters? Or I will get two characters whit a ship? OR I will get a ship from nowhere to a character? <img src="style_emoticons/<#EMO_DIR#>/wacko.gif" style="vertical-align:middle" emoid=":wacko:" border="0" alt="wacko.gif" /> Sorry for asking but I'm confused about that part. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" />
 
Which code? The GiveShip2Character function? It will give a ship to a character who previously had none or will replace the ship the character was previously having. The ship will be fully repaired and, depending on the last two bools, will also be fully crewed and supplied.
 
So we be getting a free ride? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
You can use it as a cheat, yes. Of course it's also useful in quests when being given a ship. Getting a Tartane during the quest is especially nice. <img src="style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />
 
Hehe. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
Ok! I manage to spawn a small fleet of pirate where I want, well mostly still testing. Now I want the fleet to never surrender and I want only the flag ship to be board able.

I'm sure this is the code for it.

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->characters[GetCharacterIndex("Davy Jones")].nosurrender = 2;
Character_SetAbordageEnable(characterFromID("Davy Jones"), false);<!--c2--></div><!--ec2-->

But when I try it the 2 companion of Davy surrender 3mins after the fight start. So to witch number should I change it so none of the 3 surrender?

Also to make them board able should I put 'false' or 'true'


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
This works per character. So if you set this for the captain of the flag ship, you must also do the same for the captains of the companion ships.
 
Ok! Kool will try it later, thanks Pieter. I'm also trying to work the quest book, I want the quest book to be updated when need it for my quest. You guys know how to do it?


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
<i>SetQuestHeader("Norrington");</i> to add the header (needs only be done once)
<i>AddQuestRecord("Norrington", "1");</i> to add a quest record (needs to be done to update the questbook)
Then add the actual text to RESOURCE\INI\TEXTS\ENGLISH\QUESTBOOK\quests_texts.txt
^ Above applies to game versions excluding the most recent Alpha's.
 
So I can use that for build13? Kool, got to go to work once I come back I will do some testing, thx again.


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Should work for Build 13. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
I manage to spawn a pirate fleet where I want to but I got a hard time trying to add the kill into the quest book. Also when I kill the fleet and leave the surrounding island and come back they there again and ready for action. I got to figure a way to stop the quest from repeating it self. I'm reading the quest_reactions.c file, the part about the Oiseau Bleu to see if I could found a way to fix it. Other then that my quest is doing pretty good so far the quest take about 2hrs to do and still there's more to come. I'll let you guys know once I hit a wall again <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
It starts again? Do you have an EnterLocationQuest somewhere that should be remove at some point or something like that? Perhaps this code helps? It comes from the (unreleased) Interceptor chase in the CotBP quest:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->        case "sink_the_interceptor":
            Group_CreateGroup("Mr. Gibbs");
            Group_AddCharacter("Mr. Gibbs", "Mr. Gibbs");
            Group_SetGroupCommander("Mr. Gibbs", "Mr. Gibbs");
            Group_SetPursuitGroup("Mr. Gibbs", PLAYER_GROUP);
            Group_SetTaskAttack("Mr. Gibbs", PLAYER_GROUP);
            Group_LockTask("Mr. Gibbs");
            Group_SetAddress("Mr. Gibbs", Characters[GetMainCharacterIndex()].location, "", "");

            Sea_LoginGroupNow("Mr. Gibbs");
            SetCharacterRelationBoth(GetCharacterIndex("Mr. Gibbs"),GetMainCharacterIndex(),RELATION_ENEMY);
            RemovePassenger(pchar, characterFromID("Barbossa"));
            RemoveCharacterCompanion(pchar, characterFromID("Barbossa"));
            RemoveOfficersIndex(pchar, GetCharacterIndex("Barbossa"));
//            LAi_QuestDelay("InterceptorCaptured", 1.0);

            Pchar.quest.InterceptorDestroyed.win_condition.l1 = "Ship_HP";
            Pchar.quest.InterceptorDestroyed.win_condition.l1.character = "Mr. Gibbs";
            Pchar.quest.InterceptorDestroyed.win_condition.l1.quantity = 100;
            Pchar.quest.InterceptorDestroyed.win_condition.l1.operation = "<";
            Pchar.quest.InterceptorDestroyed.win_condition = "InterceptorDestroyed";
        break;

        case "InterceptorDestroyed":
            DoQuestReloadToLocation("Black_Pearl", "rld", "loc1", "nowCapturedInterceptorCrew");
        break;<!--c2--></div><!--ec2-->
 
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Pchar.quest.InterceptorDestroyed.win_condition.l1 = "Ship_HP";
Pchar.quest.InterceptorDestroyed.win_condition.l1.character = "Mr. Gibbs";
Pchar.quest.InterceptorDestroyed.win_condition.l1.quantity = 100;
Pchar.quest.InterceptorDestroyed.win_condition.l1.operation = "<";
Pchar.quest.InterceptorDestroyed.win_condition = "InterceptorDestroyed";<!--c2--></div><!--ec2-->

Your code is pretty much similar to this one, I'm gonna see if I can work something out.

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// TIH --> alternate method - allows capturing him from boarding, or killing him, to win the quest
Pchar.quest.Story_Sink_Oiseau1.win_condition.l1 = "Ship_HP";
Pchar.quest.Story_Sink_Oiseau1.win_condition.l1.character = "Virgile Boon";
Pchar.quest.Story_Sink_Oiseau1.win_condition.l1.quantity = 1;
Pchar.quest.Story_Sink_Oiseau1.win_condition.l1.operation = "<";
Pchar.quest.Story_Sink_Oiseau1.win_condition = "Story_Sink_Oiseau";// TIH can use same named end action Oct31'06
Pchar.quest.Story_Sink_Oiseau2.win_condition.l1 = "NPC_Death";
Pchar.quest.Story_Sink_Oiseau2.win_condition.l1.character = "Virgile Boon";
Pchar.quest.Story_Sink_Oiseau2.win_condition = "Story_Sink_Oiseau";// TIH can use same named end action Oct31'06
// TIH <--<!--c2--></div><!--ec2-->


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Is your win_condition quest case executed after sinking those ships?
 
<!--quoteo(post=242527:date=Mar 2 2008, 11:33 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 2 2008, 11:33 AM) <a href="index.php?act=findpost&pid=242527"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Is your win_condition quest case executed after sinking those ships?<!--QuoteEnd--></div><!--QuoteEEnd-->

Don't know yet Pieter just found the code not long ago, after reading your post <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> and I'm still trying to understand it to, I don't even know where it will go. I will have to make more search for that. I'm going to bed I finish working not long ago and my head is tired, I let you guys know of anything later on tonight or tomorrow.


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
What it does? It is a win condition for the quest to continue. Something has to happen before the next quest case will be executed. In the case of the Interceptor chase, the "Ship_HP" of character "Mr. Gibbs" must be below (<) 100 and then the quest case "InterceptorDestroyed" will be executed.
 
I'm working on that atm, also for this code:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Characters[GetCharacterIndex("Jean LeLoup")].NoSurrender = 2;
Characters[GetCharacterIndex("Lorenzo Londo")].NoSurrender = 2;
Characters[GetCharacterIndex("Dianna Hopkins")].NoSurrender = 2;
            
Character_SetAbordageEnable(characterFromID("Jean LeLoup"), true);
Character_SetAbordageEnable(characterFromID("Lorenzo Londo"), false);
Character_SetAbordageEnable(characterFromID("Dianna Hopkins"), false);<!--c2--></div><!--ec2-->

I want Jean LeLoup, Lorenzo and Dianna to never surrender, also I want Jean LeLoup to be board able only not Lorenzo and Dianna. So did I write the code right??


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Also what those code do?

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Group_DelCharacter("Story_Pirate", "Quest pirate")
bQuestDisableMapEnter = false;<!--c2--></div><!--ec2-->


<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Back
Top