Full Version : Range
xmlspawner >>XMLSpawner Feature Request's >>Range
<< Prev | Next >>
Steelcap- 09-23-2007
Could we get a keyword that will check the distance between the source and the target?
The question came up in formatting a targetcondition that required the target be within one tile of the user.
(Also, Hi Arte, thanks for adding targeting)
ArteGordon- 09-24-2007
I can add an additional MaxTargetRange property to the XmlUse attachment. I'll post it in the 3.23 beta.
Adding a RANGE keyword is easy enough, but I would have to think about what that would generally refer to when used in a spawner entry, since XmlUse is the only thing that actually has a targeting ability.
Steelcap- 09-24-2007
I was thinking it would be like RANGE,name/serial and it would return the integer value of the distance between the parent of the entry, (so for attachments it would be what it was attached to and for spawners it would be the spawners), and the indicated entity.
Or perhaps it would be RANGE,<location> so it could detect the distance from a point in space and that value could just get substituted for a {GET,location} check.
ArteGordon- 09-25-2007
yeah, I'll think about those.