Proberly a simple thing I've overlooked, but this is not something I've done before, I'm just using some code from a tutorial, I guess it was made for a reason x_X
mob
New()
sleep(5)
if(istype (src, /mob/login)||istype (src, /mob/NPC))
return..()
else
ai_random_wander()
return..()
mob
proc
ai_random_wander()
if(istype (src, /mob/login))
return ..()
else
walk_rand(src,src.speed)
src.ai_run_away()
spawn(10)
ai_random_wander()
ai_run_away()
if(istype (src, /mob/login))
return
else
for(var/mob/M in oview(5,src))
if(istype (src, /mob/login))
src.random = rand(1,2)
if(src.random == 2)
src.ai_walk_to()
else
continue
else
continue
ai_walk_to()
if(istype (src, /mob/login))
return
else
for(var/mob/M in oview(3,src))
if(M.client&&src.aggressive == 1||M.client&&src.aggressive == 3&&M.alignment == "Evil")
if(get_dist(src,M) <= 3)
walk_to(src,M,1,5)
if(get_dist(src,M) == 1)
Attack(M)
break
else
continue
else
continue
ID:262063
Jul 29 2004, 5:33 am (Edited on Jul 31 2004, 2:01 am)
|
|
Jul 29 2004, 7:22 am
|
|
You did not say anywhere in there what your problem is, or even that you have a problem.
|
In response to Loduwijk
|
|
Yes I did, The mobs are not moving o_o;; The AI was working yesterday and now it doesnt.
|
In response to Holy Retribution
|
|
Can anybody help me?
|
In response to Holy Retribution
|
|
You still haven't displayed what Lodu said.
|
In response to JohnReaper
|
|
Umm i dont know what you guys are talking about? In his title he says the problem he's having is that the mobs arent moving and looking at his code you can tell that he wants the mobs to move around randomly.
|
In response to Turles9000
|
|
Title is a title, but the content is the content. You shouldn't display your errors in the title. (Besides, I dislike seeing stupid things like "o_O" in the title) Anyway, he hasn't provided enough information. He should post what's wrong, where he thinks it's wrong, what the code should do, what it does now.
|
In response to JohnReaper
|
|
If I had an idea whats wrong maybe I wouldnt be asking you people?
Also, so you would rather I had the topic "Help" rather than telling everyone what my problem is in the topic? So people will waste there time looking at the topic when they dont know if they can fix it? One more thing, John, are you a retard or something? what I said saves Byond bandwidth and you time. |
In response to Holy Retribution
|
|
Am I a retard? Answer to that is no. Posting your problem on the title is dumb, you should give clear and descriptive content to what the problem is, where you think it is, plus anything else that'll help IN THE BODY. The title is just the TOPIC, different them correctly!
[EDIT]: You give us a peice of code and say, "It's not moving". BING! I don't know if you know this, but MANY times we cannot just spot the problem in an instant (Well, depends on the situation. =)) Could you probably tell us what's working? When did it stop working? What's supposed to be making it work? |
In response to JohnReaper
|
|
If you couldnt tell then your not a good code reader.
|
In response to Holy Retribution
|
|
Or, you're not a good programmer.
|
In response to Holy Retribution
|
|
I'm not taking my time to read over the code, when you obviously don't deserve it. So either take your time to help me help you, or forget it!
|