ID:170215
 
I was wondering, how does a person get a game to recognize the host's name in the world/name

I have tried things like this
world/name="Game Name - (Hosted by: [host_name]"

but that doesn't work. how could i get that to work.
Try something like:
client/proc/CheckHost()
if(address==null||address==world.address)
src += typesof(/mob/host/verb)//if you have verbs
host = src

mob/Login()
..()
client.CheckHost()

var/host = ""

world/name="Game Name - (Hosted by: [host]")

You may want to put that into the world/status though. Putting it as the world/name could cause problems.
In response to CaptFalcon33035
CaptFalcon33035 wrote:
Try something like:
> client/proc/CheckHost()
> if(address==null||address==world.address)
> src += typesof(/mob/host/verb)//if you have verbs
> host = src
>
> mob/Login()
> ..()
> client.CheckHost()
>
> var/host = ""
>
> world/name="Game Name - (Hosted by: [host]")
>

You may want to put that into the world/status though. Putting it as the world/name could cause problems.

Bzzt, wrong. Do:

> client/proc/CheckHost()
> if(address==null||address==world.address)
> src += typesof(/mob/host/verb)//if you have verbs
> host = src
world.name="Game Name - (Hosted by: [host])"</
>
> mob/Login()
> ..()
> client.CheckHost()
>
> var/mob/host//Or var/host="", with var/mob/host, you can do more. (EX\
: Hosted by [host]([host.key])
In response to Hell Ramen
Ack I tired both codes and bot of them had problems. I tried them on a brand new test file and neither of the worked. does ne1 have have one that works?