ID:266479
 
Ok, My AI slime wont walk that much,

Slime
icon = 'Slime.dmi'
proc
Thing()
for(var/mob/M as mob in view(1))
if(M.key!=usr.noattack)
walk_to(src,0,0)
else
walk_rand(src,0)
..()
Move_Slime()
Thing()
..()

Ok, here is my 'battle' system:

Attack(mob/M as mob in oview(1))
var/damage = usr.Strength - M.Defense M<<"[usr] has attacked you
usr<<"You Attacked [M]"
M.Health-=damage
if(M.Health<=0)
if(M.client) usr.Wealth+=M.Wealth
M.Wealth = 200
usr<<"You recieve [M]'s gold!"
M.loc=locate(1,1,1) M.Health = M.MaxHealth else
del(M)
usr.Wealth+=10
usr<<"You have gained 10 Gold Pieces."

Heres how to Summon a slime:

Summon_Slime
icon = 'Summon Slime.dmi'
verb
Get()
set src in oview(0)
usr.contents+=new/obj/Summon_Slime
Summon()
set src in usr.contents
var/mob/Slime/S = new/mob/Slime(usr.loc)
usr.noattack = usr.key
S.Thing()

Ok, How do I make the Slime walk around, and attack people that ARE NOT the one who summoned him.
You made this exact same post (with a different subject line) in newbie.14212. That's just glorified bumping. Please delete your other post.

Lummox JR
In response to Lummox JR
I NEED HELP! Check my first post on this topic!
In response to Bariscni Cough Drop
Well BCD, I can't help you here, why do you always find bugs with what I want? I was just about to add a Slime monster in MY game! >=( Well? Speak up!
In response to Watabou
Heh, sorry!!! @.@ No need to scold me! 1 Question Wata,
On yor webpage, who's Cop5391?? =D
P.S. I STILL NEED HELP!
In response to Bariscni Cough Drop
You need to learn not to bump your posts. Be patient and you'll get help, if not you won't get help.
In response to Nadrew
I DIDNT BUMP!
In response to Bariscni Cough Drop
Yes you did. [link]


-Rcet
In response to Rcet
My patience is growing thin like nana's head of hair!
=(
In response to Bariscni Cough Drop
ditto
Hmm... I can't be sure about this...

Perhaps you should set a property on your slime, that tells it who it's owner is, so it doesn't attack the owner. Also, you may want to spawn a proccess with the spawn() function, if you want the slime to do more than one attack.

Also, your Thing() function uses ..() several times, this is meaning-less unless there's anothing Thing() function in the code, but this appears to be the first one, as you have it under a 'proc'. Perhaps you intended to 'return' instead?
In response to Kevin Kitsune
Eh? Can you write that in code?
In response to Bariscni Cough Drop
Bariscni Cough Drop wrote:
Eh? Can you write that in code?

you cant, so why should he? ;)

He means add a var that contains the name of the mob that created the slime.
In response to Ernie Dirt
So I have stuff like
mob
var
Bariscni Cough Drop = 0
Watabou = 0
Xooxer = 0
Nadrew = 0
[all peoples on Byond] = 0

????
In response to Bariscni Cough Drop
Nope you need to learn to code a bit better before trying something like this. Start small.
In response to Nadrew
Just ignore Nadrew BCD, he always picked on me too,
AS FOR NADREW, unless your helping my brother get away from him!! Creep! Picking on a 7 year old!
In response to Watabou
I wasn't picking on him, I was giving him advice.
In response to Watabou
He brought it on himself. And it wasn't picking on him. It was informing him.

-Rcet
In response to Nadrew
*sniffle* All I wanted was the code! *whimper*
Wahahahaaa! =_( >.< v_v

STOP FIGHTING! WAH!
In response to Bariscni Cough Drop
NOW YOU MADE HIM CRY!
Page: 1 2