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

Main player sound (!!!) mod idea!

Capt. Daniel Wolf

Freebooter
Storm Modder
I have an Idea: (for Build 14 alpha 8.5 + patch)

In every minute there should be a check, which rolls a rand(100) random, and if 20, or less, it plays a sound. There will be around 5-6 or more, so another random chooses, which. The sound is played right where the player is, as HE/SHE the one, who says it.. Like sings, make a comment, mumbling, etc.

<b>Theres going to be 3 options for it in the advenced options menu:</b>
Man's sound, Woman's sound, or no sound at all.
I have a volunteer for the woman also ^^ and I try myself as the man...
If the community going like the result, ok, if not, we can found others to do it.

Future idea: able to select from different countries, each in english, but with different accent, and comments.

I need some help though:

Is there a way to force a timed check in each minute?
If not, where can I put the check, which should also check that at least a minute is passed?
I will be very mutch appreciate the help.
Im pretty sure I can manage to do this.

I know how to use the random, but I also need the way
(tough I think I can steal it from NPC's codes) to play a sound file.

Waiting your help, and thank you <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Good winds, and Godspeed!
<img src="style_emoticons/<#EMO_DIR#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" />
 
That sounds interesting; but the fun of it might wear old quick. Unless there's a great deal of variety. Could you elaborate on your idea a bit further? <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
Just like in any other adventure games. The hero sometimes makes a sound. Coughs, whistles shortly,
makes a comment about his ship, actually the ideas need a little play with a microfon, and my volunteer for the woman's sound, and the results that will suffice for me, i post to you, to think about it.
These arent supposed to be longer than 3, or extremely 5 seconds. Similar to the commens of the NPC's:
"You sir.. you are too stupid to be dutch!"
just new ones, and the hero randomly says them, just for the atmosphere.

And only in land, or deck. So in TPS situation.-
Im not planning them to be wow-so-funny, neither too serious, only giving a little life to our muted hero.
Not anything big, and unusual, just comments.

every minute should include a check, but not every minute succeeds. So at least a minute passes before another "comment", and theres a 20% propability in each minute. Also you can turn it off.

If it sounds better, I post some or all "passed my test" sounds to you, to check.
And I plan at least 8 sounds for each sex. - about variety
As a start.
But it could be more of course, if you like the first version. I can wait with the coding.
 
Sounds like fun, sure enough. Should be possible too. If you want to do it, I won't stop you. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Managed to run my function once per every minute.

It runs from a separated Wolf.c file,
#include-d in seadogs.c,
and my CheckPlayerSound() function is called in LAi_player.c
(only its name added there, all the time calculation takes place in my separated file)

Including a rand(100) in the if tag, something, like If(rand(100) <= 20) makes sure, it isnt run in EVERY minute, and adding a rand(n) (n = the number of playable soundcomment versions) to select what file runs, will complete the code,
as I can play any sound with the:

PlayStereoSound("SOUNDFOLDER\mysound.wav"); function.

So basically, the mod is complete ^^ only the soundfiles I need, which we record (at least the test versions) at the end of this week.

That wasnt so hard to find out, huh.

Edited:
Me and my big mouth.. Also I need to put a line into the advanced options, with three option: no sound, male sound, or female sound...
And a check for it in the proper place.
THAT will be the next.
 
You can better have the check for male/female depend on the PChar sex. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Not a bad idea <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> but as a future plan, you can select from different countires voice, with different accents and comments.
And anyway i have to add the option into advanced options, to turn this mod off, if someone dislikes it, no?

<img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
Yet Im planning only one scheme for male, one scheme for female, to let Pieter, and/or others decide how they like it, but Im sure, in the future we can find enough brag, or any other sounds for Jack to make comments.
 
i have some jackspeak qoutes right here in mp3. too big to upload, but i could email them or somesuch.
 
Great! Im not sure, when the mod will publish, or if anyone going to like it, or not, but send them to the address I PM you
 
<!--quoteo(post=305555:date=Mar 9 2009, 05:01 PM:name=Captain 'Dan the Lunatic Wol)--><div class='quotetop'>QUOTE (Captain 'Dan the Lunatic Wol @ Mar 9 2009, 05:01 PM) <a href="index.php?act=findpost&pid=305555"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Not a bad idea <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> but as a future plan, you can select from different countires voice, with different accents and comments.
And anyway i have to add the option into advanced options, to turn this mod off, if someone dislikes it, no?<!--QuoteEnd--></div><!--QuoteEEnd-->For the different countries, you can also use the PChar nation attribute.
But indeed an on/off toggle would be welcome. But that shouldn't be too hard to add anyway. <img src="style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" />

<!--quoteo(post=305571:date=Mar 9 2009, 07:16 PM:name=Captain 'Dan the Lunatic Wol)--><div class='quotetop'>QUOTE (Captain 'Dan the Lunatic Wol @ Mar 9 2009, 07:16 PM) <a href="index.php?act=findpost&pid=305571"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Yet Im planning only one scheme for male, one scheme for female, to let Pieter, and/or others decide how they like it, but Im sure, in the future we can find enough brag, or any other sounds for Jack to make comments.<!--QuoteEnd--></div><!--QuoteEEnd-->Everything I ever say are just random suggestions; I am NOT the big boss here! <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />

<!--quoteo(post=305593:date=Mar 9 2009, 07:49 PM:name=Morgan Terror)--><div class='quotetop'>QUOTE (Morgan Terror @ Mar 9 2009, 07:49 PM) <a href="index.php?act=findpost&pid=305593"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->i have some jackspeak qoutes right here in mp3. too big to upload, but i could email them or somesuch.<!--QuoteEnd--></div><!--QuoteEEnd-->Could you tell that to Short Jack Gold? Might be useful in the Jack Sparrow main quest. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
<!--quoteo(post=305611:date=Mar 9 2009, 10:06 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 9 2009, 10:06 PM) <a href="index.php?act=findpost&pid=305611"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->...
I am NOT the big boss here! <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
...<!--QuoteEnd--></div><!--QuoteEEnd-->
You ARE, Pieter, you ARE <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
the qoutes have the background sounds though. might not be ideal, but you can recognise what's being said.
 
Am not. I'm the random dude who says things that for whatever crazy reason people seem to sometimes listen to. <img src="style_emoticons/<#EMO_DIR#>/wacko.gif" style="vertical-align:middle" emoid=":wacko:" border="0" alt="wacko.gif" />
But in any case: YOU are the boss when it comes to making your own mods.
All I can do is provide some random comments that you are free to ignore.
And when you have a mod made, it'll probably end up in the modpack anyway. Whatever I might've said to start with. <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
And if there's ONE thing I'm good at, it's being WRONG! <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />

<!--quoteo(post=305632:date=Mar 9 2009, 10:01 PM:name=Morgan Terror)--><div class='quotetop'>QUOTE (Morgan Terror @ Mar 9 2009, 10:01 PM) <a href="index.php?act=findpost&pid=305632"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->the qoutes have the background sounds though. might not be ideal, but you can recognise what's being said.<!--QuoteEnd--></div><!--QuoteEEnd-->Just get them to Short Jack Gold and he can pick what he feels might be useful. <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
 
<!--quoteo(post=305611:date=Mar 9 2009, 10:06 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 9 2009, 10:06 PM) <a href="index.php?act=findpost&pid=305611"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I am NOT the big boss here! <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" /><!--QuoteEnd--></div><!--QuoteEEnd--><!--quoteo(post=305622:date=Mar 9 2009, 04:40 PM:name=SuperDurnius)--><div class='quotetop'>QUOTE (SuperDurnius @ Mar 9 2009, 04:40 PM) <a href="index.php?act=findpost&pid=305622"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->You ARE, Pieter, you ARE <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /><!--QuoteEnd--></div><!--QuoteEEnd--><!--quoteo(post=305633:date=Mar 9 2009, 05:01 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 9 2009, 05:01 PM) <a href="index.php?act=findpost&pid=305633"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Am not. And if there's ONE thing I'm good at, it's being WRONG! <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
... so, if I follow you well, you're wrong when you say you're not the Boss?... <img src="style_emoticons/<#EMO_DIR#>/slap.gif" style="vertical-align:middle" emoid=":slap" border="0" alt="slap.gif" />
 
<!--quoteo(post=305638:date=Mar 9 2009, 05:09 PM:name=Morgan Terror)--><div class='quotetop'>QUOTE (Morgan Terror @ Mar 9 2009, 05:09 PM) <a href="index.php?act=findpost&pid=305638"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->soundtracks sent<!--QuoteEnd--></div><!--QuoteEEnd-->
If you mean me - sent to where?
 
<!--quoteo(post=305695:date=Mar 10 2009, 01:26 AM:name=a simple virtual sailor)--><div class='quotetop'>QUOTE (a simple virtual sailor @ Mar 10 2009, 01:26 AM) <a href="index.php?act=findpost&pid=305695"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->... so, if I follow you well, you're wrong when you say you're not the Boss?... <img src="style_emoticons/<#EMO_DIR#>/slap.gif" style="vertical-align:middle" emoid=":slap" border="0" alt="slap.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
Yes, becouse he IS a boss...
 
Seems I'm doing a bad job then if I'm the boss and I don't even know it. <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
 
Back
Top