My bro put this post on the Newbie Central, but Nadrew ruined the little tikes life, so I am destined to get him that code! Ok! He needs his AI system to work, It has a Slime, With Summoning and stuff
Like So:
mob
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()
..()
That was Code 'A'
obj
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()
Thats code 'B'
Question 1, Code A: How can I make him randomly walk?
Question 2, Codes A,B: How do I make it so Slimes will not attack the person who summoned him?
Question 3, Code A: How do I make the Slime attack?
1
2
ID:149652
Mar 18 2002, 6:04 pm
|
|
So you'll shut up! You have to run a for() loop after you create the slime to find out which slime will have the proc called for it:
for(S in oview(2)) |
In response to Rcet
|
|
THIS ISNT A SLIME GAME!! SLIME IS THE NAME OF THE BAD GUY!! SLIME LANDS(mine) AND LOC (his, I am helping him) ARE NOT THE SAME! IN LOC, YOU ARENT A SLIME!!!!!!!(Unless you enter the Afghanistan code to the dude.......)
|
In response to Nadrew
|
|
That really didnt work that well
|
In response to Watabou
|
|
if the slimes are bad guys, why would you summon them? Hmm
-Rcet |
In response to Rcet
|
|
?
|
In response to Rcet
|
|
THE SUMMONER WILL NOT BE HARMED BY THE SLIMES! THY SLIMES SHALL KILL OTHERS, OR THY SUMMONER MAY KILL THY SLIME FOR EXP!
|
In response to Watabou
|
|
Seriously you need to both (or one I'm confused) learn to code better before you get into AI.
|
In response to Watabou
|
|
caps caps caps. calm yourself.
|
In response to Nadrew
|
|
=( I TRIED TO BE NICE, BUT NOOOOOOOOOOO HIGH DONKEY NADREW COMES ALONG WELL GET HIGH ON THIS!!!!!!! GET OFF MY CASE!!!!!! ALL I WANTED WAS SOME CODES NOT TO BE PUT DOWN BY SOME DONKEY ON CRACK!!!!!!!!! |
In response to Watabou
|
|
Ok, now I believe you are the same person. The little one. Because obviously you are 6 or 7. That previous post made no sense. Also, a little tip. Its CODE, singular, not CODES, plural.
Settle down, little one. -Rcet |
In response to Watabou
|
|
your to cruel! that made me cry! you big meanie GO TO YOUR ROOM!
Rae-The-Kwon |
In response to Watabou
|
|
I'm not trying to make you mad I'm giving you advice that will help you in the long run. But NO! You won't listen which is why you'll never understand how to code!!
|
In response to Rcet
|
|
o_O<------------v_v------------->X_x
Nadrew Arrow Me Arrow Rcet Rcet:Get off my case! I am 12! My bro is 7! I'm Blond! He's Red! I'm Sean! He's Alex! I'm in Colton! He's in Monte Vista. Nadrew: Well now Nadrew did my brother or I ASK FOR ADVICE!?!??!? I think not! If you asked for a coffee and you get chicken soup would YOU BE SATISFIED?! I think not! |
In response to Watabou
|
|
Pardon my language, but I wish to know what is going on,
|
In response to FireEmblem
|
|
I'm trying to teach Watabou a good technique to learning how to code, but he's getting angry because I won't give him direct help with the code he posted, if he wants to learn anything he needs to start slow.
|
In response to FireEmblem
|
|
Because people don't know how to be nice to each other anymore.
|
In response to Nadrew
|
|
Oh, I see, being his 14 year old neighbor IS quite annoying, although we're friends, he's rather annoying at times.
|
1
2
-Rcet