Yuck!
Please don't post long-line code in code tags
Anyways:
http://imagemodserver.mine.nu/other/MM
You can browse down the tree to SF/Tools and grab my stuff.
-----
Handy things like Get/Set Value, Get/Set stringValue, increment/add/multiply/exponent value
and get/set Nth Value which is very handy for damage at range in SE4.