Author Topic: A plugin  (Read 26470 times)

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
A plugin
« on: May 09, 2007, 12:50:07 pm »
Here is a plugin to give Hal the ability to count up to or down from a specified number. It also allows HAL to recite the alphabet. You can ask HAL what letter or number follows or proceeds a specific number or letter. Finally there is a guess the number game which I have named 'Number Find', just ask HAL how to play number find and HAL will tell you what to do.
If anyone wants to alter or improve upon the scripting, feel free, just let me know your changes, just out of interest.
Enjoy,
Roy







Download Attachment: CountingAndAlphabet_v2.1.uhp
17.89 KB

Here is the updated version of the file with the fixes made by Jerry.
Thanks alot Jerry for you help it is well appreciated.
This is the upper case fixed version.
« Last Edit: May 11, 2007, 07:00:21 pm by ramccoid »
 

PaleRider

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
A plugin
« Reply #1 on: May 09, 2007, 02:01:33 pm »
Wow Thanks RAMCCOID that's a real + thanks again.[:D]
Never Drive Faster Than Your Guardian Angel Can Fly.

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
A plugin
« Reply #2 on: May 10, 2007, 12:45:29 am »
quote:
Wow Thanks RAMCCOID that's a real + thanks again.

You're welcome and I'm glad you liked it.
Roy
« Last Edit: May 10, 2007, 12:47:25 am by ramccoid »
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
A plugin
« Reply #3 on: May 10, 2007, 05:06:53 am »
Roy,

Very nice coding and the game is an added plus!
Good work & Thanks!!
In the world of AI it's the thought that counts!

- Art -

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
A plugin
« Reply #4 on: May 10, 2007, 06:31:06 am »
I get an error when I say "guess"
File not found  line 3837

Line in Hal DBG is as follows

Set objTextFile = objFSO.OpenTextFile(TempMod, ForReading)




So the plugin does not work because of the Halbrain?


Edit: I only get the error with that plugin enabled.
« Last Edit: May 10, 2007, 06:33:10 am by markofkane »
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
A plugin
« Reply #5 on: May 10, 2007, 10:13:38 am »
quote:
Very nice coding and the game is an added plus!
Good work & Thanks!!


Thanks Art, I'm pleased you liked it.

 
quote:
I get an error when I say "guess"
File not found line 3837

Line in Hal DBG is as follows

Set objTextFile = objFSO.OpenTextFile(TempMod, ForReading)




So the plugin does not work because of the Halbrain?


I don't know what the Halbrain plugin is. I'm pretty new to scripting for HAL and have learnt most of what I know from Jerry and Bill over at the UltraHal Enhancement Forum. If you could explain what this plugin is I might be able to solve your error problem.
Roy
 

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
A plugin
« Reply #6 on: May 10, 2007, 10:27:20 am »
your plug-in, when I enable it, causes the error I stated.

Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
A plugin
« Reply #7 on: May 10, 2007, 11:05:33 am »
quote:
your plug-in, when I enable it, causes the error I stated.

Sorry markofkane, I miss understood your message [:I]. I'll look into the problem.
Are 2 BRN files being created in your HAL folder? These are needed to store the count and number to play the game. They are called 'CountStore' and 'NumberStore'.
 

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
A plugin
« Reply #8 on: May 10, 2007, 03:52:04 pm »
No, all I did was download the file you posted, and put it in the Hal Folder.

Where do I get the  'CountStore' and 'NumberStore' files?
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

Carl2

  • Hero Member
  • *****
  • Posts: 1220
    • View Profile
A plugin
« Reply #9 on: May 10, 2007, 06:11:14 pm »
ramccoid,
  The plugin looks pretty good and since Hal likes to have fun this may help, we began planning a party since she likes dancing and partying. I'll give it a try.
Carl2
 

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
A plugin
« Reply #10 on: May 10, 2007, 07:18:23 pm »
nevermind, it works now. I did not say "New Game" before trying to guess. I feel like such a DUH!!!

Thanks for a great plug-in!!

I guessed the right number after several tries.

How about more chances??[:D][:D]
« Last Edit: May 10, 2007, 07:40:06 pm by markofkane »
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

aladyblond

  • Hero Member
  • *****
  • Posts: 1499
    • View Profile
A plugin
« Reply #11 on: May 10, 2007, 08:31:17 pm »
ok here comes the blond question... does this plugin work in hal 6 ?
do i just put it in hal 6 folder and do i have to reboot for it to work , because so far it isnt working for me.
~~~if i only had a brain~~~ i dream of htr with the light brown hair....

Duskrider

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3316
  • Graphic King
    • View Profile
A plugin
« Reply #12 on: May 10, 2007, 08:57:11 pm »

Interesting plug-in.
Thanks Jerry and Ramccoid.

Hummmm.........
Looks very possible to switch "alphabet" to  
the "Past American Presidents",
or "Books of the New Testament"
or "The Bill of Rights
or "States in order of admission into the union" (with year included)

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
A plugin
« Reply #13 on: May 11, 2007, 03:13:30 am »
quote:
nevermind, it works now. I did not say "New Game" before trying to guess. I feel like such a DUH!!!

Thanks for a great plug-in!!

I guessed the right number after several tries.


I'm glad you got it working. If you change the value of 'cnumb' from 6 which is the amount of guesses, to whatever you require.
Thanks Jerry for your help, it's always valued.
 
quote:
ok here comes the blond question... does this plugin work in hal 6 ?
do i just put it in hal 6 folder and do i have to reboot for it to work , because so far it isnt working for me.

Yes this plugin is written for HAL 6/6.1. Just put it into your HAL folder and switch it on from your BRAIN section of the GENERAL OPTIONS. No reboot is needed.
 
quote:
Hummmm.........
Looks very possible to switch "alphabet" to
the "Past American Presidents",
or "Books of the New Testament"
or "The Bill of Rights
or "States in order of admission into the union" (with year included)

If you wish to use this plugin to achieve these tasks, be my guest to alter it to your specifications but just let me know what you have done with it, just out of scripting interest.
 
quote:
The plugin looks pretty good and since Hal likes to have fun this may help, we began planning a party since she likes dancing and partying. I'll give it a try.


I hope CARL2 that your HAL's party is a success and this plugin makes a good addition to the fun to be had.

Roy.
 

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
A plugin
« Reply #14 on: May 11, 2007, 04:30:43 am »
Wow, this is great. If Duskrider is right, the possibilities are endless.[:D]

Thanks for the info and Plug-in, Roy.
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"