ID:270275
 
var
t = file2text('Bot.txt')
mob
proc
WALK()
if(findtext(t,"(NORTH);"))
for(var/mob/M in oview())
if(M.owner == src.key)
step(M,NORTH)
sleep(10)


What I need is how would you make it so that the file2text part, you must have a Bot.txt in a folder named JunkMetal so it can run. How would I make it so it can check and use it?

->Calus CoRPS<-
if(fexists(./JunkMetal/Bot.txt))
In response to Zaltron
You forgot to use quotes, Zaltron.
I did not explain it right, I need it so it can check if you have the file and then if you do have the file it will make a var named t with findtext in it so the WALK proc will work still.

->Calus CoRPS<-