ID:167474
 
how would i change this code so the second u start hosting the information appears instead of u having to click the start game verb

world
hub = "Mxjerrett.TheLastHero"
visibility = 1





mob/verb/start_game()
set category = "Host"
world.visibility = 1
world.version = 1.22
world.status = "Host: [ (!Host)? "Unknown" : Host] |Version: [world.version]"


var
Host




client/New()
..()
if(!src.address)Host=src.key
You can do that in world.New().
In response to CaptFalcon33035
ok
In response to Mxjerrett
everything checks out except


status = "Host: [ (!Host)? "Unknown" : Host] |Version: [world.version]"


doesnt work says expected:constant expression
In response to Mxjerrett
Show us the code you edited before and after, it's most likely not that line.
In response to Artemio
heres my current 1 i think i fixed it but it say hotst unknown if someone hosts it oh and in the last code if were to host it and use that code it would only say when i was hosting so i need help there too.


world.New()
world.hub = "Mxjerrett.TheLastHero"
world.visibility = 1
world.version = 1.22
world.status = "Host: [ (!Host)? "Unknown" : Host] |Version: [world.version]"

var
Host
client/New()
..()
if(!src.address)Host=src.key

Heres the original
mob/verb/start_game()
set category = "Host"
world.visibility = 1
world.version = 1.22
world.status = "Host: [ (!Host)? "Unknown" : Host] |Version: [world.version]"


var
Host




client/New()
..()
if(!src.address)Host=src.key

And finally here it is before i think i fixed it
world
New()
hub = "Mxjerrett.TheLastHero"
visibility = 1
version = 1.22
status = "Host: [ (!Host)? "Unknown" : Host] |Version: [world.version]"



Actually after reviewing i think i may see the problem i have it set up as world.version and not just version but i still need help making so others can host it and u can see their name
In response to Mxjerrett
> world.New()
> world.hub = "Mxjerrett.TheLastHero"
> world.visibility = 1
> world.version = 1.22
> world.status = "Host: [ (!Host)? "Unknown" : Host] |Version: [world.version]"
>
> var
> Host
> client/New()
> ..()
> if(!src.address)Host=src.key
>

--->

world
hub = "Mxjerrett.TheLastHero"
visibility = 1
version = 1.22
New()
..()
status = "Host: Unknown|Version: [world.version]"
var
Host = ""

client/New()
..()
if(!src.address)
Host = src.key
world.status = "Host: [Host]|Version: [world.version]"