ID:165065
 
ok this is my problem, i have the space ship /obj/space_ship/Cruiser_175 and i want it where when i use the verb Take_the_Helm() on /obj/space_ship/helm i take control of the helm's owner (i have a var called owner).

for a better idea of what i mean here is the coding i do have:

obj
space_ship
var/owner=""
floor
icon='ss inside.dmi'
icon_state="flooring"
density=0
wall
icon='ss inside.dmi'
icon_state="wall"
density=1
helm
icon='ss inside.dmi'
icon_state="helm"
density=1
owner="obj/space_ship/Cruiser_175"
verb
Take_the_Helm()
set src in oview(1)
usr<<"You take the helm."
usr.loc=src.loc


computer
icon='ss inside.dmi'
icon_state="computer"
density=1
Cruiser_175
icon='space ship.dmi'
icon_state="cruiserl"
density=1
verb
Board()
set src in oview(1)
usr<<"You board Cruiser 175."
usr.loc=locate(7,7,1)


i will await your help :)
please i really need help on this
In response to VolksBlade
src.owner = "[usr.key]"
You need to explain more here. What is the whole code supposed to be doing? Why do all the parts have an owner, and what does it indicate? You're setting it to a [text] type path?

Also, you shouldn't directly change the loc or x,y,z variables - use Move() or a set_loc() (example) instead, that will make sure the movement system behaves as it should.
In response to Kaioken
ok, i needed it to make me control the Cruiser that would be on the screen when i used the verb Take_the_Helm that is with the helm of the ship, then i needed a verb that is set with the ship to make me go back to my charactor (like the inside of a ship and the outside of a ship) but im working on the verb-to-the-inside but i got the verb-to-the-outside:

obj
space_ship
helm
icon='ss inside.dmi'
icon_state="helm"
density=1
owner=1
verb
Take_the_Helm()
set src in oview(1)
usr.icon='space ship.dmi'
usr<<"You take the helm."
usr.loc=locate(usr.lastx,usr.lasty,usr.lastz)
if(usr.shiptype=="Cruiser")
usr.icon_state="cruiser"

and that works, so all i have to do is reverse it, but this time i dont need the if(), this sucks my period key wont work on my keyboard and i have to use that quite abit, i got two more keyboards but they dont work :(
In response to VolksBlade
Use windows xp's on screen keyboard.
In response to A.T.H.K
i dont have xp i have 2000 professional
In response to VolksBlade