Thread

Xelgot AvatarScan question (Bots)

Xelgot AvatarScan question // Bots

1  |  

mastergrey

Mar 4, 2004, 11:59pm
This one is starting to make me feel a little crazy. Is there any way at
all to return ALL the avatars inside the scanav range? So far I can only
get it to return the nearest av at the time the event is triggered.

To give an example of what I need, assume a bot is moving on rounds
following an AStar path. At each stop, it scans to check what avatars are
within a set range. It would then ideally react and console message ALL the
avatars inside that range before continuing to the next stop. After fooling
with it for about two days, everything works great except for the fact it
will only interact with the closest avatar at each stop.

Any ideas?

On a vaguely related note, there seems to be a cosmetic bug somewhere in the
AStar routine. When the commands are whispered to the bot to first start on
it's path it will whisper back to the effect of "Can't find path". It does
however execute the route perfectly, and the message does not appear when
the commands are issued in open text.

__________________________________________________
Mostly Harmless.

xelag

Mar 5, 2004, 6:37am
On 4 Mar 2004 20:59:41 -0500, "mastergrey" <webmaster at greylight.com>
[View Quote] >
>This one is starting to make me feel a little crazy. Is there any way at
>all to return ALL the avatars inside the scanav range? So far I can only
>get it to return the nearest av at the time the event is triggered.
>
>To give an example of what I need, assume a bot is moving on rounds
>following an AStar path. At each stop, it scans to check what avatars are
>within a set range. It would then ideally react and console message ALL the
>avatars inside that range before continuing to the next stop. After fooling
>with it for about two days, everything works great except for the fact it
>will only interact with the closest avatar at each stop.
>
>Any ideas?

Will have a look at this, it used to work fine when first made and
tested

>
>On a vaguely related note, there seems to be a cosmetic bug somewhere in the
>AStar routine. When the commands are whispered to the bot to first start on
>it's path it will whisper back to the effect of "Can't find path". It does
>however execute the route perfectly, and the message does not appear when
>the commands are issued in open text.

Hmm :)


Alex
>
>__________________________________________________
>Mostly Harmless.
>

xelag

Mar 5, 2004, 7:27am
On 4 Mar 2004 20:59:41 -0500, "mastergrey" <webmaster at greylight.com>
[View Quote] >On a vaguely related note, there seems to be a cosmetic bug somewhere in the
>AStar routine. When the commands are whispered to the bot to first start on
>it's path it will whisper back to the effect of "Can't find path". It does
>however execute the route perfectly, and the message does not appear when
>the commands are issued in open text.

I think I know what is happening: you use in your script a command
which is similar to one of the verbal commands. When said aloud,
unless the bot is in 'direct' command mode (i.e., you have sais its
name previously) the bot will not react to this command. But whisper
is always in direct command mode, so it will react to it... and may
even execute the verbal command and your script command. Make sure
that you script commands do not clash with verbal commands.

Alex

PS: I sent you an email about the scanav question.

mastergrey

Mar 5, 2004, 7:28pm
That's what it was... I hadn't thought to block the verbal processor. The
command to trigger the walk is "Follow Path" so when whispered the bot would
dutifully attempt to follow person Path, who never seemed to be around. ;-)
Meanwhile the script itself is executing flawlessly.

Okay, that solves it. No more late night scripting!

The rest has been sent via email as requested. If only it is so easily
solved.......

[View Quote]

xelag

Mar 5, 2004, 9:34pm
Well, note that the scripting language does not allow to suppress
whispered commands from its owners, it does have statement to suppress
verbal commands from all using chat. This is simply to ensure that
the owner in some way retains control over the bot. In x1, you can
suppress or allow others to send certain commands to the bot (suppress
by checking 'bot | listening restricted"). But in the last resort,
the owners whispered verbal commands can not be suppressed.

Alex

On 5 Mar 2004 16:28:13 -0500, "mastergrey" <webmaster at greylight.com>
[View Quote] >
>That's what it was... I hadn't thought to block the verbal processor. The
>command to trigger the walk is "Follow Path" so when whispered the bot would
>dutifully attempt to follow person Path, who never seemed to be around. ;-)
>Meanwhile the script itself is executing flawlessly.
>
>Okay, that solves it. No more late night scripting!
>
>The rest has been sent via email as requested. If only it is so easily
>solved.......
>
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn