There ya go... I thought of that too, but it doesn't work because on each of the 3 passes, it's Ultra Hal running the code again like brand new, so none of the vars hold, as far as the "DO" statement is concerned, it thinks it's being run for the first time each time. I believe saving a value to a table and using that in a "DO" statement would work, but I'd much rather know WHY it's happening so I can code to work with it.
I'm thinking now that it's a problem with HAL being unhappy with the variables that I'm sending it in this line...
UltraHal = UltraHal & HalBrain.StoreVars(HalCommands, Hate, Swear, Insults, Compliment, PrevSent, LastResponseTime, PrevUserSent, CustomMem, GainControl, LastTopicList)
I only really need the "HalCommands" var for what I'm doing, but UltraHal expects all the vars or it won't work. So what I think I need here is to set the values of all the other vars, hopefully to something that UltraHal will except but not feel a need to respond to, because again, that's what I'm going for, is one section of code that just gets executed without HAL doing anything. And If this is even possible, I think it's something that the programmer of UltraHal would only know...
"What values will UltraHal except and know that it is to do nothing"
OR... another way to achieve the same results.
But... many, many thanks for the read, reply and help... I very much appreciate you taking the time!
Jake