Jump to content
  • 0

Dungeon Player Limit


MrValenza

Question

Hello,

 

 Is there any way for me to create something that allows a Dungeon event to de-spawn if more than # of allowed players are at a Dungeon Entrance?

 

Ex:  My party of 4 (including myself) are about to use a key to enter the dungeon but if another player enters the map, the Event de-spawns/closes.

Or as soon as 4 people are in the dungeon itself, the Dungeon entrance Event de-spawns for other players?

 

Thank you =)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1
  On 4/9/2020 at 4:44 AM, Joyce said:

I suppose you could keep a count of every time the event warps a player and disable it after the count reaches a certain amount. 

 

You'd have to find a way to reset this without getting it permanently closed though.. Like if the players leave before the dungeon is cleared what will happen? What if someone logs out in said dungeon? 

Expand  

I did everything you said, and what he said above through events.
 

I will not say step by step why it is too long, or send images of how it is done, I will say it in a simple way and then if you can understand it you can reproduce it perfectly.

 

1 - Count how many players are inside the dungeon.

  Reveal hidden contents

 

2 - Know who is inside the dungeon.

  Reveal hidden contents

 

3 - Dungeon stages.

  Reveal hidden contents


4 - If a player leaves the dungeon before starting.

  Reveal hidden contents

 

5 - If the player leaves the game.

  Reveal hidden contents

 

6 - If the player dies in the dungeon.

  Reveal hidden contents


Failures:

  Reveal hidden contents

 

If you are a novice and do not know how to handle events, you will not understand anything I said. But I left a good example of how it works, it is not an easy question, especially if you want more dungeons. If you are a novice, focus on your game on simpler things, and then develop your ability to handle events, conditions and variables. Then return here and you will see that you will be able to understand. If you understood, reproduced perfectly, good, just apply in the same way for other dungeons and NEVER let two dungeons run at the same time IF you are going to use the same player counting variable for both events. How I do.

Link to comment
Share on other sites

  • 0

I suppose you could keep a count of every time the event warps a player and disable it after the count reaches a certain amount. 

 

You'd have to find a way to reset this without getting it permanently closed though.. Like if the players leave before the dungeon is cleared what will happen? What if someone logs out in said dungeon? 

Link to comment
Share on other sites

  • 0
  On 4/9/2020 at 11:58 AM, Weylon Santana said:

I did everything you said, and what he said above through events.
 

I will not say step by step why it is too long, or send images of how it is done, I will say it in a simple way and then if you can understand it you can reproduce it perfectly.

 

1 - Count how many players are inside the dungeon.

  Reveal hidden contents

 

2 - Know who is inside the dungeon.

  Reveal hidden contents

 

3 - Dungeon stages.

  Reveal hidden contents


4 - If a player leaves the dungeon before starting.

  Reveal hidden contents

 

5 - If the player leaves the game.

  Reveal hidden contents

 

6 - If the player dies in the dungeon.

  Reveal hidden contents


Failures:

  Reveal hidden contents

 

If you are a novice and do not know how to handle events, you will not understand anything I said. But I left a good example of how it works, it is not an easy question, especially if you want more dungeons. If you are a novice, focus on your game on simpler things, and then develop your ability to handle events, conditions and variables. Then return here and you will see that you will be able to understand. If you understood, reproduced perfectly, good, just apply in the same way for other dungeons and NEVER let two dungeons run at the same time IF you are going to use the same player counting variable for both events. How I do.

Expand  

 

 

Thank you so much for taking your time for all of this. I will study it and once I understand it, try to get something working by trial and error. Again, thank you!

Link to comment
Share on other sites

  • 0
  On 4/9/2020 at 10:58 PM, MrValenza said:

 

 

Thank you so much for taking your time for all of this. I will study it and once I understand it, try to get something working by trial and error. Again, thank you!

Expand  

Let me know if you don't understand anything, or if you have problems, if you want, I can show you how it works in my game (this whole part is already translated into English, so you can understand)

Link to comment
Share on other sites

  • 0

I am not that point yet in my game where I should add these as it is in very early alpha stages. I may release a test and see how players do in the 2 dungeons and see if when each dungeon gets stacked if it makes it so easy that I may need to add it. Nonetheless, it is very useful but I am completely new to this so i'd have to take time to understand it so I have an "okay" foundation from my own knowledge thanks to your breakdown of the examples above. Cheers

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
Γ—
Γ—
  • Create New...