ID:180639
 
New()
players += 1
usr.team = players
var
locdice = "1d1000"
new/obj/homeworld(locate(roll(locdice),roll(locdice)))


how do I access the vars of the "homeworld"?

I want to be able to do like: H.blaha = X and such
On 4/21/01 6:48 pm Kaidorin wrote:
New()
players += 1
usr.team = players
var
locdice = "1d1000"
new/obj/homeworld(locate(roll(locdice),roll(locdice)))


how do I access the vars of the "homeworld"?

I want to be able to do like: H.blaha = X and such

plz
In response to Kaidorin
On 4/21/01 6:51 pm Kaidorin wrote:
On 4/21/01 6:48 pm Kaidorin wrote:
New()
players += 1
usr.team = players
var
locdice = "1d1000"
new/obj/homeworld(locate(roll(locdice),roll(locdice)))

I want to be able to do like: H.blaha = X and such

Sorry im not sure i understand what you want...
could you post the code in more detail and explain it again?
On 4/21/01 6:48 pm Kaidorin wrote:
New()
players += 1
usr.team = players
var
locdice = "1d1000"
new/obj/homeworld(locate(roll(locdice),roll(locdice)))


how do I access the vars of the "homeworld"?

I want to be able to do like: H.blaha = X and such

You can't when you do it that way. You need to assign the homeworld to a variable before you can access it. Something like this:

var/obj/homeworld/new_homeworld = new(locate(etc...)))

Then you can access it through new_homeworld.
In response to Deadron
var/obj/homeworld/new_homeworld = new(locate(etc...)))

where do I put this, and do I still need my new/obj/blaha stuff?

another question:

how do I set the new players loc to new_homeworld.loc?
In response to Kaidorin
don't bother, I've fixed it :)

thx for the help