Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: Ooglor 7 on May 18, 2008, 03:12:44 am

Title: Question about background switcher.
Post by: Ooglor 7 on May 18, 2008, 03:12:44 am
Hi guys,

I know there is a code that changes from city to beach from keywords. I for some reason can not get that working properly. I am wanting to use a series of backgrounds as a forest where one of my characters lives. Is there a way to get the background switcher to not only accept North, South, East and West but also step through the backgrounds until we have arrived at the key word destination?

An example,

Let's go to the southern swamp.

(The background would not just load the southern swamp picture but would take one step in a series of backgrounds toward the southern swamp.)

Go south

(Another background step closer down the trail to the southern swamp)

etc...

A way to set up a number of key phrases for each location would be ideal.
Title: Question about background switcher.
Post by: onthecuttingedge2005 on May 18, 2008, 05:50:57 am
quote:
Originally posted by Ooglor 7

Hi guys,

I know there is a code that changes from city to beach from keywords. I for some reason can not get that working properly. I am wanting to use a series of backgrounds as a forest where one of my characters lives. Is there a way to get the background switcher to not only accept North, South, East and West but also step through the backgrounds until we have arrived at the key word destination?

An example,

Let's go to the southern swamp.

(The background would not just load the southern swamp picture but would take one step in a series of backgrounds toward the southern swamp.)

Go south

(Another background step closer down the trail to the southern swamp)

etc...

A way to set up a number of key phrases for each location would be ideal.




Hi Ooglor.

I don't think it's that advanced yet, but if you want to play around
with google earth and HAL it would probably be close to what you want HAL to do.

Set GoogApp = CreateObject("GoogleEarth.ApplicationGE")

there were about 24 objects for google earth to play around with and I only listed 1 of them above.

Jerry[8D]
Title: Question about background switcher.
Post by: Art on May 18, 2008, 09:02:44 am
I thought Oog wanted to be able to give Hal commands that allow it to auto-change to a differrent background...but I could be wrong.!?
Title: Question about background switcher.
Post by: Ooglor 7 on May 18, 2008, 10:05:41 am
Art is correct. I am looking to change the backgrounds, not look up real locations.
Title: Question about background switcher.
Post by: markofkane on May 18, 2008, 10:57:01 am
Yes, it can be done, thanks to Dusky.


I don't know if this is what you like, but if you do, you have to put in the locations for your JPG in the script. And copy the script to your Haptek Skins folder.

Here is a script I know works with 2 pics:

#Haptek Version= 2.00 Name= breee3.hap HapType= script FileType= text

\clock [t= 0.0]loadbackground [file= data//standard//skins//j2.jpg]
\clock [t= 0.2]\loadbackground [file= data//standard//skins//j1.jpg]
\clock [t= 0.4]\loadbackground [file= data//standard//skins//j2.jpg]
\clock [t= 0.8]\loadbackground [file= data//standard//skins//j1.jpg]

\clock [t= 1.0]\load [file= data//standard//skins//Jukebox.hap]


you can change the location of your JPGS, as long as you change the directory command location. And you can change the timing, but it must increase on each line.

Kinda complicated, and I find it easier to change the background with hap scripts. I just drop the hap script into the haptek console, and the background changes automatically, without messing up the character.

I'll attach an example:



(http://icon_paperclip.gif) Download Attachment: changebackground.hap (http://"http://www.zabaware.com/forum/uploaded/markofkane/2008518105654_changebackground.hap")
629 Bytes
Title: Question about background switcher.
Post by: markofkane on May 18, 2008, 11:08:54 am
PS, replace // with /. I doubled the slashes, because this forum takes out backslashes.
Title: Question about background switcher.
Post by: Ooglor 7 on May 18, 2008, 01:11:03 pm
I'm kinda wanting to set up a mini environment using background pictures and thought it might be cool to traverse this world like the old text game Zork. In fact, it would be kind of cool to incorperate the actual Zork I program into the AI. No clue how one would do that but the game was completely text based and was the first game I bought for my Mac 512 back in 1984.