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

Editing the StartStoryline.C (14 9.5A)

computica

Master Mariner
Storm Modder
I want to know if the is a PChar command so I can change my relation for my Main Character at the begginning. I'm using other files as references

...
// COMP -->
PChar.nation=PERSONAL_NATION;
HoistFlag(PERSONAL_NATION);
if(AUTO_SKILL_SYSTEM)
{
...
...
}
// <-- COMP
...

I just want a command so I can make the pirates relation to the player as Wary. Would I do this? I'll try it out;
SetNationRelationBoth(PERSONAL_NATION, PIRATE, RELATION_FRIEND);
EDIT:
Didn't work... :p I guess just changing the flag is okay for now. I need to know do you all warehouse a wiki of available commands. It would really help me to self teach myself.
 
SetNationRelation2MainCharacter(PIRATE, RELATION_WARY);

Do a search in quest_reactions.c, it´s usefull for finding the right syntax <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> Thankyou! Do you all have a database of script references?

Cool beans yo! There's so many ref's from the quest_reactions.c file!

EDIT:
Ok New Question! I'm wondering how I could make my a new starting character instead of replacing JackAubery. It seems easy, as I know I would Copy & Rename the Jack Aubery and replace the code as is:
...
void RegisterStoryline(int n)
{
ref storyline; makeref(storyline, Storylines);
aref sl; makearef(sl, storyline.list);
string sn = "sl" + (n + 1);
sl.(sn).id = "ShilaQuinn";
sl.(sn).index = n;
sl.(sn).dir = "ShilaQuinn\";
...

EDIT: I had to many problems inserting the setNR code into the Quest Reactions, Forget that though! Anyways I'm looking into other stuff...
EDIT: Can someone explain to me what "Ship Berthing" is? And how does building buildings on land (Crew Member function) actually contribute to you?
EDIT: Making Characters; can I really make my own characters (NPCs) that will be in-game that use ships???
 
<!--quoteo(post=318762:date=May 10 2009, 03:38 PM:name=Computica)--><div class='quotetop'>QUOTE (Computica @ May 10 2009, 03:38 PM) <a href="index.php?act=findpost&pid=318762"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><img src="style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> Thankyou! Do you all have a database of script references?<!--QuoteEnd--></div><!--QuoteEEnd-->Not really; we just have <i>buildinfo\Keywords.txt</i>; you can also use Code::Blocks; <a href="http://forum.piratesahoy.net//index.php?showtopic=13172" target="_blank">see here</a>. That appears to be a pretty good tool.

<!--quoteo(post=318762:date=May 10 2009, 03:38 PM:name=Computica)--><div class='quotetop'>QUOTE (Computica @ May 10 2009, 03:38 PM) <a href="index.php?act=findpost&pid=318762"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Ok New Question! I'm wondering how I could make my a new starting character instead of replacing JackAubery. It seems easy, as I know I would Copy & Rename the Jack Aubery and replace the code as is<!--QuoteEnd--></div><!--QuoteEEnd-->That should work; make sure you copy the folder too. The Jack Aubrey quest already IS open-ended; there really is no quest at all.
So you could safely just replace that one; you wouldn't lose any content by doing so. <img src="style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" />

<!--quoteo(post=318762:date=May 10 2009, 03:38 PM:name=Computica)--><div class='quotetop'>QUOTE (Computica @ May 10 2009, 03:38 PM) <a href="index.php?act=findpost&pid=318762"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I had to many problems inserting the setNR code into the Quest Reactions, Forget that though! Anyways I'm looking into other stuff...<!--QuoteEnd--></div><!--QuoteEEnd-->Search the various Storyline folders for a NATIONS folder; copy that into your quest folder.
That's where the storyline-relations are defined; you should be able to tweak that to your liking. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />

<!--quoteo(post=318762:date=May 10 2009, 03:38 PM:name=Computica)--><div class='quotetop'>QUOTE (Computica @ May 10 2009, 03:38 PM) <a href="index.php?act=findpost&pid=318762"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Can someone explain to me what "Ship Berthing" is? And how does building buildings on land (Crew Member function) actually contribute to you?<!--QuoteEnd--></div><!--QuoteEEnd-->Shipberthing allows you to "store" a ship somewhere for future use.
It doesn't work at the moment though. <img src="style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
If build, for example, a farm, you can get food from that. You just need to talk to the owner for it.

<!--quoteo(post=318762:date=May 10 2009, 03:38 PM:name=Computica)--><div class='quotetop'>QUOTE (Computica @ May 10 2009, 03:38 PM) <a href="index.php?act=findpost&pid=318762"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Making Characters; can I really make my own characters (NPCs) that will be in-game that use ships???<!--QuoteEnd--></div><!--QuoteEEnd-->Certainly. You might want to have a look at <a href="http://forum.piratesahoy.net//index.php?showtopic=12320" target="_blank">this thread</a>; Peter Willemoes was working on something like that.
 
Thanks man! your a freakin hero around here. <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
Ehm... not really; that would be the modders who actually DO something. <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
 
LMAO! Well if you think about it you actually are doing something, who else is gonna be online to know vital info about this specific game?
 
Back
Top