Thread

restricting bot space (Bots)

restricting bot space // Bots

1  |  

queenbee

Dec 14, 2000, 3:00pm
Hi,

I'm trying to restrict a bot to act only within a certain radius. Will a
bot always process events within a standard large bot space, and do I just
have to check the positions that these events originate from in order to see
if my bot should do something, or is there something I can set that tells my
bot to only respond to events within a certain radius?

Like, say a bot always processes events within a 100 m radius (which I know
it doesn't, but just for illustration's sake...) and I only want to handle
r=50m. Do I have to check all events that come in, or can I simply set
something that would automatically restrict what area my bot listens to?

Thanks,

Omar

young phalpha

Dec 14, 2000, 5:33pm
Depends :) Are you programming it ? If so, try to do an IF function,
however, I am new to programming, so ask Agent1, Ima Genius, HamFon, Byte
Me, ect.. :) They might know :)

[View Quote]

xelag

Dec 14, 2000, 6:26pm
Hi,

you cannot control which events are received, except by installing or not a
certain event handler. But you can, in your own code, select which events
you process.

Some events receive coordinates: AvatarAdd and AvatarChange (AvatarDelete
does not), CellObject (in the process of querying property).

In events that involve coordinates but do not receive them or receive
partial coordinates, you need to consult your own buffered data, retrieve
the coords and use that.

If you use scriptable bots, like the xelagot, the checking can be done in
scripting more easily, because the buffers are already made and consulted
before the event is sent to the script, so you receive full data in the
script event handler.

XelaG

[View Quote]

twisted horizon

Dec 15, 2000, 6:53pm
Although theoretically you could keep a database of avatar positions and see
if the person you're acting on is within that radius (Unless you're using a
aw_say function) but you can't actually have it act on a specific radius.
Only standard and Public Speaker radiuses.
-Twist
[View Quote]

the derek

Dec 16, 2000, 12:25am
i have a little "scriptlet" that shows you how to get the distance between two
avatars...
you could try starting with that then expanding on your own
BTW this code in vb but if youve had geometry you can probably get the jist of
it
bots.findhere.com

[View Quote] > Hi,
>
> I'm trying to restrict a bot to act only within a certain radius. Will a
> bot always process events within a standard large bot space, and do I just
> have to check the positions that these events originate from in order to see
> if my bot should do something, or is there something I can set that tells my
> bot to only respond to events within a certain radius?
>
> Like, say a bot always processes events within a 100 m radius (which I know
> it doesn't, but just for illustration's sake...) and I only want to handle
> r=50m. Do I have to check all events that come in, or can I simply set
> something that would automatically restrict what area my bot listens to?
>
> Thanks,
>
> Omar

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