ID:174656
 
Hi,Iam trying to make a proc with sees if theres a certain turf around it and if there is it gives the client somthing this is what i have so far and it dosnt work if(/turf/Tree in view(1))
M.Wood += 20
sleep(2)
MGain()
Vowles wrote:
Hi,Iam trying to make a proc with sees if theres a certain turf around it and if there is it gives the client something.

Well if you want to give somebody the option to check if there was say... a chicken turf(example only) in oview(1) then I would suggest something like this.
mob/verb/FindChicken(turf/T in oview(1))//I would make it a turf not a proc
if(T.name == "ChickenTurf")//Or you can put anything here that would check if it's a turf
usr.inteligence ++

If you don't want to have the if there you could do:

mob/verb/FindChicken(turf/chicken/T in oview(1))

In response to SSChicken
Well SS you didnt quite sovle it but you made me think and Ive done it so Thanks =)
In response to Vowles
Optionally, you can use locate(/turf/whatever) in oview(1,M). :)