ID:1929738
 
(See the best response by Kaiochao.)
Need some help putting together some code. I have a verb to build an item, but I want to make it so that if you're more than 5 tiles away from another origin item, you won't be able to build the item. Would I use a get_step? And if so, can you provide examples of some code? Thanks in advance.
Best response
locate(/other/type) in range(5, you)

That expression returns an object of that type within 5 tiles of you.
In response to Kaiochao
Works perfectly! Thanks