Thread

use a bot to add commands to objects! (Bots)

use a bot to add commands to objects! // Bots

1  |  

magine

Oct 8, 2002, 3:05am
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Here's an idea: you can add commands to objects by placing the commands
in the action field of the object and then having the bot respond to clicks
on that object. This is very simple to do with Magsbot. Just add this row
to the Magsbot behavior table:
<p><u>Active&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Event&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Action</u>
<br>On&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OBJECTCLICK&nbsp; at asn[i,ipos["~",$atr[object_action]]]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DO $tail[$atr[object_action], at i+1]
<br>&nbsp;
<p>With the above line in the behavior table and the bot running in global
mode in your world, it will respond to any command or sequence of commands
in the Magsbot command language that you place in the action field of an
object, tagged with the ~, like this:
<p><tt>create texture theblus1.jpg; activate noise thund3.wav; ~SAY "Hey,
don't touch that!"; at a= at avsession; FACE at faceav[ at a]; MOVETO at avz[ at a]+100
at avx[ at a]+100 at avy[ at a]; FACE at faceav[ at a]; GESTURE 3</tt>
<p>The Magsbot commands should be added after any standard AW commands.
The above example would cause the bot to speak, face toward and move to
the person who clicked on the object, then perform seq #3.&nbsp; This is
only a very simple example...you could make the bot create or delete or
change objects, make world announcements, start new bot instances, or nearly
anything you can think of. And since the commands are not being added to
the behavior table, you can have an unlimited number of them without creating
any lag in the bot...the actions only take place when an object is clicked,
and the code comes from the object itself!
<p>For even more complex actions (that might not fit in an object's action
field), you could place the code in a Magsbot custom button and just use
the CLICKBTN command to run the code in response to a click on the object.
<p>-Magine
<p>You can download Magsbot here: <a href="http://www.turtleflight.com/magine/mb.html">http://www.turtleflight.com/magine/mb.html</a>.</html>

kah

Oct 8, 2002, 8:55pm
"magine" <magine at turtleflight.com> wrote in
news:3DA26139.9A45EA97 at turtleflight.com:

> <<snipped scary HTML>>

Eeek! Don't post HTML!

KAH

tony m

Oct 8, 2002, 11:29pm
Can you please repost in plaintext? My newsreader is unable to interpret HTML.

[View Quote] ><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
*snip the evil HTML*

shred

Oct 9, 2002, 12:35am
Here's an idea: you can add commands to objects by placing the commands in the action field of the object and then having the bot respond to clicks on that object. This is very simple to do with Magsbot. Just add this row to the Magsbot behavior table:

Active Event Action
On OBJECTCLICK at asn[i,ipos["~",$atr[object_action]]] DO $tail[$atr[object_action], at i+1]


With the above line in the behavior table and the bot running in global mode in your world, it will respond to any command or sequence of commands in the Magsbot command language that you place in the action field of an object, tagged with the ~, like this:

create texture theblus1.jpg; activate noise thund3.wav; ~SAY "Hey, don't touch that!"; at a= at avsession; FACE at faceav[ at a]; MOVETO at avz[ at a]+100 at avx[ at a]+100 at avy[ at a]; FACE at faceav[ at a]; GESTURE 3

The Magsbot commands should be added after any standard AW commands. The above example would cause the bot to speak, face toward and move to the person who clicked on the object, then perform seq #3. This is only a very simple example...you could make the bot create or delete or change objects, make world announcements, start new bot instances, or nearly anything you can think of. And since the commands are not being added to the behavior table, you can have an unlimited number of them without creating any lag in the bot...the actions only take place when an object is clicked, and the code comes from the object itself!

