ID:179741
 
I have a problem. There! it was so hard to get that off my chest. i coded this, and when i compiled this:

turf
Eidenburg
icon = 'Eidenburg.dmi'
Entered(Mob/M)
mob.loc = locate(1,7,1)

i got this:

loading Tales of Chaos.dme
Turf.dm:109:error:mob.loc:bad var
Turf.dm:114:error:mob.loc:bad var

Tales of Chaos.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

now im trying to make it so it teleports you when you step on the 'Eidenburg' tile. whats up wit that?
Selderan wrote:
I have a problem. There! it was so hard to get that off my chest. i coded this, and when i compiled this:

turf
Eidenburg
icon = 'Eidenburg.dmi'
Entered(Mob/M)
mob.loc = locate(1,7,1)<<indent them and use M instead of mob

i got this:

loading Tales of Chaos.dme
Turf.dm:109:error:mob.loc:bad var
Turf.dm:114:error:mob.loc:bad var

Tales of Chaos.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

now im trying to make it so it teleports you when you step on the 'Eidenburg' tile. whats up wit that?
Selderan wrote:
I have a problem. There! it was so hard to get that off my chest. i coded this, and when i compiled this:

turf
Eidenburg
icon = 'Eidenburg.dmi'
Entered(Mob/M)
mob.loc = locate(1,7,1)

i got this:

loading Tales of Chaos.dme
Turf.dm:109:error:mob.loc:bad var
Turf.dm:114:error:mob.loc:bad var

Tales of Chaos.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

now im trying to make it so it teleports you when you step on the 'Eidenburg' tile. whats up wit that?

You never defined what "mob" was. Entered(Mob/M) tells it that when a mob is passed into the Entered() proc (the mob being referenced to by M) do this.

So what should you change mob to? Il let you figure it out.

Also Note - Anything belonging to an if(), proc() or anything of the sort must be indented correctly under it hint hint

Alathon
In response to Air _King
okokokok.. i STILL get the same thing.
turf
Eidenburg
icon = 'Eidenburg.dmi'
Entered(Mob/M)
m.loc = locate(1,7,1)

loading Tales of Chaos.dme
Turf.dm:109:error:m.loc:bad var
Turf.dm:114:error:m.loc:bad var

Tales of Chaos.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

ok i also have another one there, with the same code i just didnt through it in but it goes like this
turf
sand
icon = 'sand.dmi'
Entered(Mob/M)
m.loc = locate(26,25,2)
but that is irrelevant.

Anyway, i was told to refer to mob as M because thats what its telling the game to. But it still dosent work. Please help with this.
In response to Selderan

turf
sand
icon = 'sand.dmi'
Entered(Mob/M)
m.loc = locate(26,25,2)

Pay special attention to notice that in code, everything must be EXACT.

notice, you defined mob as M, then you refered to m.loc. What's wrong with that? M does not equal m. M and m are completely different things, but in this case M has been defined while m has not.

Also, as Alathon said, anything after a proc (anything ending with ()'s) needs to be indented.

Entered(mob/M)
M.loc = locate(#,#,#)
In response to Selderan
Selderan wrote:
okokokok.. i STILL get the same thing.
turf
Eidenburg
icon = 'Eidenburg.dmi'
Entered(Mob/M)
m.loc = locate(1,7,1)

loading Tales of Chaos.dme
Turf.dm:109:error:m.loc:bad var
Turf.dm:114:error:m.loc:bad var

Tales of Chaos.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

ok i also have another one there, with the same code i just didnt through it in but it goes like this
turf
sand
icon = 'sand.dmi'
Entered(Mob/M)
m.loc = locate(26,25,2)
but that is irrelevant.

Anyway, i was told to refer to mob as M because thats what its telling the game to. But it still dosent work. Please help with this.



You're not defining m you're defining M..get my point?
In response to GateGuardian
Yeah... Just to put it into the simplest terms... These things are case-sensitive... So if one M is upper case... the other one has to be as well... Or vice versa if you prefer lower case...
In response to SuperSaiyanGokuX
WTF!!! You dont understand i already TRIED the capitol M!!!
In response to Selderan
Selderan wrote:
WTF!!! You dont understand i already TRIED the capitol M!!!


Just you are being really annoying, I'll give you the freaking code:


turf/warp
icon='something.dmi'
Enter(mob/M)
..()
M.loc=locate(x,y,z)

In response to Nadrew
omg I CANT BELIEVE I FORGOT THE FUCKIN RETURN CODE!!! GRR!

*gun to head = exploding*

btw this is Baal on Selderans comp.
In response to Selderan
Please cut it out with the language, it's not acceptable on this forum.
In response to GateGuardian
my bad