The help string will only remain registered with the hub (visible to users), as long as the HelpString object you created is valid.
Once the object gets collected by the lua garbage collector then the help string will automatically be unregistered.
Remarks:
In HeXHub version 5.02c or higher a new section was added to the !help trigger.
The new section 7 is different from section 0 thru 6. Section 7 requires the section name to be prepended to the helpstring. The section name is terminated by a new line (
). This document provides two lua code samples: Lua script sample 2: Registering a helpstring in to section 7. and Lua script sample 1: Registering a helpstring in to section 0 thru 6.
Hex Script versions < 1.2.0.0:
If the section given by the script is non-existing (not 0-6) then section 0 will be used.
Hex Script versions >= 1.2.0.0:
If the section giving by the script is non-existing (not 0-7) then a user defined section named "Hex Script" will be used.
If the script registers a helpstring for section 7 and it did not include the section name followed by a new line char then a user defined section named "Hex Script" will be used.
hlpstr = Hex.HelpString(2, "EN") hlpstr:SetString("!trigger\t\t-\tdescription...")
hlpstr = Hex.HelpString(7, "EN") hlpstr:SetString("My Section Name\n!trigger\t\t-\tdescription...")