Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Is it possible to have only one person in an area at a time?


Ghost Fox
 Share

Recommended Posts

I'm trying to set up an event, map, or part of the game in general where I don't want two people to be able to enter. Is there a way to do this? Global events, maybe?

For example, let's say there's an NPC (event) you talk to, and a training room you can enter from there. Is there a way I can have it so that the NPC will not accept any other players as long as that one player is busy doing the training room, and only opens up once they leave? I've got a basic handle of how the event system works, so I'd like any suggestions one might have.
Link to comment
Share on other sites

Thanks, I've followed your advice.

Unfortunately, a lot of the topics could not be found. The best topic I found had this quote in it:

> What you need to do is make a function to duplicate a map and rid it when it's exited. This way, the map is only used one time before being deleted.
>
> Party Enters Instanced Map -> Defeats Boss -> Leaves Instanced Map -> Map Destroyed

I figure this involves programming the engine somehow, but I've nowhere to start. The thread mentioned "Touch of Death forums", but the topics didn't appear to exist anymore.

Any idea where I could start to work on this instance stuff?
Link to comment
Share on other sites

Variables are for one player only. I doubt that would work.

* * *

@'aeronx':

> http://www.eclipseorigins.com/thread-2746.html?highlight=instanced
>
> You didnt search a lot.. did you?

Okay, a lot of work has been done using the link you provided. But there is ONE problem.

Near the end of the tutorial, there's a missing image that is crucial. It says "First off Find the Frame: fraMapWarp and make it look like this", followed by the broken image.

If you're  experienced with this particular thing, could you take a picture for me?
Link to comment
Share on other sites

Try using the Event switches, like woah, who knew those would work, or the event variables. You can have the event have a self switch that changes when a player talks to them, you'll need to change some code to make it so it needs to be the same player, or have an even inside that switches a global var back when they exit.

–--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Basically, there are two types of variables, Player (which are set to a player and can be accessed by all events for that one player), or the global (name might be wrong) (which are set by an event and all events see that variable and can change it, they are applied to everyone)

There's also Self Switches which an event sets and it switches to that one thing (it is set by a player and only affects that single event, you can make more pages for the switches)

Other than that, it's basically simple things that you can figure out as you go, that's just for variables and such things, hopefully this helps
Link to comment
Share on other sites

Baron that is a **really** poor solution and only allows for a single player to ever enter the map.. I know this is literarily what he asked for, but the tutorial provided (and which is last question is based around) is based on instancing which is far more interesting as it would allow everyone to get their own version of the map and not lock people out.

Anyway, I am pretty sure they added a tickbox to the warp panel in the map editor screen, the name for that tickbox should be in your code somewhere.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...