ID:150860
 
K.. Ive been messing with this stuff that Im having a problem with.

Ive narrowed it down to this code :P >

verb
attack()
for(var/M in get_step( src , src.dir )) break
world << "[M]"

All this comes back with is sending the user 'attack'.

Im assuming its for line thats the problem.

Anyone have better code for selecting the mob thats in front of a char?

Please help, this is really pissing me off.

Elorien
[email protected]
On 7/15/01 1:41 pm Elorien wrote:
verb
attack()
for(var/M in get_step( src , src.dir )) break
world << "[M]"

Your code generated an error for me, so I don't even know how you compiled it. This works:

mob
verb
attack()
var/mob/M
for(M in get_step( src , src.dir )) break
world << "[M]"
In response to Cinnom
Im getting more and more sure that my copy of byond is screwed up.

I tried putting that in Cinnom, and I got a bunch of errors.

Did you just compile, or did you actually try that code btw? It compiles fine the way I had it, it just doenst -work-.

Oh yea, about the errors you got, its prolly just a bad var error. I have

var/M earlier

in the code of course

Please help >.< this is really bugging me

Elorien

On 7/15/01 1:55 pm Cinnom wrote:
On 7/15/01 1:41 pm Elorien wrote:
verb
attack()
for(var/M in get_step( src , src.dir )) break
world << "[M]"

Your code generated an error for me, so I don't even know how you compiled it. This works:

mob
verb
attack()
var/mob/M
for(M in get_step( src , src.dir )) break
world << "[M]"
In response to Elorien
On 7/15/01 2:00 pm Elorien wrote:
Im getting more and more sure that my copy of byond is screwed up.

I tried putting that in Cinnom, and I got a bunch of errors.

Did you just compile, or did you actually try that code btw? It compiles fine the way I had it, it just doenst -work-.

Oh yea, about the errors you got, its prolly just a bad var error. I have

var/M earlier

in the code of course

Please help >.< this is really bugging me

Elorien

On 7/15/01 1:55 pm Cinnom wrote:
On 7/15/01 1:41 pm Elorien wrote:
verb
attack()
for(var/M in get_step( src , src.dir )) break
world << "[M]"

Your code generated an error for me, so I don't even know how you compiled it. This works:

mob
verb
attack()
var/mob/M
for(M in get_step( src , src.dir )) break
world << "[M]"

It compiles, and it works as it should. It gives me the name of the mob I'm attacking.
In response to Cinnom
AAARRRRG

What the heck then?! >.< It -should- work, but noooOOOoo


@#$!@#%$#^%$!$!$~

Maybe this is just a hint to give up *glares at the universe* ¬.¬

BAHHHHH >.<

Why wont it work on my byond then? >.<
In response to Elorien
.... O.o;;;;

and now it works..

<Kyle> Dude, this is pretty f'ed up right here.

that about sums it up @.@

thanks Cinnom.. Ill stick you in my credits if I ever get that far
In response to Elorien
i just wanna let you know
i had a huge game, and i could change one letter, and get 679 errors =)~

the compiler also goes in file order, so if you put a
/* in the middle dm file or so, you will get about 400 errors or more

one small thing can screw the compiler's mind, and make it go CRAZY

always check spelling, make sure your vars match, and always, always, always use the tab, never use space, as i have seen many many many people that begin here at byond do.

learn indetation as well as you can =))

i have nothign else to say, since your current problem is solved

Take care now, bye bye
FIREking