Hmm, Crapshoot may be right here about the bug because the script looks fine to me. Also to note, i believe the group number is ignored on Active Forever actions so i don't think you can set them to be active forever once the tracker reaches a certain goal number (i'm refering to those group 1 AF actions you have). I may be wrong on that though and if so please mal let me know because i would like to know that, i always thought AF actions are active no matter what and the goal number is ignored on AF actions. I do know you can turn them on/off within the script though, i asked mal to add that feature and he did awhile back so i do know you can do that.
I'll take another look at it here in a bit. Also when doing toggles in the script, you should put the activateAction toggle before the deactivateAction toggle (or the true before false), i'm not sure that's a problem but you never know.
Like for example you have...
If_obj_home_false 2
deactivateAction 6
if_obj_home_true 2
activateAction 6
I would have it like....
if_obj_home_true 2
activateAction 6
If_obj_home_false 2
deactivateAction 6
Well for some things anyway, worth a shot i guess. I'll look still, try not to get discouraged by the bugs and problems though, consider it the learning curve.