Zabaware Support Forums

A plugin

Started by ramccoid, May 09, 2007, 12:50:07 PM

Previous topic - Next topic

ramccoid

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.
 

PaleRider

Wow Thanks RAMCCOID that's a real + thanks again.[:D]
Never Drive Faster Than Your Guardian Angel Can Fly.

ramccoid

#2
quote:
Wow Thanks RAMCCOID that's a real + thanks again.

You're welcome and I'm glad you liked it.
Roy
 

Art

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

#4
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.
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

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

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

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

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

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

#10
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]
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

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


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

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

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"