But But But Sandi! I got my info from a zip file patch. Heaven forbit I use
that patch. Which I didn't I just looked to it for reference. Heres what I
had initially for the door sequence:

 All of this particular info is found in my act_move.c and is in this order
with some
information not shown of course just info partaining to extraexits:

char * const dir_name []  =  /* Comes 1st before door assignment */
{
    "north", "east", "south", "west", "up", "down", "northeast",
"northwest", "southeast", "southwest",

Here is my rev_dir beforepatch file: /* This after dir_name */
2, 3, 0, 1, 5, 4, 9, 8, 6, 7
(had to mess with this in order for it to reflect the appropriate exits.)

 /* This assigns door numbers for lookup */
    if ( !str_cmp( arg, "n" ) || !str_cmp( arg, "north" ) ) door = 0;
    else if ( !str_cmp( arg, "e" ) || !str_cmp( arg, "east"  ) ) door = 1;
    else if ( !str_cmp( arg, "s" ) || !str_cmp( arg, "south" ) ) door = 2;
    else if ( !str_cmp( arg, "w" ) || !str_cmp( arg, "west"  ) ) door = 3;
    else if ( !str_cmp( arg, "u" ) || !str_cmp( arg, "up"    ) ) door = 4;
    else if ( !str_cmp( arg, "d" ) || !str_cmp( arg, "down"  ) ) door = 5;
    else if ( !str_cmp( arg, "ne" ) || !str_cmp( arg, "northeast"  ) ) door
= 6;
    else if ( !str_cmp( arg, "nw" ) || !str_cmp( arg, "northwest"  ) ) door
= 7;
    else if ( !str_cmp( arg, "se" ) || !str_cmp( arg, "southeast"  ) ) door
= 8;
    else if ( !str_cmp( arg, "sw" ) || !str_cmp( arg, "southwest"  ) ) door
= 9;
    else
    {
 for ( door = 0; door <= 9; door++ )

*** Here is what I got from this patch file: ***

char * const dir_name []  = /* Comes 1st before door assignment */
{
    "north", "east", "south", "west", "up", "down", "northeast",
    "southeast", "southwest", "northwest",
};

const sh_int rev_dir  []  = /* This after dir_name */
{
    2, 3, 0, 1, 5, 4, 6, 7, 8, 9
};


          /* This assigns door numbers for lookup */
    if ( !str_cmp( arg, "n" ) || !str_cmp( arg, "north" ) ) door = 0;
    else if ( !str_cmp( arg, "e" ) || !str_cmp( arg, "east"  ) ) door = 1;
    else if ( !str_cmp( arg, "s" ) || !str_cmp( arg, "south" ) ) door = 2;
    else if ( !str_cmp( arg, "w" ) || !str_cmp( arg, "west"  ) ) door = 3;
    else if ( !str_cmp( arg, "u" ) || !str_cmp( arg, "up"    ) ) door = 4;
    else if ( !str_cmp( arg, "d" ) || !str_cmp( arg, "down"  ) ) door = 5;
    else if ( !str_cmp( arg, "ne" ) || !str_cmp( arg, "northeast"  ) ) door
= 6;
    else if ( !str_cmp( arg, "se" ) || !str_cmp( arg, "southeast"  ) ) door
= 7;
    else if ( !str_cmp( arg, "sw" ) || !str_cmp( arg, "southwest"  ) ) door
= 8;
    else if ( !str_cmp( arg, "nw" ) || !str_cmp( arg, "northwest"  ) ) door
= 9;
    else
    {
 for ( door = 0; door <= 9; door++ )

char * const dir_name []  =
{
    "north", "east", "south", "west", "up", "down", "northeast",
    "southeast", "southwest", "northwest",
};


     Now would that cause the door exits to be placed on the target dig room
and not the origin room? IE.. From Room #31
east dig 32, *room created* no exits in room 31 but when you 'goto' room#32
you have a east + west exit leading to itself(#32).
Now east exit should be in room #31 and the west exit should be in room #32
and a two way link established. Can the door assignment
affect this? I'm baffled.


      Dantin

P.S. I had poored through the code and replaced all door  related numbers
from 5's to 9's and 6's to 10's. Here is one part of the
patch that was not in the text file:

Located in db.c
***************
*** 3276,3282 ****
  {
      int door;

!     while ( ( door = number_mm() & (8-1) ) > 5)
   ;

      return door;
--- 3276,3282 ----
  {
      int door;

!     while ( ( door = number_mm() & (12-1) ) > 9)
   ;

      return door;

Thoughts *gacks*? anyone?



Reply via email to