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.
|
In response to Kaiochao
|
|
Works perfectly! Thanks
|
locate(/other/type) in range(5, you)
That expression returns an object of that type within 5 tiles of you.