Ok, when I enter this code, everyone IN THE WORLD Walks to Goodie Green, But Big Blue is supposed to Walk to Yuck! Here is my code.
if(usr.Buddy1 == 1)
alert("I'm Yuck! I will poke you both with my stick!!")
alert("Alfonzo: I'm afraid of sticks! Egh!")
walk_away(usr:Buddy,usr.loc,1,1)
alert("Bob:Oh!")
alert("Yuck:Yaahh!")
alert("Bob:Oh!")
walk_to(src,usr.loc,1,1)
alert("Bob:Egh!")
alert("Bob:Eh?")
new/mob/Big_Blue(locate(12,9,1))
new/mob/Goodie_Green(locate(12,3,1))
alert("Big Blue:We've got you yuck.")
alert("Goodie Green:We've come to take you back to where you belong!")
for(var/mob/Big_Blue/B as mob in world)
for(var/mob/Yuck/Y as mob in world)
walk_to(B,Y.loc,1,1)
My problem is at the end with the for proc, please help!
ID:178821
Mar 31 2002, 6:21 pm
|
|
In response to Watabou
|
|
The reason why eveyone is walking there is because you have for(var/mbo/blue_bah as mob in world) Did you notice you have as mob and so that is reprenting all mobs in world not just that blue person anymore.
Use for(var/mob/blue_bah in world) |
mob/whateverYuck
usr.GG = new/mob/GoodieWhatever(locate(Wherever you want him)
walk_to(usr.GG,usr.Yuk,1,1)
Whoopeee