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

Getting food options ingame

There's a good chance you'll need to change the "alc" and "exit_sit" code anyway; make a copy of it and adjust it for your own purposes.
You can do that in PROGRAM\QUESTS\quests_common.c.
Then you add the "alc" one in the case where you accept the invitation to sit down.
Then you need to edit your copy of the "alc" case to put you in the correct seat and start the correct next dialog part.
Then you add your copy of "exit_sit" in the case where the dinner scene is over.
 
Check that code and it's probably clear enough. Some locator-affairs, I imagine and removing a lot of the tavernbrawl kind of code.
All you need is sitting and continuing the dialog and then standing up again. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
I'm not sure how to make a break between the part where you make the character sit, and saying things which leads to you standing up again.
 
The code for that is in the case "alc", case "alc_2_prepare" and case "alc2" for sitting down in the tavern.
For standing up it is case "exit_sit" and case "exit_sit_2". This is all in PROGRAM\QUESTS\quests_common.c.

The following lines are the most important for sitting:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->LAi_SetSitType(pchar); // Makes the player sit
LAi_SetActorType(characterFromID(pchar.quest.friend_in_tavern)); // Sets the other character to actor so he can be set to talk to you
LAi_ActorSetSitMode(characterFromID(pchar.quest.friend_in_tavern)); // Sets the other character to sit too
GetCharacterPos(pchar, &Land_posx[0], &Land_posy[0], &Land_posz[0]); // Stores the player position
GetCharacterAy(pchar, &Land_angle[0]); // Stores the player angle
ChangeCharacterAddressGroup(pchar, "redmond_tavern", "sit", "sit11"); // Move the player onto a chair
ChangeCharacterAddressGroup(pchar, "redmond_tavern", "sit", "sit2"); // Move the other character onto a chair
LAi_ActorDialogNow(characterFromID(pchar.quest.friend_in_tavern), pchar, "", -1); // Starts the dialog again, now in sitting mode<!--c2--></div><!--ec2-->

Then for standing up again:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->LAi_SetPlayerType(pchar); // Makes the player stand up again
LAi_SetSitType(characterFromID(pchar.quest.friend_in_tavern)); // Restores the other character from being a sitting actor to being a regular sitting character
TeleportCharacterToPosAy(pchar, Land_posx[0], Land_posy[0], Land_posz[0], Land_angle[0]); // Restores the player position and angle<!--c2--></div><!--ec2-->

Of course this code applies to the tavern affairs, so you'd need to modify it a bit for working in the crew quarters.
 
You probably still need to handle it with some quest cases. I don't think the "teleporting to sitting/standing" code would work in the dialog,
so that'd need to be handled outside the dialog. I recommend you have a look at the habitue dialog file and the code in quests_common.c file.
Together with the pointers from my previous post, you should be able to figure out how that works.
Then once you understand, you should be able to use some similar code in your case as well.
 
ok look im really sorry but i just cant get my head around this quest making lark.....the short jack gold one isnt that good...sorry ...it tells u how to make that specific quest not how to start a blank 'sheet' please could someone help...i really like modding and have done it alot and potc sounds easy its just confusing in notepad all those symbols and phrases like <i></i>phchar<i></i> which i dont get...could someone please pm me or tutor me...please i have some really good idea which would add alot of gameplay i just need some teaching...

thanks
 
Start out with thinking of what you'd like to put in the game. Write up a simple script of a quest, if you will.
Then post that in a new thread on the forum and we'll give you some pointers on how to translate your story into something that works in the game.
 
good idea thats exactly what ive done...
<a href="http://forum.piratesahoy.net//index.php?showtopic=13498" target="_blank">http://forum.piratesahoy.net//index.php?showtopic=13498</a>
 
Ok, you can now accept the crewmember's offer and sit down, whilst commenting on the food. Having a couple of problems with standing up again, but that will be easy to fix.

Question is: where do we go from now? It's relatively easy to make conversation, but the whole dining idea needs something more....
 
You might be able to get some ideas from our old "Dine with the Captain" discussion that you can find <a href="http://forum.piratesahoy.net//index.php?showtopic=11274" target="_blank">here</a>.
 
so.....all I need to do now is make the character stand up again, and then there is a working dialog for the crew's quarters. Could someone suggest how to do the standing up thing?

I have entered:

LAi_SetPlayerType(pchar);
LAi_SetSitType(characterFromID(pchar.quest.friend_in_tavern));
TeleportCharacterToPosAy(pchar, Land_posx[0], Land_posy[0], Land_posz[0], Land_angle[0]);

As you suggested, at the "exit" part.

However, the character remains sitting, although the screen does momentarily fade to black.
 
What happens if you put those lines in the console and then execute them after the dialog closes?
I don't quite understand how you can remain sitting if the <i>LAi_SetPlayerType(pchar);</i> line executes properly. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
I'll put them in the console, but we need a more fitting/exciting place to eat as all he does at the moment is sitndown. No food or anything. Looks like he is just tired and sits in a chair, rather than sitting down to eat.
 
There's just one location with food, namely the small captain's cabin,
but not al ships have that and I don't think there's place to seat two people near there either. <img src="style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
Maybe eventually can do some model-work to add food there?
 
Yes, but if anyone has the time to spare to make a new model, I'd much rather see some deserted desert islands, ones you can walk across in one go, with a bunch of trees in the middle, and sand and coral stretching out a little way. Y'now, so you can walk out a little way into the water. That's what the caribbean needs more than another place to dine!
 
I'll agree with that one! Actual Caribbean-looking islands would be BRILLIANT! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
 
Back
Top