Page 1 of 1

I have two questions regarding EOS.

Posted: Tue Nov 10, 2020 7:42 pm
by Orbitee
I'm a total idiot when it comes to coding :(

So the first question:
How do I deny player from accessing certain option in EOS if it was already done? Is there a way to do it?
For example, the player enters a room, after completing it he won't be able to access it anymore.

The second question:
Player has to collect items located in the rooms before accessing the next area, how do I randomize it so that they spawn in different room.

Re: I have two questions regarding EOS.

Posted: Tue Nov 10, 2020 8:32 pm
by BunByun
Hi !!

First i explain for random
is quite easy, use :

Min +(Math.floor(Math.random() * (Max - Min)))

Min for min, Max for max, cannot be more difficult x3

for the first question is second,
you have multiple version to do that, use a var can only do true/false, or use the module calling Disable !

Hope i have help you ! :3

Re: I have two questions regarding EOS.

Posted: Tue Nov 10, 2020 8:41 pm
by Orbitee
Thank you, I think I understand the one with random! I still don't quite understand how to disable the access though :/

Re: I have two questions regarding EOS.

Posted: Tue Nov 10, 2020 8:51 pm
by BunByun
Image

Use this, you can disable or enable a room, but if you want to denied acces to a room, without disable room i have already said the alternate solution !

But i develop:
use a var with True/False, like a switch
like this:
var Room1_Acces = true

when you have to teleport player in another room, you have multiple option, you can teleport randomly and use a "if" in start of each room you want to test (in this example is Room1), if the condition is true, you can do this room, if not, go back

if Room1_Acces == true

Re: I have two questions regarding EOS.

Posted: Tue Nov 10, 2020 8:57 pm
by Orbitee
Oh now I get it! I forgot about enable and disable since I didn't use them before. Thank you for the explanation!

Re: I have two questions regarding EOS.

Posted: Tue Nov 10, 2020 9:04 pm
by BunByun
No problem !! :-P

If you have another question, or more, PM me ! :-D