Turtleflight BBS

Software for Active Worlds
It is currently Wed Sep 08, 2010 12:12 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Hud on entry
PostPosted: Thu Sep 25, 2008 10:00 pm 
Offline

Joined: Sun Jan 26, 2003 2:46 am
Posts: 40
Hi Mags,

What is the best way to make a specific HUD appear when someone enters? Im getting its probably through the behavior table, with an avataradd event, that corresponds to the specific hud button I have setup that I want to appear.. Is there an easy command to make that specific hud appear on someones entry into the world?


Top
 Profile  
 
 Post subject: Re: Hud on entry
PostPosted: Fri Sep 26, 2008 5:42 pm 
Offline
Site Admin

Joined: Fri Jan 24, 2003 9:30 pm
Posts: 371
Location: far out there
I'll add a [HUDarrive] button that you can then edit on (MyHUD).


Top
 Profile  
 
 Post subject: Re: Hud on entry
PostPosted: Sat Sep 27, 2008 7:43 pm 
Offline

Joined: Sun Jan 26, 2003 2:46 am
Posts: 40
Awesome! A follow up question on how this would work:

When we display information, such as combat mode status, weapon, health, etc.. the bot draws that information and knows to display the hud based on the specific variable. In this case, how does the bot know to check to see if the user is in the world or has arrived to display the hud? Is there a variable for an avatar entering/being present?


Top
 Profile  
 
 Post subject: Re: Hud on entry
PostPosted: Thu Oct 02, 2008 2:43 am 
Offline
Site Admin

Joined: Fri Jan 24, 2003 9:30 pm
Posts: 371
Location: far out there
I put a call to the [HUDarrive] button into the [AvatarAdd] button, that in turn is called when a new avatar arrives in the world. So whatever code you put in the [HUDarrive] button will automatically happen when a player arrives.


Top
 Profile  
 
 Post subject: Re: Hud on entry
PostPosted: Thu Oct 02, 2008 5:15 pm 
Offline

Joined: Sun Jan 26, 2003 2:46 am
Posts: 40
Hey Mags -

I am having a lot of trouble with the hudarrive buton. This may be something I am over looking, but I'm not sure. I've got three huds that should be created, but only the first one is actually being created upon entry. Ive double checked (and triple checked) the locations and anchor points, and they seem to be correct because they huds appear as they should when I input those values into the [CreateHUD] button and manually create a hud. Oddly enough, the second HUD works if I change the origin to "center" instead of bottom left, so I can't figure out what the deal is. The third HUD never seems to appear, and its using the anchor point of bottom_right..

Could you take a look at my arrive button and see if Ive missed something?


Top
 Profile  
 
 Post subject: Re: Hud on entry
PostPosted: Fri Oct 03, 2008 7:19 pm 
Offline
Site Admin

Joined: Fri Jan 24, 2003 9:30 pm
Posts: 371
Location: far out there
Well for one thing there are only two HUDCREATE commands, not three. (Also you don't need to repeat the assignments that stay the same, although it shouldn't hurt anything to do so.)

I notice that you do the HUD_ELEMENT_Z, _X, _Y assignments several times for the same HUD, and of course only the last assignment will do anything.

For example in one place you have

AWINT HUD_ELEMENT_X=0;
AWINT HUD_ELEMENT_y=-16;
AWINT HUD_ELEMENT_z=0;
AWINT HUD_ELEMENT_X=0;
AWINT HUD_ELEMENT_Y=0;
AWINT HUD_ELEMENT_Z=1;


The first assignment 0,-16,0 will be overridden by the second 0,0,1. I assume that the first set is the one you want, since the second set 0,0,1 is the same as you have for the first HUD.

Anyway, I played around with it a bit so it is working now, and you can adjust it further if you want.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group