ID:167724
 
world
name= "My World"

mob/verb/Change_World_Name(world/W,n as text)
W.name=n


Okay, this is yet another example I have made to test what I have learned about object variables. When I put this in it says W is an undefined variable. Can someone explain this to me?
That's because the World is not really an atom in the normal sense. You don't need world/W in the argument. Replace W.name = n with world.name = n. You can access the variables of world just by using the word 'world' followed by the variable name seperated with a period. Hope that clears it up for you.

~X
mob
verb
Change_World_Name(name as text)
world.name = name