HI Dave,
I get the idea you are talking about, in the HAL5 brain script you can make use of CUSTOMMEM (CUSTOMEM?) which allows you to store variables other than the main ones used by the program.
It would be hard for me to explain how to go about using this, but maybe a forum search would help? Also if you take a look at VonSmith's XTF brain, you'll see how it can be used. There are functions there that encode and decode the variables that you have stored in the CUSTOMMEM (which is a variable in itself). The Hal main program will store and return your variables so you can use them when it returns to the main GetResonse function.
My other thought for HAL6 is to use the database that Mr M has introduced to store references/variables.
Hope thats some help [

]
btw, if any of thats wrong let me know Von, Mr M!!