Thread

AW3 bot world light source support--when? (no text) (Sdk)

AW3 bot world light source support--when? (no text) // Sdk

1  |  

eepsquared

Apr 4, 2000, 10:20am

magine

Apr 7, 2000, 2:06am
--------------83CA6FC05A4E2665DD892181
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

You want a bot to change the lighting? You can use Magsbot 1.3. For
example, try creating an Action Button with this script, to see the sun
rise and set in a matter of seconds:

AWFLOAT WORLD_LIGHT_X=-1;
AWFLOAT WORLD_LIGHT_Y=-1;
AWFLOAT WORLD_LIGHT_Z=1;
at y=-1;
WHILE at y<=0 {
AWFLOAT WORLD_LIGHT_Y= at y;
WORLDATTRCHANGE;
at y= at y+.05;
MBWAIT 1000 };
AWFLOAT WORLD_LIGHT_z=-1;
WORLDATTRCHANGE;
MBWAIT 1000;
WHILE at y<=1 {
AWFLOAT WORLD_LIGHT_Y= at y;
WORLDATTRCHANGE;
at y= at y+.05;
MBWAIT 1000 }

You could refine the above example to adjust the light intensity and
color, too. It's just a starting point. Rather than using a loop as
above, you could use the STARTTIMER action and CLOCKTICK event instead
to move the "sun" along every minute or so.

Here's a little one to have the bot create sunset lighting:

AWINT WORLD_LIGHT_RED=255;
AWINT WORLD_LIGHT_GREEN=128;
AWINT WORLD_LIGHT_BLUE=64;
AWFLOAT WORLD_LIGHT_X=-1;
AWFLOAT WORLD_LIGHT_Y=0;
AWFLOAT WORLD_LIGHT_Z=1;
WORLDATTRCHANGE

And to restore afternoon lighting:

AWINT WORLD_LIGHT_RED=255;
AWINT WORLD_LIGHT_GREEN=255;
AWINT WORLD_LIGHT_BLUE=255;
AWFLOAT WORLD_LIGHT_X=-.8;
AWFLOAT WORLD_LIGHT_Y=-.5;
AWFLOAT WORLD_LIGHT_Z=-.2;
WORLDATTRCHANGE

Do it yourself, it's easy! :)

-Magine
http://www.pipeline.com/~magine


--------------83CA6FC05A4E2665DD892181
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
You want a bot to change the lighting? You can use Magsbot 1.3. For example,
try creating an Action Button with this script, to see the sun rise and
set in a matter of seconds:
<p><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_X=-1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_Y=-1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_Z=1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1> at y=-1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>WHILE at y&lt;=0 {</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp;AWFLOAT WORLD_LIGHT_Y= at y;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp;WORLDATTRCHANGE;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp; at y= at y+.05;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp;MBWAIT 1000
};</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_z=-1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>WORLDATTRCHANGE;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>MBWAIT 1000;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>WHILE at y&lt;=1 {</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp;AWFLOAT WORLD_LIGHT_Y= at y;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp;WORLDATTRCHANGE;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp; at y= at y+.05;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>&nbsp;MBWAIT 1000
}</font></font></b>
<p>You could refine the above example to adjust the light intensity and
color, too. It's just a starting point. Rather than using a loop as above,
you could use the STARTTIMER action and CLOCKTICK event instead to move
the "sun" along every minute or so.
<p>Here's a little one to have the bot create sunset lighting:
<p><b><font face="Courier New,Courier"><font size=-1>AWINT WORLD_LIGHT_RED=255;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWINT WORLD_LIGHT_GREEN=128;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWINT WORLD_LIGHT_BLUE=64;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_X=-1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_Y=0;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_Z=1;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>WORLDATTRCHANGE</font></font></b>
<p>And to restore afternoon lighting:
<p><b><font face="Courier New,Courier"><font size=-1>AWINT WORLD_LIGHT_RED=255;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWINT WORLD_LIGHT_GREEN=255;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWINT WORLD_LIGHT_BLUE=255;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_X=-.8;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_Y=-.5;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>AWFLOAT WORLD_LIGHT_Z=-.2;</font></font></b>
<br><b><font face="Courier New,Courier"><font size=-1>WORLDATTRCHANGE</font></font></b>
<p>Do it yourself, it's easy! :)
<p>-Magine
<br>&nbsp;<a href="http://www.pipeline.com/~magine">http://www.pipeline.com/~magine</a>
<br>&nbsp;</html>

--------------83CA6FC05A4E2665DD892181--

myrth

Apr 7, 2000, 2:08am
XelaGots now support this, Prestons will very soon, and ig0r made one for
himself i think too.


[View Quote]

eepsquared

Apr 7, 2000, 11:42am
[View Quote] > You want a bot to change the lighting? You can use Magsbot 1.3. For example, try creating an Action Button with this script, to see the sun rise and set in a matter of seconds:
>
> AWFLOAT WORLD_LIGHT_X=-1;
> AWFLOAT WORLD_LIGHT_Y=-1;
> AWFLOAT WORLD_LIGHT_Z=1;
> at y=-1;
> WHILE at y<=0 {
> AWFLOAT WORLD_LIGHT_Y= at y;
> WORLDATTRCHANGE;
> at y= at y+.05;
> MBWAIT 1000 };
> AWFLOAT WORLD_LIGHT_z=-1;
> WORLDATTRCHANGE;
> MBWAIT 1000;
> WHILE at y<=1 {
> AWFLOAT WORLD_LIGHT_Y= at y;
> WORLDATTRCHANGE;
> at y= at y+.05;
> MBWAIT 1000 }
>
> You could refine the above example to adjust the light intensity and color, too. It's just a starting point. Rather than using a loop as above, you could use the STARTTIMER action and CLOCKTICK event instead to move the "sun" along every minute or so.
>
> Here's a little one to have the bot create sunset lighting:
>
> AWINT WORLD_LIGHT_RED=255;
> AWINT WORLD_LIGHT_GREEN=128;
> AWINT WORLD_LIGHT_BLUE=64;
> AWFLOAT WORLD_LIGHT_X=-1;
> AWFLOAT WORLD_LIGHT_Y=0;
> AWFLOAT WORLD_LIGHT_Z=1;
> WORLDATTRCHANGE
>
> And to restore afternoon lighting:
>
> AWINT WORLD_LIGHT_RED=255;
> AWINT WORLD_LIGHT_GREEN=255;
> AWINT WORLD_LIGHT_BLUE=255;
> AWFLOAT WORLD_LIGHT_X=-.8;
> AWFLOAT WORLD_LIGHT_Y=-.5;
> AWFLOAT WORLD_LIGHT_Z=-.2;
> WORLDATTRCHANGE
>
> Do it yourself, it's easy! :)

For a textual programmer, perhaps...

Remember, most people are NOT programmers. Programmers need to make their programs more user-friendly to non-programmers!

--
http://tnlc.com/eep/ - Active Worlds, Tomb Raider, 3D game comparison, The Sims
Enable line/word wrap if text not wrapping.

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