ID:178406
 
my jail verb has a couple problems, can any1 help me out???
heres my code:

mob
GMs
Jail
view() << "[usr] send [M] to jail!"
{M}.loc = locate(56,62,1)

heres the errors it gave me:

loading FFChat.dme
FFChat.dm:82:error:.loc:undefined type path
FFChat.dm:82:error::invalid expression

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

thx for all the help guys!
Redslash wrote:
my jail verb has a couple problems, can any1 help me out???
heres my code:

mob
GMs
Jail
view() << "[usr] send [M] to jail!"
{M}.loc = locate(56,62,1)

Three problems. First, I believe the word you're looking for is "sends".

Second:
{M}.loc = locate(56,62,1)

What the heck are braces doing around the M? This is the equivalent of (intentionally) replacing your car's wires with noodles and then wondering why it won't start.

Third, why is that line indented?

Lummox JR
In response to Lummox JR
...could ya stop with the spelling remarks, plz? i made this in like a min fixed it up, and wondered why it did't work. heres what i did at first:
mob
GMs
verb
Jail(M as mob in view(5))
view() << "[usr] send [M] to jail!"
(M).loc = locate(56,62,1)
and it gave me these:
loading FFChat.dme
FFChat.dm:82:error:.loc:undefined type path
FFChat.dm:82:M :warning: unused label

FFChat.dmb - 1 error, 1 warning (double-click on an error to jump to it)
(sorry about my spelling)
In response to Redslash
Redslash wrote:
...could ya stop with the spelling remarks, plz?

You mean "please"?

(That's a no, in case you were wondering.)

i made this in like a min fixed it up, and wondered why it did't work. heres what i did at first:
mob
GMs
verb
Jail(M as mob in view(5))
view() << "[usr] send [M] to jail!"
(M).loc = locate(56,62,1)
and it gave me these:
loading FFChat.dme
FFChat.dm:82:error:.loc:undefined type path
FFChat.dm:82:M :warning: unused label

FFChat.dmb - 1 error, 1 warning (double-click on an error to jump to it)
(sorry about my spelling)

And you've still got braces around the M in that line. Did you even read what I posted?

To get M.loc to work correctly, you'll also probably need to change "M as mob" to "mob/M as mob".

Lummox JR
In response to Lummox JR
O.K. It's working now, thank you for your help!
(No spelling errors here, really!)
In response to Redslash
Lummox, they're called parenthesis, not braces. Braces suck, I have them on my top teeth.
In response to Garthor
Garthor wrote:
Lummox, they're called parenthesis, not braces. Braces suck, I have them on my top teeth.

Ah--I didn't notice that in his second post he replaced the braces with parentheses. In his first, however, you'll note that he was using braces. My reaction to that was "Huh?!"

Lummox JR