ResolveDependents action

Has anyone come up with a scrips action to resolve (or just set the status
the same) dependent tickets based on the status of the depended on ticket?
We often have several tickets referring to the same event, and I’d like to
save some time by resolving (or stalling, etc) the related tickets
together. Alternately, what are the chances of seeing a search criteria
based on relations (ie, search for all tickets dependent on ticket #1)
which could then be resolved using the ‘set status of all’ feature of
searching. And if not either of these, is there there ANY documentation
on how scrips work (specifically how to add new actions). I’m a fairly
decent perl programmer, but some documentation, or even just a brief
description of how to add a new action could save me a lot of time.