Aller au contenu

Photo

Map question


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Quevy

Quevy
  • Members
  • 50 messages

I know that you can make visible the entire map of the area where a character has an entrance object in it, you can do the opposite? If a character reveals the whole map can receive an object in the inventory?



#2
Asymmetric

Asymmetric
  • Members
  • 164 messages

You can use the function ExploreAreaForPlayer() for both.

ExploreAreaForPlayer(oArea, oPC, True); // will reveal the whole map

ExploreAreaForPlayer(oArea, oPC, False); // will hide the whole map

  • Quevy aime ceci

#3
Quevy

Quevy
  • Members
  • 50 messages
Thanks for the answer, I knew the two functions.
 
My question is different, there is a control that do perform other actions script only if the entire map area is completely revealed?


#4
meaglyn

meaglyn
  • Members
  • 802 messages

No, not that I'm aware of.  What I did to achieve the effect of knowing the PC had explored the entire area was create a system of waypoints in the area each with an area of effect on it. When the PC had entered X different AOEs on the map it was considered explored, where X is a function of area size and how you define completely.   OnEnter of the Xth AOE you can do any extra scripting like giving your item.  It's all automatic except placing the waypoints and defining X.  You would probably not want to do such a thing for every area though. I use it for specific challenge areas (some dungeons, monster infested wildernesses etc).   I had at one point thought about packaging it up as a release but that has not happened...


  • Quevy aime ceci

#5
Quevy

Quevy
  • Members
  • 50 messages
Thank you for your explanation, I just capiso nothing script but I like to think.
I read a little fun and now I have the confirmation that what I was looking there, I had already planned an alternative system to do what, 5 or 6 trigger scattered in the area, when a character passes over sect a variable and checks whether other triggers the area have, in the positive case creates the object.
 
Your system is probably the easiest.
Thank you