You don't even need the ["complete"] statement. It will just be done when the ["condition"] is met. I use this all the time to make profiles for gathering items for gear sets and such.
I don't know about counting HQ only using ItemCount. But to make it count HQ in the total, it's going to look like ["ItemCount(5111,true) < 1000"] = true;
Course, this isn't learning LUA I guess. Just the content of making the profiles.
EDIT: After looking at the ffxiv_helpers.lua file, it doesn't appear that ItemCount takes an argument for "Count HQ only". But this seems to work for the condition (which only ends up counting HQ only):
["(ItemCount(5111,true) - ItemCount(5111)) < 1000"] = true;
I don't know about counting HQ only using ItemCount. But to make it count HQ in the total, it's going to look like ["ItemCount(5111,true) < 1000"] = true;
Course, this isn't learning LUA I guess. Just the content of making the profiles.
EDIT: After looking at the ffxiv_helpers.lua file, it doesn't appear that ItemCount takes an argument for "Count HQ only". But this seems to work for the condition (which only ends up counting HQ only):
["(ItemCount(5111,true) - ItemCount(5111)) < 1000"] = true;