Author Topic: customem & saving variables (HELP)  (Read 3653 times)

ll420ll

  • Newbie
  • *
  • Posts: 10
    • View Profile
customem & saving variables (HELP)
« on: May 24, 2009, 09:49:27 pm »
I'm working on on plug-in and I could uses a lil help.

I found this topic, but i am still having issues.
I think i should be able to save a variable using custommem
Like this...
CustomMem = HalBrain.EncodeVar(MyTable, "MyVariableName")
StoredVariables = HalBrain.ExtractVar(CustomMem, "MyVariableName")

I very new at this, but im starting to figure some things out.
If i can make this work, I will have one neat plugin to share later.
Thanks for the help!!!
« Last Edit: May 29, 2009, 11:50:15 pm by ll420ll »
 

ll420ll

  • Newbie
  • *
  • Posts: 10
    • View Profile
customem & saving variables (HELP)
« Reply #1 on: May 28, 2009, 02:23:37 am »
I see what I did, vrossi answered this in a post about Hal emotions plug-in.

Rem PLUGIN: CUSTOMMEM
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
'------------------
' Loads stored variables
'------------------
vrNight = HalBrain.ExtractVar(CustomMem, "vrNight")

Rem PLUGIN: CUSTOMMEM2
'The preceding comment is actually a plug-in directive for
'the Ultra Hal host application. It allows for code snippets
'to be inserted here on-the-fly based on user configuration.
'------------------
' Saves stored variables
'------------------
CustomMem = CustomMem & HalBrain.EncodeVar(vrNight, "vrNight")
« Last Edit: May 28, 2009, 02:24:49 am by ll420ll »
 

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
customem & saving variables (HELP)
« Reply #2 on: May 30, 2009, 04:49:40 pm »
I think the reason no one has even attempted to answer your post is because no one knows the answer...

Good Job ll420ll on stumping the establishment.

[:)]
Live long and prosper or die trying.