For even more complex actions (that might not fit in an object's action field), you could place the code in a Magsbot custom button and just use the CLICKBTN command to run the code in response to a click on the object.

-Magine

You can download Magsbot here: http://www.turtleflight.com/magine/mb.html.

bowen

Oct 9, 2002, 12:41am
[View Quote] Wow? I would think it's safe to assume that even the most unrecent newsreaders can
intepret HTML. I know it's horribly evil to post in HTML (and I agree), but my god
it's not horrible to have a newsreader that can just in case. Especially if you want
to waste ~ another 2kb's to ask for it to be reposted?

--Bowen--

shred

Oct 9, 2002, 12:49am
[View Quote] Then you think incorrectly. Forte Free Agent 1.92 is not only recent, it is one of the most popular pieces of software used for newsgroup reading.

Did you ever think that Forte might have purposely left out an HTML interpreter? This would help serve to discourage the widespread use of HTML posting in newsgroups.

tony m

Oct 9, 2002, 12:59am
[View Quote] >
[View Quote] As Shred said, Forté Inc. has obviously left out an HTML intepreter for their own reasons (http://www.forteinc.com/agent/features.php if you'd like to look at what features are supported).

>I know it's horribly evil to post in HTML (and I agree), but my god it's not horrible to have a newsreader that can just in case.

If I wanted an HTML-capable newsreader, I would have one; that would mean I'd have one, not two, newsreaders.

>Especially if you want to waste ~ another 2kb's to ask for it to be reposted?

Shred was kind enough to repost; you weren't, and instead decided to comment on FreeAgent's capabilities. My post was hardly anywhere near 2KB, let alone even 1KB.

(Followup set to general.discussion)

bowen

Oct 9, 2002, 12:59am
> Then you think incorrectly. Forte Free Agent 1.92 is not only recent, it is one of
the most popular pieces of software used for newsgroup reading.
>
> Did you ever think that Forte might have purposely left out an HTML interpreter?
This would help serve to discourage the widespread use of HTML posting in newsgroups.

Well the main purpose of discouraging it was because of it's bulky size. Both the
HTML version and the text version were 3kb's. Nothing so wrong as that? You view
larger webpages everyday...

bowen

Oct 9, 2002, 1:03am
horrible to have a newsreader that can just in case.
>
> If I wanted an HTML-capable newsreader, I would have one; that would mean I'd have
one, not two, newsreaders.

Then why do people care so much if they want to read something that they're not
capable of because they decided against using the one that's prebuilt? I am just
saying that it wasn't that bad of an HTML post and it didn't completely zap anyones
bandwidth... still having one that CAN is a good thing just in case someone idiot
decides to put important information.

>
> Shred was kind enough to repost; you weren't, and instead decided to comment on
FreeAgent's capabilities. My post was hardly anywhere near 2KB, let alone even 1KB.

Why would I repost something that was already posted twice. I just checked here for
the new post so obviously it would've been quite silly for me to do so. There's no
point in starting another thread... just let it die and I will to. I was just asking
the question I didn't need extra comments from the peanut gallery. Once it's
answered, then ok.

--Bowen--

shred

Oct 9, 2002, 1:16am
[View Quote] Um... that's not my point. I have nothing against this single HTML post; it was reposted by me only at Tony's request. You will notice that I did not flame Magine for posting in HTML, or indeed, make any comment about it at all.

All I was saying is that Forte may have deliberately discluded an HTML interpreter in Agent in order to discourage the use of HTML in newsgroups. I said nothing of whether I agreed or disagreed with this reasoning.

If you want to argue the logicality of why or why not an HTML interpreter should be included in Free Agent and other newsreaders, then take your arguements to Forte (and other non-HTML interpreting newsreader writers) and the thousands or millions of people who use their software, not me.

bowen

Oct 9, 2002, 1:28am
> If you want to argue the logicality of why or why not an HTML interpreter should be
included in Free Agent and other newsreaders, then take your arguements to Forte (and
other non-HTML interpreting newsreader writers) and the thousands or millions of
people who use their software, not me.

I'm sure it's not quite millions. I think instead of making users read garbidly goup
they should at least remove the HTML code from the post. Even that's easier than an
interpreter.

--Bowen--

shred

Oct 9, 2002, 1:32am
[View Quote] I will say once again: do not bring your arguments to me. I have expressed no opinion. Send this suggestion to those who can plausibly bring it into effect. Can I be any more clear?

kah

Oct 9, 2002, 4:54pm
"bowen" <thisguyrules at 7k2.4mg.com> wrote in
news:3da39773$1 at server1.Activeworlds.com:

> Wow? I would think it's safe to assume that even the most unrecent
> newsreaders can intepret HTML. I know it's horribly evil to post in
> HTML (and I agree), but my god it's not horrible to have a newsreader
> that can just in case. Especially if you want to waste ~ another
> 2kb's to ask for it to be reposted?

It's not good to have newsreaders interpret it, because then it won't
motivate people to stop posting in HTML. If people can read their posts
properly, they're much more likely to start posting in plain-text. My
newsreader does not interpret or render HTML, but does recognise the MIME-
type and display a copy of the attached HTML file (that's how MS's HTML
posts are made up). It's really annoying having to read through a bunch of
HTML code though. If only OE/other MS crap-stuff interprets HTML, then less
OE users will use it, because a lot of people will flame them and ignore
them because of it. Some servers (on USENET that is) even kill all HTML
posts (a good idea in my opinion).

KAH

bowen

Oct 9, 2002, 5:13pm
Your logic is incosistant though. If someone posts in HTML they most likely have a
reader that can read HTML. Therefore it's not stopping anyone from reading it but
those who don't have a newsreader that can interpret it. Most likely they'll say
"too bad, so sad" and keep doing it. The best thing you can do is make one that
strips HTML from a post so you can read the plaintext. If you're still downloading
the message it's not doing anything in the saving bandwidth department.

--Bowen--

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