Thalie


Persistentní svět hry Neverwinter Nights
It is currently 19:10 28. Apr 2024

All times are UTC + 1 hour [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Automatické odkrytí mapy
PostPosted: 10:52 11. Aug 2011 
Offline
Temnota
User avatar
 WWW  ICQ  Profile

Joined: 10:42 10. May 2007
Posts: 16269
Location: Somewhere around nothing
Pokud je třeba, aby se postavě odkryla mapa lokace ihned po vstupu, případně v určité chvíli, použijte následující možnosti:

a) Pokud se má mapa odkrýt ihned po vstupu, nastavte na lokaci proměnnou:
onenter string ku_explore_area

b) Pokud se má mapa odkrýt po vstupu na určité místo, vytvoř trigger a do oneneter události dej ku_explore_area

V obou případech musí být v modulu script ku_explore_area:
Code:
/*
 * NAME: ku_explore_area
 * Created kucik 2011-08-11
 *
 * Descritpion:
 *   Explore location for entering player. Could be place to Trigger onenter,
 * or area onenter. When using lock_onenter, variable:
 * 'onenter' string 'ku_explore_area'
 */

void main()
{
  /* Get the Area object which we want to explore */
  object oArea == OBJECT_SELF;
  if(GetObjectType(oArea) == OBJECT_TYPE_TRIGGER) {
    oArea = GetArea(oArea);
  }

  /* Get entering player */
  object oPC = GetEnteringObject();

  /* Explore area */
  ExploreAreaForPlayer(oArea,oPC,TRUE);

}


Pro první případ musí být v lokaci použit lock_onenter script. Ten by měl být v každé lokaci.

_________________
Neaktivní a nezasahující do vývoje. Pouze nouzový support pro WB/DM.
***********************************************
Les jambes en l'air, comme une femme lubrique,
Brûlante et suant les poisons,
Ouvrait d'une façon nonchalante et cynique
Son ventre plein d'exhalaisons.


Top
Reply with quote  

Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]



Who is online

Users browsing this forum: No registered users and 109 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits