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

How do you make quests ?

england

English nobleman and Belgian bastard
hi all

i would like to learn how to make quests .
i've looked at the texts and it looks a bit like visual basic

anyone knows a good page or somthing like that 2 learn it (for in case i realy don't lose my intrest in a couple of minutes <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" /> )

thanks
 
Well, mate, make a quest it's lot of work!!! And you must have knowledge in codding (in potc codding) Not like me ... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/ib012.gif" style="vertical-align:middle" emoid=":cry" border="0" alt="ib012.gif" />:
 
PotC coding is C++, which I find vaugely akin to HTML. You say visual basic, so maybe you're familiar with it after all.

There are lots of ways to add quests... the most basic are simple character encounter/dialog file additions, maybe toss in some items... the more advanced ones add locations and control the action a bit more.

There should be some stickies and wikis and such at the top of the modding forum.
 
I am afraid that it is hardly possible to answer your question. There are probably hundreds of questrelated codefunctions that can be used to write quests, and all are open c+-like code in (almost <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> ) plain English. That is a blessing and a curse: you can change almost everything in PotC and turn it into your dreamgame, but you must scan through tons of stuff to find the pin in a haystack that you need. (sometimes I just break down and cry <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" /> seeing all those things that i would like to change, but just can't for lack of time)

There is only one way to learn questwriting (and nobody can save you the effort): you must take a similar quest from the original game, track down the code related to it and copy and change it to suit your needs. Start your search at the dialogoption that trgigers the quest.

The files questsquest_reaction.c and both_reaction.c are a treasuretrough of questcode. Just leafing through them will give you a good idea about the questfunctions.
 
When I get an MS Visual Basic error trying to run the game, it says it's a problem with the C++ coding. Maybe it is plain C and MS doesn't know the difference... I'm afraid I don't.
 
<b>england, </b>CCC has given you good advice - it's how I learned - find a quest that is similar to something you'd like to try to create, and try to follow along in the code to figure out what triggers what - a lot is triggered in quests_reaction.c - you also should look at the dialogs as there are some triggers there as well.

Also, take a look at the tutorials in the PotC Modding WIKI. Here's a link:

<a href="http://forum.piratesahoy.net/ftopic1561.php" target="_blank">http://forum.piratesahoy.net/ftopic1561.php</a>
 
<b>england</b>,

Before you start making a quest I suggest that you find a solid brick wall and run at it head first as fast as you can.
If you still want to write a quest when you regain consciousness then read the tutorials <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />


I would suggest that you start with an easy quest and use the KISS formula (which stands for Keep It Simple, Stupid)
Map out the quest thoroughly (including dialog and dialog paths) on paper before you even start writing the code for it.
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/huhh.gif" style="vertical-align:middle" emoid=":eek:k" border="0" alt="huhh.gif" /> Funny how all modders seem to have the same opinion. Ye bashes yer noggin and writes code in blood... <img src="http://www.ganotherapyusa.com/extras/modding.gif" border="0" class="linked-image" />

But if you're peculiar, like most of us modders, I guess you just get the fever and bash away... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/blush.gif" style="vertical-align:middle" emoid=":eek:ops" border="0" alt="blush.gif" />: It is kinda fun, tho. Does that make me a masochist? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /> YES!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> Rum helps. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" />
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
i havn't seen anything like it what i had in mind <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/ib012.gif" style="vertical-align:middle" emoid=":cry" border="0" alt="ib012.gif" />
however , i'm making a document wich will contain all the information of what i had in mind for a new mainquest

I think that this will be a great help for the modders who are making the expansion pack ( and i realy have a great new mainquest idea)

i will publish it for modders next week or so , mainwile i'll try to study how the code works <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
<!--QuoteBegin-alan_smithee+--><div class='quotetop'>QUOTE(alan_smithee)</div><div class='quotemain'><!--QuoteEBegin-->When I get an MS Visual Basic error trying to run the game, it says it's a problem with the C++ coding. Maybe it is plain C and MS doesn't know the difference... I'm afraid I don't.<!--QuoteEnd--></div><!--QuoteEEnd-->

it's not strictly either, heh. nk called it "`c-like`" <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Back
Top