Bugfix for LIVAN: GC5 to GC4 stairs

Oct 15, 2010, 11:30 pm
#1
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,187
Ok I don't know if anyone has fixed this yet, but I have a solution to this known non-crashing bug for LIVAN:
Quote
Going from 5th to 4th floor will send you to the stairs that lead to Kharaz-Arad. I don't know how to fix that.

Although it is quite easy to fix, it is not obvious at first. Fixing it requires only an edit of the script files. The two changes I have made are in bold green-flesh colour in the code below.

In dungeon.dat
Dungeon ELPURI_CAVE;
{
  ...
  Level 3;
    {
      ...
      Square, Pos 3,2;
      {
        OTerrain = stairs(STAIRS_DOWN) { AttachedArea = KHARAZ_ARAD; }
        EntryIndex = [b][color=#008000]STAIRS_DOWN + 1[/color][/b];
      }
      ...
    }
  ...
}

and scrolling down a little way, again in dungeon.dat:

Dungeon ELPURI_CAVE;
{
  ...
  Level KHARAZ_ARAD;
  {
    ...
    Room
    {
      Size = 7,6;
      ...
      Square, Pos 3,2;
      {
        OTerrain = stairs(STAIRS_UP) { AttachedArea = 3; [b][color=#008000]AttachedEntry = STAIRS_DOWN + 1; [/color][/b]}
        EntryIndex = STAIRS_UP;
      }
      ...
    }
    ...
  }
  ...
}

It ensures that if the player takes the staircase-up on GC5, he arrives at the staircase-down on GC4, instead of the staircase-down leading to Karaz Arad.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jump to