Author Topic: Blocking out the map?  (Read 255 times)

Legacy_Earthbender

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Blocking out the map?
« on: June 15, 2012, 10:24:22 pm »


               Hi,
I am very new to scripting and module-making. For the module I'm currently working on, I created an area with a labyrinth. I want it to be extra-difficult by blocking out the map - either by making it so that you can't open it at all or that when you DO open it, it's blank - but only in the Labyrinth area. It seems like a pretty easy script, however I don't know how to do it. Any help would be gladly appreciated. Thanks!  'Posted
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Blocking out the map?
« Reply #1 on: June 16, 2012, 03:41:58 am »


               Can not be done by script.

You may want to repost this on the CC board.   You will basicly need to place Blank mini maps into a hak for the tile set you are using for tha eara.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Blocking out the map?
« Reply #2 on: June 16, 2012, 07:13:37 pm »


               

Lightfoot8 wrote...

Can not be done by script.

You may want to repost this on the CC board. You will basicly need to place Blank mini maps into a hak for the tile set you are using for tha eara.


Since no one else seems to want to correct me 'Posted.  I guess I will have to correct myself'Posted.


Even though the CC method is the best way to go for hiding the map.  You can get a simi hide via scripting.  There is no way to fully stop the map from being shown.  You can however Clear what has been reviled  on a interval to where the PC will never have the compleate map reviled.   Here is an example of such a script.


void  HideArea()
{
  object oArea = GetArea(OBJECT_SELF);
  if (oArea != OBJECT_INVALID)
  {
    if( oArea == GetLocalObject( OBJECT_SELF,"oHide"))
      ExploreAreaForPlayer(oArea,OBJECT_SELF,FALSE);
    else return;
  }
  DelayCommand(6.0,HideArea());
}


void main()
{
  object oPC = GetEnteringObject();
  if (GetIsPC(oPC)&& !GetIsDM(oPC))
  {
    SetLocalObject(oPC,"oHide",OBJECT_SELF);
    AssignCommand(oPC,HideArea());
  }
}

Edit: the script would go into the OnEnter Event for the area.
               
               

               


                     Modifié par Lightfoot8, 16 juin 2012 - 06:15 .
                     
                  


            

Legacy_Earthbender

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Blocking out the map?
« Reply #3 on: June 16, 2012, 08:33:29 pm »


               ok thanks so much!