ID:161582
 
mob
verb
Choose_Map()
set category = "Host"
for(var/mob/curHost in world) //Loops thru every mob in the world
if(!curHost.client.address) //If they don't have an address, they're usually the host. There's some exceptions, however.
usr.verbs += typesof(/mob/verb/Choose_Map/)
switch(input(curHost,"Which map would you like to select?","Map Selection","Map 1") in list("Green Greens","Hyrule","Map3")) //Does a switch and asks the player what map they want.
if("Green Greens") //If they chose the first map...
for(var/mob/M in world)
M.loc = locate(/turf/greengreens)//Move all users to the map.
if("Hyrule")
for(var/mob/M in world)
M.loc = locate(/turf/hyrule251)
if("Map3")
New()
..()//Move all users to the map.
Team_Battle()
set category = "Host"
for(var/mob/curHost in world) //Loops thru every mob in the world
if(!curHost.client.address) //If they don't have an address, they're usually the host. There's some exceptions, however.
usr.verbs += typesof(/mob/verb/Choose_Map/)
switch(input(curHost,"How many teams two or three?","Host") in list("Two","Three","Cancel")) //Does a switch and asks the player what map they want.
if("Two") //If they chose the first map...
for(var/mob/M in world)
world<<"Team Battle: Two teams! Choose your color!"
M.loc = locate(/turf/two)//Move all users to the map.
if("Three")
for(var/mob/M in world)
world<<"Team Battle: Three teams! Choose your color!"
M.loc = locate(/turf/three)//Move all users to the map.
if("Cancel")
return
mob
host
verb
verbshere()
set category = "Host"


theres my manual host code so far so how do i turn it into autohost? also i want team battle to be a 30% chance out of 100% if that helps

As for sight how do i make people see to the right 25 blocks and up 19 blocks so the bottom left location is 1,1,1 top right is 25,19,1 top left is 1,19,1 bottom right is 25,1,1
SadoSoldier wrote:
theres my manual host code so far so how do i turn it into autohost?

No, it's not your code. Don't copy code. Learn how to code yourself, otherwise you're going to make topics like this all the time and never get anything done.
In response to Kaioken
No, the code MOSTLY came from you but yours didnt work so I edited it a bit to make it work my way. Besides if your posting to help someone but then either give no description, too little of 1, or too much of 1 then its obvious that the person your trying to help is going to get that code due to the fact they 1) didnt understand what u were saying 2) are too lazy to try to understand
3) learns better from codes then words.

As for me im no. 3 and I know how to do what I'm trying to get done I'm just not sure how to make the client do it instead of a mob I learned almost everything from the Blue Book by reading codes, compiling numerous times trying to fix the errors so next time you post to help don't complain if someone takes your code also if your going to go on someone elses post just to complain with no intention of helping them because they used someone elses codes DON'T. Now if your patient enough to read all that then you will be patient enough to read a few more sentences such as:
Don't post unless u help
Don't complain over something
Don't do anything i said not to do in this post

from BYOND staff -.-

Unfortunately, we don't have the manpower (or legal jurisdiction, in some cases) to deal with issues between users.

BYOND staff merely provide the tools to create and play games, and a website to display them on; the games themselves are created and run by users, for users. As such, we don't have any control over their content or management.

So theres nothing stopping people from copying codes.

NOW if anyone will post back to help me instead of complaining I will be very grateful -.- and I try to refrain from argueing back so theres my only arguement for today.
In response to SadoSoldier
Now, I'm going to go get ready for the art show. So if anyone is interested in helping me and not complaining then please do reply back. Just show me how to make it where the client does it and it keeps looping if the host isnt online ty.
In response to SadoSoldier
SadoSoldier wrote:
No, the code MOSTLY came from you but yours didnt work so I edited it a bit to make it work my way. Besides if your posting [...]

I don't know what you're getting it. I didn't post because I was angry you "stole" my code or anything, I don't even think it's me you got it from either way.

Don't post unless u help
Don't complain over something
Don't do anything i said not to do in this post

I didn't post a complaint, I posted advice. If you keep on copying code, you're not gonna get anywhere soon.

from BYOND staff -.-

Again, this has nothing to do with anything at hand whatsoever.

So theres nothing stopping people from copying codes.

Read above. Also, of course there's nothing stopping you, unless you want to actually get better and learn to make your own code. If you don't want to become good at coding, then you don't have to, though.


As for your question, it's almost unanswerable, since you didn't describe what you want to do enough. What am I supposed to understand by "autohost"? Also, host what? I could take guesses of course, but it may not be what you want.

For your 2nd, added question, what you want is probably the view variable. Look it up in the DM Reference.
In response to Kaioken
No, it's not your code. Don't copy code. Learn how to code yourself, etc

sounds pretty mad to me

and as for it not being ur code i wsn't sure whose it was but i know u did reply to that post so it was a wild guess

as for the autohost i told u theres the manual host codes just make it auto simple
In response to SadoSoldier
so
mob
Login()
usr.view(20) or what? take out the usr.?
In response to SadoSoldier
Default value:
world.view (which is 5 by default)
Possible values:
-1 to 34 or "WIDTHxHEIGHT"
This controls the size of the map window in Dream Seeker. Normally, you would simply compile with world/view assigned to whatever you want, but in some cases, you might want to customize the map size for different players, such as admins or subscribed users.

Like all other view sizes in DM, this may either be a view depth or an absolute size. A view depth is a single number that determines how far from a center point the edges of a square viewable region extend. A value of 5 creates edges which are 2*5+1 = 11 tiles long.

The newer, more flexible syntax is a text string of the form "WIDTHxHEIGHT". For example, a view depth of 5 corresponds to "11x11". Using this syntax, you can create non-square views as well.

The maximum view size is about 5000 tiles, or roughly 70x70.

explain please?
In response to SadoSoldier
There's the edit button right there. Use it, do not triple-post.
SadoSoldier wrote:
No, it's not your code. Don't copy code. Learn how to code yourself, etc

sounds pretty mad to me

Then you should improve your reading. Notice the lack of capitalized letters and exaggerated exclamation marks all over the place, and any offensive words? Again, it was advice.

and as for it not being ur code i wsn't sure whose it was but i know u did reply to that post so it was a wild guess

as for the autohost i told u theres the manual host codes just make it auto simple

I expect if it was that simple, you'd do it yourself, no? Oh, wait, obviously not, bad point I got here...
At any case. Just saying "automatic" is way too vague. I could take random guesses like you failing to guess if it was me you've copied the code from.
But alas, if you're not willing to even make effort to explain yourself properly, nobody is going to make an effort to help you either.

SadoSoldier wrote:
[link] , [link]

These are just other examples of your incompetence at DM caused by never learning and only copying code. The former post is a random guess at how to set a variable, and the latter asks for an explanation after quoting it.
Sorry, but there's only so much I can put into a forum post. You should refer to the DM Guide instead.
In response to SadoSoldier
u got 1st choose map from reo2?