"activated" is a special operation in Hero Lab. It's a way to store whether an item is disabled or not.
I'm not very familiar with 4e, so if you're citing specific parts of that, please be more specific, or copy the code. I can't follow the second part of your script - I think you're referring to particular things in 4e, but there's not enough context for me to figure out what you're talking about.
Look through traits.str for scripts that set activated = 0, rather than places that are testing for what activated's current state is. You can study how various circumstances can disable abilities and other things by setting activated = 0, and then other scripts will note that activated = 0, and not perform their actions.
|