16
Programming using the Ultra Hal Brain Editor / Back to the basics...a Primer perhaps
« on: December 07, 2003, 08:49:37 pm »
Well, Harry Callahan said "its a good man who knows his limitations". I confess before getting HAL I had never really done much programming. A few DOS batch files notwithstanding. That has changed. I envision so many incredible possibilites with this program. So, I am asking anyone who is interested to help me get started. I have gone to the bookstore and the texts I have found are definitley not neophite friendly. With my looking for experimenting and a little free time, I think the questions below can take me a long way...probably to a lot more questions but nothing wrong with that either I don't think :-)
Here they are. I hope they make sense, and you get what I am trying to say in my questions []
Thanks!!:
1. `ByVal` {any Hal function} UserSentence {as an example}
2. How do you define a condition as a global variant?
3. What this a `Global String` and how do you set them?
4. `AddPrev`
5. `Instr`
6. `Array`
7. `DebugInfo` - I have seen many instances of DebugInfo followed by some comment made by Hal, ie: DebugInfo = DebugInfo & " xxx" . However I have not seen a definition for DebugInfo. Where is that found? What does it call? How does it work?
8. `Sub`
9. When using command "Randomize", does "Else" have to be included
amongst the variables? How often in a set of given choices. In other words, one "else" for every 2,3 or 4 choices?
10. Why are no numbers associated with each line of code?
11. `variable`
12. `If Learninglevel >x` what condition am I setting? based on what?
13. How does a higher learning level affect intellegence (implemtation) vs. just "learning"
14. `If Len` - is this short for learninglevel?
15. `Trim` - example would be - Trim(GetResponse)
16. `Exit Funtion` vs. `End If`
17. `vbCrLf `
18. "stated Hal command or condition" (1, {any HAL command} UserSentence {as exmple}, "", 1) another example would be - (Int(Rnd * x) + 1)
19. Int(((Learninglevel - 25) * 0.) - what is being said here?
20. How do you direct Hal to call a response from a particular .brn? Then how do you randomize those responses? Conversely, how do you make HAL search all ".brn" sets for the best response? Is the later done by defalut?
Thanks for any and all help!! Got any other critical commands or functions I should know?
Ponnfar
Here they are. I hope they make sense, and you get what I am trying to say in my questions []
Thanks!!:
1. `ByVal` {any Hal function} UserSentence {as an example}
2. How do you define a condition as a global variant?
3. What this a `Global String` and how do you set them?
4. `AddPrev`
5. `Instr`
6. `Array`
7. `DebugInfo` - I have seen many instances of DebugInfo followed by some comment made by Hal, ie: DebugInfo = DebugInfo & " xxx" . However I have not seen a definition for DebugInfo. Where is that found? What does it call? How does it work?
8. `Sub`
9. When using command "Randomize", does "Else" have to be included
amongst the variables? How often in a set of given choices. In other words, one "else" for every 2,3 or 4 choices?
10. Why are no numbers associated with each line of code?
11. `variable`
12. `If Learninglevel >x` what condition am I setting? based on what?
13. How does a higher learning level affect intellegence (implemtation) vs. just "learning"
14. `If Len` - is this short for learninglevel?
15. `Trim` - example would be - Trim(GetResponse)
16. `Exit Funtion` vs. `End If`
17. `vbCrLf `
18. "stated Hal command or condition" (1, {any HAL command} UserSentence {as exmple}, "", 1) another example would be - (Int(Rnd * x) + 1)
19. Int(((Learninglevel - 25) * 0.) - what is being said here?
20. How do you direct Hal to call a response from a particular .brn? Then how do you randomize those responses? Conversely, how do you make HAL search all ".brn" sets for the best response? Is the later done by defalut?
Thanks for any and all help!! Got any other critical commands or functions I should know?
Ponnfar