Hi there,
When using opselect in a ROP and referring to whats selected in a subnet. it becomes awkward - for example, if I have “engine” and “wheels” under /obj/car subnet selected:
`opselect(“/obj/car”)` will return “engine wheels” - which won't match any objects. There is no way to easily prepend /obj/car to both those arguments.
So I'd like to motivate a RFE to create opselectpath() and opselectrecursepath() which return the full path to the selected objects. This would make it possible to do this easily. It seems like the opselectrecurse() would only really work from the /obj level but I want to ignore my /obj level select altogether and only care about my /obj/car selection.
Thanks,
Jason
RFE: opselectpath() and opselectrecursepath()
2585 4 0- jason_iversen
- Member
- 12397 posts
- Joined: July 2005
- Online
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
- edward
- Member
- 7694 posts
- Joined: July 2005
- Offline
- jason_iversen
- Member
- 12397 posts
- Joined: July 2005
- Online
do you mean:
`strcatforalltokens(“/obj/car”, opselect( “/obj/car”) )`
:twisted:
`strcatforalltokens(“/obj/car”, opselect( “/obj/car”) )`
:twisted:
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
- edward
- Member
- 7694 posts
- Joined: July 2005
- Offline
- jason_iversen
- Member
- 12397 posts
- Joined: July 2005
- Online
Yeah, me neither; this is why I suggest …path() variations which is an opfullpath() of each. Pity hscript doesn't support variadic functions or we could add parameters to extend the behaviour of existent functions.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
-
- Quick Links