ID:179641
 
I am just wondering how i could make a one player game(so no one else can play.)
Thanx



~Richter
Richter wrote:
I am just wondering how i could make a one player game(so no one else can play.)
Thanx



~Richter

world
visibility=0

and make something that checks if there is already a mob in world that has a client
Make a global var and check that apon login example:

var/People = 0

mob/Login()
if(!People)
..()
else
src<<"This is a one player game!"
del(src)


You would also check for mobs in the world like this:

mob/Login()
for(var/mob/M in world)
if(M.client)
src<<"This is a one player game!"
del(src)
else
..()
In response to Nadrew
Nadrew wrote:
Make a global var and check that apon login example:

> var/People = 0
>
> mob/Login()
> if(!People)
> ..()
> else
> src<<"This is a one player game!"
> del(src)
>
>

You would also check for mobs in the world like this:

> mob/Login()
> for(var/mob/M in world)
> if(M.client)
> src<<"This is a one player game!"
> del(src)
> else
> ..()
>


first what is
TAG do??? Second i answered it first and better my cookie!
In response to Air _King
First off:

the <DM> tag starts a code block which ignores all margins and html tags within it.


Second:

I was in the process of answering while you answered with a sort not very helpful post, he may not have known how to check for mobs in the world.
In response to Nadrew
Nadrew wrote:
First off:

the <DM> tag starts a code block which ignores all margins and html tags within it.


Second:

I was in the process of answering while you answered with a sort not very helpful post, he may not have known how to check for mobs in the world.

How would they log in if the visibility is set to 0?
In response to Air _King
Using the port number of the world.

eg

Hosting on port 1234


Typed in 1234
in the input area of dream seeker..bam connected to the world!