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

Better Backgrounds

If you uncomment the Teleport line, it will move the pchar to the where the bed locator is outputted as. That may help you check that the mags are correct.
 
the forward mag is ok, only sometimes the direction is not.
The up is for some houses good, for some not.
 
<!--QuoteBegin-Inez Dias+Jul 13 2005, 02:01 PM--><div class='quotetop'>QUOTE(Inez Dias @ Jul 13 2005, 02:01 PM)</div><div class='quotemain'><!--QuoteEBegin-->CCC,
Nathan's made a nice thingy to generate the coords right from the game, and I'm writing a utility so you can put the locators into the gm files with one click.<!--QuoteEnd--></div><!--QuoteEEnd-->
Hey, beautiful! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" /> So we can make additional doors and treasurespots on the fly? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/treas1.gif" style="vertical-align:middle" emoid=":treas" border="0" alt="treas1.gif" />

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->It'll then be only a matter of half an hour to make the locators for all locations that have beds.
<div align="right">[snapback]123424[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
I fear that completing the sneak mod may take SLGHTLY longer: half a YEAR <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
I wonder if the "hiding under the bed" routine could be used for a mod! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
CCC: Not on the fly, but you can take the compile.log generated by the game and feed it to the tool, and the tool will write the locators automatically.

I do need to test and see if we can do locators on the fly. I -really- doubt it, but it'd be _so_ helpful...
 
<!--QuoteBegin-CatalinaThePirate+Jul 15 2005, 09:29 AM--><div class='quotetop'>QUOTE(CatalinaThePirate @ Jul 15 2005, 09:29 AM)</div><div class='quotemain'><!--QuoteEBegin-->I wonder if the "hiding under the bed" routine could be used for a mod!  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
<div align="right">[snapback]124138[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
That's what I thought, too. It's just SO funny... <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" />

We've in the meantime found out that it results from a character patch extending under the bed - which AFAIK is only the case for one of the stock houses anyway, and can be fixed by making the character lie down a bit closer to the edge.
 
With much help from Nathan I finally got it working!
<img src="http://home.arcor.de/swigard/Pictures/Locators2.gif" border="0" class="linked-image" />
The two guys mark the positions for the onbed and upfrombed locators.
Big problem was that the houses in stock game all have their floor about one meter below zero, and for some reason the game refuses to load a character model to a position with negative y coordinate.
So now the tool has an option (in the Extras menu) to translate all the coordinates of a model and its locators, windows, skybox and character patch by a fixed value - so the floor of houses can be raised 1 m before making bed locators.
(However I have no idea if that will not create other problems ...)
The program for making the locators from the output of Nathan's console code is a plugin to the tool, also to befound in the Extras menu.
The helpfile explains how it's done.
The console code and some helper files (that will hopefully all be in the next build or modpack version) can be found <a href="http://home.arcor.de/swigard/Downloads/bedlocators/" target="_blank">here</a> (Just drop them into your Program folder (after making a backup).)

BTW, the new tool version (to be found at <a href="http://home.arcor.de/swigard/Downloads/TOOL/" target="_blank">my homepage</a>) also has a much bigger 3D window, per request from Lass.
 
Neat! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />

Does that mean I can be lazy all day and never get out of bed unless it is really, really, <i>really</i> important, like, say, breakfast and such? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
Find someone to bring you breakfast to bed and you needn't even get up for that <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Hmm, I could train my husband to do that, you mean? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

I did mean in the game, though! Heheh.
 
<!--QuoteBegin-High Sea Lass+Jul 22 2005, 06:01 PM--><div class='quotetop'>QUOTE(High Sea Lass @ Jul 22 2005, 06:01 PM)</div><div class='quotemain'><!--QuoteEBegin-->Hmm, I could train my husband to do that, you mean?  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
<div align="right">[snapback]125569[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Don't waste your time, we husbands are just not suited for such tasks <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" /> Best we can achieve is taking garbage to the dustbin <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />

Chauvinist white male ccc -> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/urgh.gif" style="vertical-align:middle" emoid=":urgh" border="0" alt="urgh.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" /> <- All The PA Gals
 
Great job, Inez, and a VERY good idea about the breakfast in bed! Now if I could only get my cats to... Oh nevermind! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
<!--QuoteBegin-CouchcaptainCharles+Jul 23 2005, 10:57 AM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 23 2005, 10:57 AM)</div><div class='quotemain'><!--QuoteEBegin-->Chauvinist white male ccc -> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/urgh.gif" style="vertical-align:middle" emoid=":urgh" border="0" alt="urgh.gif" />  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" />  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" />  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whippa.gif" style="vertical-align:middle" emoid=":whipa" border="0" alt="whippa.gif" /> <- All The PA Gals<div align="right">[snapback]125645[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Hey now, I am not into that whole whips and leather thing, so leave me out of that fantasy... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.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" />
 
Touche <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
















(= "You BEAT me..." <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> )
 
<!--QuoteBegin-CouchcaptainCharles+Jul 24 2005, 09:00 AM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 24 2005, 09:00 AM)</div><div class='quotemain'><!--QuoteEBegin-->(= "You BEAT me..."  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> )<div align="right">[snapback]125894[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Nuh-uh, that's part of the whole SM deal, and thus not for me. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />

I did, however, defeated you in a fair duel! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/duel_pa.gif" style="vertical-align:middle" emoid=":ixi" border="0" alt="duel_pa.gif" />

<span style='font-size:8pt;line-height:100%'>( It was fair because I won, ha! )</span> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
<!--QuoteBegin-High Sea Lass+Jul 24 2005, 10:08 AM--><div class='quotetop'>QUOTE(High Sea Lass @ Jul 24 2005, 10:08 AM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-CouchcaptainCharles+Jul 24 2005, 09:00 AM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 24 2005, 09:00 AM)</div><div class='quotemain'><!--QuoteEBegin-->(= "You BEAT me..."  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> )<div align="right">[snapback]125894[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Nuh-uh, that's part of the whole SM deal, and thus not for me. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
Unless it comes to naval SM variants, eh ? Don't you deny it, you gave your darkest desires <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" /> away with your own words:
<!--QuoteBegin-High Sea Lass+Jul 25 2005, 08:39 AM--><div class='quotetop'>QUOTE(High Sea Lass @ Jul 25 2005, 08:39 AM)</div><div class='quotemain'><!--QuoteEBegin-->Keelhaul 'em, I say!  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
<div align="right">[snapback]126341[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
<span style='font-size:8pt;line-height:100%'>(slight eeh... editing of quotes <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/poet.gif" style="vertical-align:middle" emoid=":hmm" border="0" alt="poet.gif" /> can prove anything <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" /> )</span>


<!--QuoteBegin-High Sea Lass+Jul 24 2005, 10:08 AM--><div class='quotetop'>QUOTE(High Sea Lass @ Jul 24 2005, 10:08 AM)</div><div class='quotemain'><!--QuoteEBegin-->I did, however, defeated you in a fair duel!  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/duel_pa.gif" style="vertical-align:middle" emoid=":ixi" border="0" alt="duel_pa.gif" />
<span style='font-size:8pt;line-height:100%'>( It was fair because I won, ha! )</span>  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
<div align="right">[snapback]125916[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
You just can't BEAT female logic! I surrender <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bow.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="bow.gif" />
 
<!--QuoteBegin-CouchcaptainCharles+Jul 25 2005, 08:27 PM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 25 2005, 08:27 PM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-High Sea Lass+Jul 24 2005, 10:08 AM--><div class='quotetop'>QUOTE(High Sea Lass @ Jul 24 2005, 10:08 AM)</div><div class='quotemain'><!--QuoteEBegin--><!--QuoteBegin-CouchcaptainCharles+Jul 24 2005, 09:00 AM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 24 2005, 09:00 AM)</div><div class='quotemain'><!--QuoteEBegin-->(= "You BEAT me..."  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> )<div align="right">[snapback]125894[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Nuh-uh, that's part of the whole SM deal, and thus not for me. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
Unless it comes to naval SM variants, eh ?<div align="right">[snapback]126439[/snapback]</div>
<!--QuoteEnd--></div><!--QuoteEEnd-->
Only if SM stands for <b>S</b>ub<b>M</b>erged, as in when you keelhaul the, uh, keelhaulees... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />

<!--QuoteBegin-CouchcaptainCharles+Jul 25 2005, 08:27 PM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 25 2005, 08:27 PM)</div><div class='quotemain'><!--QuoteEBegin-->Don't you deny it, you gave your darkest desires <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" />  away with your own words:
<!--QuoteBegin-High Sea Lass+Jul 25 2005, 08:39 AM--><div class='quotetop'>QUOTE(High Sea Lass @ Jul 25 2005, 08:39 AM)</div><div class='quotemain'><!--QuoteEBegin-->Keelhaul 'em, I say!  <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
<div align="right">[snapback]126341[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
<span style='font-size:8pt;line-height:100%'>(slight eeh... editing of quotes <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/poet.gif" style="vertical-align:middle" emoid=":hmm" border="0" alt="poet.gif" /> can prove anything <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" /> )</span><div align="right">[snapback]126439[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Men. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> Only one thing in their mind, and it ain't a brain! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />

<!--QuoteBegin-CouchcaptainCharles+Jul 25 2005, 08:27 PM--><div class='quotetop'>QUOTE(CouchcaptainCharles @ Jul 25 2005, 08:27 PM)</div><div class='quotemain'><!--QuoteEBegin-->You just can't BEAT female logic!  I surrender <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bow.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="bow.gif" /><div align="right">[snapback]126439[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
All right, knock it off already, I told you I am not into that with submissive and what not stuff... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.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" />


Uh... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> What was this thread about, again? Can anyone help me fill in a better background? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" />
 
Signal-to-noise ratio is going south by the minute, yeah. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

So allow me to get the ball re-rolling:
(Feel free to continue the other, though, a'course. But perhaps in the Burning Brig...)
I have, from, oh, about a month ago by now I guess, some townfantom basics.
They're stored under program\TownFantoms\*.* in the latest modpacks.

The basic idea is we have a set number of behaviors. They'll be stored in object TownFantomBehaviors.
Then whenever we create a new townfantom, we assign a behaviour template and link it to the town.
Behavior is tracked by weekday and by three-hour increments.
The behavior template works in descending order: that is, we try the first location first, and if that fails, go on. If the last block fails, the fantom is not assigned to any location for that period.

The days are handled in a bitwise mask for the week (daymask - seven bits, 1 for 'on for that day' and 0 for off). Timemask is the same, but eight bits, 0-3am 4-6, and so forth.

The locations specified in the schedule are generic; when the schedule is assigned we convert the locs to their actual location IDs.
Here's a schedule example (a simple one I came up with and will test as soon as I get the rest working).
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->/* Notes:
    If timemask or daymask is not assigned, it is assumed to be always true.
    If chance is not assigned, it is assumed to be 1.0--i.e. do this always.
    timemask operates off three-hour 'timesegs' or time segments.

    Locations: You MAY assign locations. Here is the list of supported locations
    +Home - the fantom's house, or other place of residence.
    +Church - the town's church. If no church is specified, the fantom's home will be used.
    +Town - the town proper. If the town has multiple locations, when the fantom is first checked in a timeseg a random one will be assigned.
    +Port - the town's port.
    +Mansion - the town governor's residence/mansion/house/whatever.
    +Tavern - the town's tavern.
    +Store - the town's store.
    +Shipyard - the town's shipyard.
    +Exit - the area right outside the town's walls.

    You can add more. If you want a town location, add an entry to the town define
    ctown.locations.(loc_general_name) = LocationID;
    (example: for Redmond, ctown.locations.prison = "Redmond_prison"; )
    Then you can use loc = "prison" below.

    If a town has multiple copies of a location, the form is
    ctown.locations.(loc_general_name) = number_of_locations;
    ctown.locations.(loc_general_name).loc0 = ID_of_first_version; and so forth.

    If a location is not found, the entry is DELETED.
    */
    
    // Male Townsperson, normal religion level.
    TownFantomBehaviors.MaleCitizen_Rel0 = "";
    makearef(schedule, TownFantomBehaviors.MaleCitizen_Rel0);

    // sleep
    schedule.l0 = "Sleep";
    makearef(curitem, schedule.l0);
    curitem.loc = "Home";
    curitem.timemask = "11000001";

    // go to church
    schedule.l1 = "Go to church";
    makearef(curitem, schedule.l1);
    curitem.loc = "Church";
    curitem.timemask = "00110000"; // 6am-noon
    curitem.daymask = "1000000"; // Sunday only
    curitem.chance = 0.75; // might be sick
    
    // stay home from church if above chance fails
    schedule.l2 = "Stay home from church";
    makearef(curitem, schedule.l2);
    curitem.loc = "Home";
    curitem.timemask = schedule.church.timemask;
    curitem.daymask = "1000000"; // Sunday only

    // go to tavern for special
    schedule.l3 = "Tavern special";
    makearef(curitem, schedule.l3);
    curitem.loc = "Tavern";
    curitem.timemask = "00111110";
    curitem.daymask = "0111111";
    curitem.chance = 0.03;

    // go to tavern normal
    schedule.l4 = "Tavern";
    makearef(curitem, schedule.l4);
    curitem.loc = "Tavern";
    curitem.timemask = "00001010";
    curitem.daymask = "0111111";
    curitem.chance = 0.15;

    // buy stuff at store
    schedule.l5 = "Go to store";
    makearef(curitem, schedule.l5);
    curitem.loc = "Tavern";
    curitem.timemask = "00101100";
    curitem.daymask = "0111111";
    curitem.chance = 0.05;

    // walk around in port
    schedule.l6 = "Port";
    makearef(curitem, schedule.l6);
    curitem.loc = "Port";
    curitem.timemask = "00101100";
    curitem.daymask = "0111111";
    curitem.chance = 0.05;

    // walk around the exit
    schedule.l6 = "Play or work outside";
    makearef(curitem, schedule.l6);
    curitem.loc = "Exit";
    curitem.timemask = "00111100";
    curitem.daymask = "1111111";
    curitem.chance = 0.1;

    // walk around town
    schedule.l7 = true;
    makearef(curitem, schedule.l7);
    //curitem.timemask = "00111110";
    curitem.chance = 0.75; // chance of fantom not being there at all

    schedule.qty = 8;<!--c2--></div><!--ec2-->
 
<span style='font-size:8pt;line-height:100%'>(( sound of a radio tuning )) <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /></span>

Just a thought here regarding the timemask...

If all this sneaky mod comes into play, would it not be better to have more than 8 bits for hour? Or else it will be rather easy to know when changes will come, no? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

<b>"Ha-haa, 3 o'clock, the town will change now! Time to make my move!"</b>

Or something. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

12 or 24 bit would make it more interesting, I think. But does it mean a lot more work, perhaps? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />

Just a thought, as I said, and perhaps one best mentioned early on. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
Back
Top