A few requests. (Wishlist)

A few requests. // Wishlist

1  |  

orb

Nov 16, 2005, 2:22am
We ought to be able to use the wait command with astart names ie: ;astart
a wait=100, b wait=200, c


The other thing was I wish we could have a way to use a trigger that would
create a bump teleport or warp on a target object with create name x on it.
So that a series of triggers could change the tport commands on the target.

ltbrenton

Nov 16, 2005, 1:38pm
This is a multi-part message in MIME format.

------=_NextPart_000_0016_01C5EAC3.B71A17B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How about a scripting language?
Like, instead of two boxes, description and action, we have one box, =
Script

Example:

// example AW object script
event entry()
{
description =3D "This is an object!";
awMove(<0.0,1.0,0.0>);
}
event bump()
// and so on....

What do you guys think?

[View Quote] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>How about a scripting =
language?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Like, instead of two boxes, description =
and action,=20
we have one box, Script</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>// example AW object=20
script</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff>event</FONT>=20
entry()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; description =3D =
<FONT=20
color=3D#008000>"This is an object!"</FONT><FONT=20
color=3D#000000>;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800000>awMove</FONT>(<FONT =
color=3D#ff00ff>&lt;0.0,1.0,0.0&gt;</FONT><FONT=20
color=3D#000000>);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>event <FONT=20
color=3D#000000>bump()</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>// and so =
on....</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What do you guys think?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"ORB" &lt;</FONT><A=20
href=3D"mailto:sharonclarke at hotmail.com"><FONT face=3DArial=20
size=3D2>sharonclarke at hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A =
href=3D"news:437ab418$1 at server1.Activeworlds.com"><FONT=20
face=3DArial =
size=3D2>news:437ab418$1 at server1.Activeworlds.com</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
We ought to be=20
able to use the wait command with astart names ie:&nbsp;&nbsp;&nbsp; =
;astart=20
<BR>&gt; a wait=3D100, b wait=3D200, c<BR>&gt; <BR>&gt; <BR>&gt; The =
other thing was=20
I wish we could have a way to use a trigger that would <BR>&gt; create a =
bump=20
teleport or warp on a target object with create name x&nbsp; on it. =
<BR>&gt; So=20
that a series of triggers could change the tport commands on the target. =

<BR>&gt; <BR>&gt;</FONT> </BODY></HTML>

------=_NextPart_000_0016_01C5EAC3.B71A17B0--

ltbrenton

Nov 16, 2005, 1:39pm
Um, sorry, meant to post that in "and another"


-=LtB=-

[View Quote] Example:

// example AW object script
event entry()
{
description = "This is an object!";
awMove(<0.0,1.0,0.0>);
}
event bump()
// and so on....

What do you guys think?

[View Quote]

ksg

Nov 16, 2005, 4:10pm
This is a multi-part message in MIME format.

------=_NextPart_000_0039_01C5EAD9.113B02D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Would be good

Im sure < > isnt used around csv

There would have to be two "modes" one basic with the current way and =
one with the script as new users and none programmers probly dont know =
how scripts work
[View Quote] Example:

// example AW object script
event entry()
{
description =3D "This is an object!";
awMove(<0.0,1.0,0.0>);
}
event bump()
// and so on....

What do you guys think?

[View Quote] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 7.00.5112.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Would be good<BR><BR>Im sure &lt; &gt; =
isnt used=20
around csv<BR><BR>There would have to be two "modes" one basic with the =
current=20
way and one with the script as new users and none programmers probly =
dont know=20
how scripts work</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"LtBrenton" &lt;<A=20
=
href=3D"mailto:uaf_brenton at concsols.com">uaf_brenton at concsols.com</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:437b5265 at server1.Activeworlds.com">news:437b5265 at server1.Act=
iveworlds.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>How about a scripting =
language?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Like, instead of two boxes, =
description and=20
action, we have one box, Script</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>// example AW object=20
script</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff>event</FONT>=20
entry()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; description =3D =
<FONT=20
color=3D#008000>"This is an object!"</FONT><FONT=20
color=3D#000000>;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800000>awMove</FONT>(<FONT=20
color=3D#ff00ff>&lt;0.0,1.0,0.0&gt;</FONT><FONT=20
color=3D#000000>);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>event <FONT=20
color=3D#000000>bump()</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>// and so =
on....</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What do you guys think?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"ORB" &lt;</FONT><A=20
href=3D"mailto:sharonclarke at hotmail.com"><FONT face=3DArial=20
size=3D2>sharonclarke at hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A =
href=3D"news:437ab418$1 at server1.Activeworlds.com"><FONT=20
face=3DArial =
size=3D2>news:437ab418$1 at server1.Activeworlds.com</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
We ought to be=20
able to use the wait command with astart names ie:&nbsp;&nbsp;&nbsp; =
;astart=20
<BR>&gt; a wait=3D100, b wait=3D200, c<BR>&gt; <BR>&gt; <BR>&gt; The =
other thing=20
was I wish we could have a way to use a trigger that would <BR>&gt; =
create a=20
bump teleport or warp on a target object with create name x&nbsp; on =
it.=20
<BR>&gt; So that a series of triggers could change the tport commands =
on the=20
target. <BR>&gt; <BR>&gt;</FONT> </BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0039_01C5EAD9.113B02D0--

swe

Nov 16, 2005, 4:31pm
screw simple. people can learn :P
plus, chances are it will never happen, but seriously, in my opinion, if AW
just had secondlifes scripting capabilities, would be perfect.

-SWE

[View Quote] Im sure < > isnt used around csv

There would have to be two "modes" one basic with the current way and one
with the script as new users and none programmers probly dont know how
scripts work

andras

Nov 16, 2005, 8:03pm
[View Quote] > How about a scripting language?
> Like, instead of two boxes, description and action, we have one box, Script
>
> Example:
>
> // example AW object script
> event entry()
> {
> description = "This is an object!";
> awMove(<0.0,1.0,0.0>);
> }
> event bump()
> // and so on....
>
> What do you guys think?
>
>

Concept is good.

I wonder what made you the urge to post this 15 lines in HTML bloating the whole post to 128 lines according to Thunderbird??
Is there anything the plain text did not deliver in this message?
IMHO people reading the newsgroups understand your post without the fancy colors.

Any opposition?
--
Andras
"It's MY computer" (tm Steve Gibson)

joeman

Nov 16, 2005, 8:58pm
But think about the colors!!

-Joe

[View Quote]

sw comit

Nov 16, 2005, 10:17pm
The ultimate HTML cop you :P
Who cares though? 4kb? oh noez lol

[View Quote]

ltbrenton

Nov 17, 2005, 9:28am
This is a multi-part message in MIME format.

------=_NextPart_000_0030_01C5EB69.FFB91420
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It's a vector. Otherwise if the method had multiple parameters, it =
would be like this:

method(<x,y,z>,param2,param3,[optional1]);
[View Quote] Im sure < > isnt used around csv

There would have to be two "modes" one basic with the current way and =
one with the script as new users and none programmers probly dont know =
how scripts work
[View Quote] Example:

// example AW object script
event entry()
{
description =3D "This is an object!";
awMove(<0.0,1.0,0.0>);
}
event bump()
// and so on....

What do you guys think?

[View Quote] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>It's a vector.&nbsp; Otherwise if the =
method had=20
multiple parameters, it would be like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>method(&lt;x,y,z&gt;,param2,param3,[optional1]);</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ksg" &lt;<A=20
=
href=3D"mailto:kingsmallguy at my.activeworlds.com">kingsmallguy at my.activewo=
rlds.com</A>&gt;=20
[View Quote] ------=_NextPart_000_0030_01C5EB69.FFB91420--

ltbrenton

Nov 17, 2005, 9:29am
I'm a perfectionist. Pretty colors rock =D


-=LtB=-

[View Quote]

ltbrenton

Nov 17, 2005, 9:54am
This is a multi-part message in MIME format.

------=_NextPart_000_0051_01C5EB6D.A1423300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'll make a more detailed explanation.

You got the main variable types:

int
char
char[]
string
string[]
bool
vector
list

OK, I'm guessing that everyone knows most of those.

List is declared like this:

list myList;

and can be used to store multiple values, e.g.=20

list myList =3D (/* note the square brackets */["String value 1" | 201 | =
"String value 2" ]); // this list holds 3 variables and can
// be accessed independently with myList.1, mylist.2, mylist.3 etc

Vectors are declared with:

vector myVector;

and assigned values like this:

myVector =3D <1,2,3>; //note the < > around the values, so that it will =
not be confused for multiple arguments when used in a method

Cell data limits would have to be removed, as there is actually no need =
for them anyway. In the action box, to declare a script you would start =
it with <?script and end with ?>. Eventually I'd like to see something =
similar to SL's object inventory, where you can create and upload =
AWScripts from an external editor.

I'm gonna post an example "vehicle" script here

<?script
// Example vehicle script
event script_start()
{
awSay("I am a vehicle. Click me to drive!");
// Constants are always blue, they can be defined by placing the =
modifier "const" before the variable declaration, e.g. "const int =
TYPE_VEHICLE"
awSetObjectType(TYPE_VEHICLE);
}
event activate()
{
awSitAvatar(<0,0,0>); // this sits the avatar in the center of the =
object. This will anchor the avatar to the object, and play the "sit" =
seq.
awTakeControls(CONTROL_DIRECTIONAL); // these controls can be one of =
a number of control values, I haven't thought of any more
awSay("Ready");
}
event control(vector control_received)
{
// Bit of explanation here. Controls generate vector values. =
Forward arrow gives <0,0,1>, backward arrow gives <0,0,-1>. Left arrow =
gives <-1,0,0> and right arrow
// gives <1,0,0>. You may have to alter these vectors depending on =
the rotation of the object. You can use your own vectors.
if(control_received.x !=3D 0) {
awRotateObject(control_received);
}
else {
awMoveObject(control_received);
}
}
?>

This script would give a very crudely controllable vehicle. If this =
isn't implemented into AW, I might make a form of this scripting engine =
in my own VR, yet to be completed =3DP

[View Quote] method(<x,y,z>,param2,param3,[optional1]);
[View Quote] Im sure < > isnt used around csv

There would have to be two "modes" one basic with the current way =
and one with the script as new users and none programmers probly dont =
know how scripts work
[View Quote] Example:

// example AW object script
event entry()
{
description =3D "This is an object!";
awMove(<0.0,1.0,0.0>);
}
event bump()
// and so on....

What do you guys think?

[View Quote] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>I'll make a more detailed =
explanation.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You got the main variable =
types:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>char</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>char[]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>string</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>string[]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bool</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>vector</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>list</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>OK, I'm guessing that everyone knows =
most of=20
those.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>List is declared like =
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff>list </FONT><FONT =

color=3D#000000>myList;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and can be used to store multiple =
values, e.g.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
color=3D#0000ff></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff>list </FONT><FONT =

color=3D#000000>myList =3D (</FONT><FONT color=3D#ff0000>/* note the =
square brackets=20
*/</FONT><FONT color=3D#000000>[</FONT><FONT color=3D#008000>"String =
value=20
1"</FONT><FONT color=3D#000000> | </FONT><FONT color=3D#0000ff>201 =
</FONT><FONT=20
color=3D#000000>| </FONT><FONT color=3D#008000>"String value =
2"</FONT><FONT=20
color=3D#000000> ]); </FONT><FONT color=3D#ff0000>// this list holds 3 =
variables and=20
can</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>// be accessed =
independently with=20
myList.1, mylist.2, mylist.3 etc</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Vectors are declared with:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>vector <FONT=20
color=3D#000000>myVector;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and assigned values like =
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>myVector =3D <FONT=20
color=3D#ff00ff>&lt;1,2,3&gt;</FONT><FONT color=3D#000000>; </FONT><FONT =

color=3D#ff0000>//note the &lt; &gt; around the values, so that it will =
not be=20
confused for multiple arguments when used in a =
method</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cell data limits would have to be =
removed, as there=20
is actually no need for them anyway.&nbsp; In the action box, to declare =
a=20
script you would start it with &lt;?script and end with ?&gt;.&nbsp; =
Eventually=20
I'd like to see something similar to SL's object inventory, where you =
can create=20
and upload AWScripts from an external editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm gonna post an example "vehicle" =
script=20
here</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;?<FONT =
color=3D#800000>script</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>// Example vehicle=20
script</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>event <FONT=20
color=3D#000000>script_start()</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800000>awSay</FONT><FONT color=3D#000000>(</FONT><FONT =
color=3D#008000>"I am=20
a vehicle. Click me to drive!"</FONT><FONT =
color=3D#000000>);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT =
color=3D#ff0000>// Constants=20
are always blue, they can be defined by placing the modifier "const" =
before the=20
variable declaration, e.g. "const int TYPE_VEHICLE"</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
color=3D#800000>&nbsp;&nbsp;&nbsp;=20
awSetObjectType</FONT><FONT color=3D#000000>(</FONT><FONT=20
color=3D#0000ff>TYPE_VEHICLE</FONT><FONT =
color=3D#000000>);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>event <FONT=20
color=3D#000000>activate()</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800000>awSitAvatar</FONT><FONT color=3D#000000>(</FONT><FONT=20
color=3D#ff00ff>&lt;0,0,0&gt;</FONT><FONT color=3D#000000>); =
</FONT><FONT=20
color=3D#ff0000>// this sits the avatar in the center of the =
object.&nbsp; This=20
will anchor the avatar to the object, and play the "sit"=20
seq.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800000>awTakeControls</FONT><FONT color=3D#000000>(</FONT><FONT =

color=3D#0000ff>CONTROL_DIRECTIONAL</FONT><FONT color=3D#000000>); =
</FONT><FONT=20
color=3D#ff0000>// these controls can be one of a number of control =
values, I=20
haven't thought of any more</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#800000>awSay</FONT><FONT color=3D#000000>(</FONT><FONT=20
color=3D#008000>"Ready"</FONT><FONT =
color=3D#000000>);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>event <FONT=20
color=3D#000000>control</FONT><FONT color=3D#0000ff>(vector <FONT=20
color=3D#000000>control_received</FONT>)</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT =
color=3D#ff0000>// Bit of=20
explanation here.&nbsp; Controls generate vector values.&nbsp; Forward =
arrow=20
gives &lt;0,0,1&gt;, backward arrow gives &lt;0,0,-1&gt;. Left arrow =
gives=20
&lt;-1,0,0&gt; and right arrow</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2>&nbsp;&nbsp;&nbsp; // =
gives=20
&lt;1,0,0&gt;.&nbsp; You may have to alter these vectors depending on =
the=20
rotation of the object. You can use your own vectors.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#0000ff>if</FONT><FONT color=3D#000000>(control_received.x !=3D =
0)=20
{</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
<FONT=20
color=3D#800000>awRotateObject</FONT><FONT=20
color=3D#000000>(control_received);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#0000ff>else</FONT>&nbsp;{</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
<FONT color=3D#800000>awMoveObject</FONT><FONT=20
color=3D#000000>(control_received);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>?&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This script would give a&nbsp;very =
crudely=20
controllable&nbsp;vehicle.&nbsp; If this isn't implemented into AW, I =
might make=20
a form of this scripting engine in my own VR, yet to be completed=20
=3DP</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"LtBrenton" &lt;<A=20
=
href=3D"mailto:uaf_brenton at concsols.com">uaf_brenton at concsols.com</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:437c6960 at server1.Activeworlds.com">news:437c6960 at server1.Act=
iveworlds.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>It's a vector.&nbsp; Otherwise if the =
method had=20
multiple parameters, it would be like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>method(&lt;x,y,z&gt;,param2,param3,[optional1]);</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ksg" &lt;<A=20
=
href=3D"mailto:kingsmallguy at my.activeworlds.com">kingsmallguy at my.activewo=
rlds.com</A>&gt;=20
[View Quote] ------=_NextPart_000_0051_01C5EB6D.A1423300--

andras

Nov 17, 2005, 12:59pm
[View Quote] > I'm a perfectionist. Pretty colors rock =D
>
>
> -=LtB=-
>

And I pay by the amount I download - are you willing to share the cost of my internet connection?

--
Andras
"It's MY computer" (tm Steve Gibson)

joeman

Nov 17, 2005, 10:25pm
You sure do love your colors. Reply below.

[View Quote] Whats the difference between a character array, a string, and a string
array in this crazy language you've come up with?

> OK, I'm guessing that everyone knows most of those.
>
> List is declared like this:
>
> list myList;
>
> and can be used to store multiple values, e.g.
>
> list myList = (/* note the square brackets */["String value 1" | 201 |
> "String value 2" ]); // this list holds 3 variables and can
> // be accessed independently with myList.1, mylist.2, mylist.3 etc

To fit in with current programming languages it would be best to use
brackets { } to define a list, as well as use a comma as a deliniator.

> Vectors are declared with:
>
> vector myVector;
>
> and assigned values like this:
>
> myVector = <1,2,3>; //note the < > around the values, so that it will
> not be confused for multiple arguments when used in a method
>
> Cell data limits would have to be removed, as there is actually no need
> for them anyway. In the action box, to declare a script you would start
> it with <?script and end with ?>. Eventually I'd like to see something
> similar to SL's object inventory, where you can create and upload
> AWScripts from an external editor.

Im sure theres a reason, as they wouldnt just add it for no good reason,
and then improve it after implementation for another no good reason.

> I'm gonna post an example "vehicle" script here
>
> <?script
> // Example vehicle script
> event script_start()
> {
> awSay("I am a vehicle. Click me to drive!");
> // Constants are always blue, they can be defined by placing the
> modifier "const" before the variable declaration, e.g. "const int
> TYPE_VEHICLE"
> awSetObjectType(TYPE_VEHICLE);
> }
> event activate()
> {
> awSitAvatar(<0,0,0>); // this sits the avatar in the center of the
> object. This will anchor the avatar to the object, and play the "sit" seq.
> awTakeControls(CONTROL_DIRECTIONAL); // these controls can be one of
> a number of control values, I haven't thought of any more
> awSay("Ready");
> }
> event control(vector control_received)
> {
> // Bit of explanation here. Controls generate vector values.
> Forward arrow gives <0,0,1>, backward arrow gives <0,0,-1>. Left arrow
> gives <-1,0,0> and right arrow
> // gives <1,0,0>. You may have to alter these vectors depending on
> the rotation of the object. You can use your own vectors.
> if(control_received.x != 0) {
> awRotateObject(control_received);
> }
> else {
> awMoveObject(control_received);
> }
> }
> ?>
>
> This script would give a very crudely controllable vehicle. If this
> isn't implemented into AW, I might make a form of this scripting engine
> in my own VR, yet to be completed =P

Have fun with that, scripting is one of the harder things to do when
programming.

-Joe

>
> "LtBrenton" <uaf_brenton at concsols.com
[View Quote]

sw comit

Nov 17, 2005, 10:43pm
Sounds like a losing battle. People will never stop the occasional HTML
post. Furthermore, how many KB do all the posts about posting in HTML add
up to? ^_^

[View Quote]

andras

Nov 18, 2005, 6:09am
[View Quote] > Sounds like a losing battle.

I don't think so :) I was just generous to the posters I did not *ban completely* HTML posting.

> People will never stop the occasional HTML post.

Occasionally it has merit.

> Furthermore, how many KB do all the posts about posting in HTML add up to? ^_^

Agree. (so far it is still less together than actual posts' excess bag :)

--
Andras
"It's MY computer" (tm Steve Gibson)

strike rapier

Nov 21, 2005, 1:21pm
You come up as your own fricken ISP (Andras.net Inc) when you WhoIs you, and
you complain about bandwidth >_< I wish I had your fricken servers.

--
- Mark Randall
http://zetech.swehli.com

"Those people that think they know everything are a great annoyance to those
of us who do"
Isaac Asimov

[View Quote]

mpl knight

Jan 23, 2006, 9:11am
Hehe...

Actually, talking about AW Scripting language...

I've heard "stories" that such a thing was the original intention for the
bot architecture but was never truly implemented from 1996...

What I heard went something like thus:

Back in the day, when AW was all shiny and new, the original programmers sat
down when designing the AW system and began to model the design to mimic the
descriptions (as best they could) of those read from stuff like Snow Crash.

In the books, it was mentioned that the Metaverse (Street) had it's own
scripting language by which objects could be "programmed" to perform various
tasks such as basic movement, color, size, etc - but also internally the
system would also interpret daemon scripting as well on objects - thus
performing more advanced scripting attached to a simple object.

So, all of the functions of a "bot" script could be simply written as a bot
script (like those we see in Xelegot or Preston) and instead of a seperate
bot server running to interpret the interactions - the client browser itself
would interpret the scripting. Client Side Bot Interpreter (not server
side).

The command for this would look something like thus:

create bot http://www.somerandomdomain.com/yourbotscript.txt

and what would happen is that highly complex scripts could be written much
like bot scripts are written now, stored on a server someplace as a simple
txt formatted file, and downloaded on demand when the object downloaded for
a user.

This in turn solves a great many problems, as now a single server no longer
needs to take requests from hundreds or thousands of interactions and keep
up (bot lag) - instead the script itself is interpreted on the local user's
machine as an advanced object. No need to count bots as users in a world
(bot limits) because standard objects are now slightly more intelligent than
the general picture frame.

Self contained scripting for objects, without use of AW world servers to do
it or running hundreds of bots (or spawns).

Instead, setting a avatar in world as an object - pointing to the seq file
for movement in the script, and writing some interaction scripts (like a
normal bot owner would) creates an intelligent object behind a counter :)

What the user sees is a bot. No external program needed to run on a server
someplace. Just a 30Kb script, downloaded like a JPG.

All of this (I hear) was a brainchild of Protag back in the day. The name
may escape me at this wee hour of the morning (but it sounds about right,
because Hiro Protagonist is the name of the main character in Snow Crash ...
and ummm... so is E N Z O "smile enzo loves you"... gee I think these people
are heavily influenced by Snow Crash...)

This also seems to be the general process behind Second Life (as they are
waving around the Metaverse Banner to the media and public)... Something
tells me they may have read Snow Crash as well :)

The problem with Second Life is, that a Metaverse is defined as a Data
Scripted Virtual Universe. What Second Life actually is, is a MetaWorld
(albeit increasing large). In order to effectively be a full blown
Metaverse, a system should incorporate multiple worlds (like AW). Second
Life as a company is hellbent on *not* doing multiple universe systems and
wants everyone (including business) to simply be happy with a tract of land
or island on their giant world...

To link two Metaverse systems together has never really been touched upon,
but I believe the terminology for such a thing would be Parallel Metaverse.
And in quantity: Massive Parallel Metaverse (MPM) which I doubt any company
in their right mind would knowingly allow... lol

But to be truthful... thats what I'm working for in my company. I would
*love* to see a Massive Parallel Metaverse. And nobody ever accused me of
being in my right mind :P

*shivers*

God that makes me feel good just to type that...

Okies... I'm done for now :)

MPL Knight



[View Quote]

ltbrenton

Jan 23, 2006, 10:42am
This is a multi-part message in MIME format.

------=_NextPart_000_0087_01C6201A.809D5170
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

OK, the differences are as follows

char[] - A character array. Contains one or more Unicode characters.

For example:

<?script
char[] stringdump;
string mystring;

char[] DumpString2Char(string toDump)
{
char[] buffer;

for(int i =3D 0;i<=3Dstrlen(mystring);i++)
{
buffer[i] =3D (char)substr(toDump, i, i);
}
return buffer;
}
stringdump =3D DumpString2Char("howdy");

?>

This now returns a character array. So instead of messing about with =
substr() and loops, all we have to do to pull up a specific char out of =
an array is:

say((string)stringdump[2]); // this says the second character in the =
string we dumped to the array earlier, in this case it would say "o"

A string array can contain multiple strings. e.g.

strarray[0] =3D "hello";
strarray[1] =3D "how";
strarray[2] =3D "are";
strarray[3] =3D "you?";

for(int i =3D 0; i <=3D 3; i++)
{
say(strarray[i]);
}

this would say "hello how are you" on multiple lines.

That's the difference between char, char[], string, and string[].


-LtB


[View Quote] > array in this crazy language you've come up with?
>=20
201 |=20
>=20
> To fit in with current programming languages it would be best to use=20
> brackets { } to define a list, as well as use a comma as a deliniator.
>=20
will=20
need=20
start=20
something=20
>=20
> Im sure theres a reason, as they wouldnt just add it for no good =
reason,=20
> and then improve it after implementation for another no good reason.
>=20
the=20
"sit" seq.
of=20
arrow=20
on=20
engine=20
>=20
> Have fun with that, scripting is one of the harder things to do when=20
> programming.
>=20
> -Joe
>=20
it
have
astart
a
------=_NextPart_000_0087_01C6201A.809D5170
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>OK, the differences are as =
follows</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>char[] - A character array.&nbsp; =
Contains one or=20
more Unicode characters.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>For example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#008000 =
size=3D2>&lt;?script</FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><FONT =
color=3D#000000><FONT=20
color=3D#0000ff>char</FONT></FONT><FONT color=3D#000000>[]=20
stringdump;</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2>string <FONT=20
color=3D#000000>mystring;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><FONT =
color=3D#000000><FONT=20
color=3D#0000ff>char</FONT></FONT><FONT color=3D#000000>[]=20
DumpString2Char(</FONT><FONT color=3D#0000ff>string </FONT><FONT=20
color=3D#000000>toDump)</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{<BR>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#0000ff>char</FONT><FONT color=3D#000000>[] =
buffer;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; <FONT face=3DArial size=3D2><FONT=20
color=3D#0000ff>for</FONT>(<FONT color=3D#0000ff>int</FONT> i =3D =
0;i&lt;=3D<FONT=20
color=3D#800000>strlen</FONT>(mystring);i++)<BR>&nbsp;&nbsp;&nbsp;=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; buffer[i] =3D (<FONT=20
color=3D#0000ff>char</FONT>)<FONT color=3D#800000>substr</FONT><FONT=20
color=3D#000000>(toDump, i, =
i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;=20
</FONT><FONT color=3D#0000ff>return </FONT><FONT=20
color=3D#000000>buffer;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>stringdump =3D =
DumpString2Char("howdy");</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#008000 size=3D2>?&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This now returns a character =
array.&nbsp; So=20
instead of messing about with substr() and loops, all we have to do to =
pull up a=20
specific char out of an array is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>say((string)stringdump[2]); // this =
says the second=20
character in the string we dumped to the array earlier, in this case it =
would=20
say "o"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>A string array can contain multiple =
strings.&nbsp;=20
e.g.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>strarray[0] =3D "hello";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>strarray[1] =3D "how";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>strarray[2] =3D "are";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>strarray[3] =3D "you?";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>for(int i =3D 0; i &lt;=3D 3; =
i++)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{<BR>&nbsp;&nbsp;&nbsp;=20
say(strarray[i]);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>this would say "hello how are you" on =
multiple=20
lines.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>That's the difference between char, =
char[], string,=20
and string[].</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-LtB</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"joeman" &lt;</FONT><A=20
href=3D"mailto:john at fakeplastic.com"><FONT face=3DArial=20
size=3D2>john at fakeplastic.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A =
href=3D"news:437d1f69$2 at server1.Activeworlds.com"><FONT=20
face=3DArial =
size=3D2>news:437d1f69$2 at server1.Activeworlds.com</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
You sure do love=20
your colors.&nbsp; Reply below.<BR>&gt; <BR>&gt; LtBrenton =
[View Quote] everyone knows most of those.<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; List is =
declared=20
like this:<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; list myList;<BR>&gt;&gt;&nbsp; =

<BR>&gt;&gt; and can be used to store multiple values, =
e.g.<BR>&gt;&gt;&nbsp;=20
<BR>&gt;&gt; list myList =3D (/* note the square brackets */["String =
value 1" |=20
201 | <BR>&gt;&gt; "String value 2" ]); // this list holds 3 variables =
and=20
can<BR>&gt;&gt; // be accessed independently with myList.1, mylist.2, =
mylist.3=20
etc<BR>&gt; <BR>&gt; To fit in with current programming languages it =
would be=20
best to use <BR>&gt; brackets { } to define a list, as well as use a =
comma as a=20
deliniator.<BR>&gt; <BR>&gt;&gt; Vectors are declared =
with:<BR>&gt;&gt;&nbsp;=20
<BR>&gt;&gt; vector myVector;<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; and =
assigned values=20
like this:<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; myVector =3D &lt;1,2,3&gt;; =
//note the=20
&lt; &gt; around the values, so that it will <BR>&gt;&gt; not be =
confused for=20
multiple arguments when used in a method<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; =
Cell=20
data limits would have to be removed, as there is actually no need =
<BR>&gt;&gt;=20
for them anyway.&nbsp; In the action box, to declare a script you would =
start=20
<BR>&gt;&gt; it with &lt;?script and end with ?&gt;.&nbsp; Eventually =
I'd like=20
to see something <BR>&gt;&gt; similar to SL's object inventory, where =
you can=20
create and upload <BR>&gt;&gt; AWScripts from an external =
editor.<BR>&gt;=20
<BR>&gt; Im sure theres a reason, as they wouldnt just add it for no =
good=20
reason, <BR>&gt; and then improve it after implementation for another no =
good=20
reason.<BR>&gt; <BR>&gt;&gt; I'm gonna post an example "vehicle" script=20
here<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; &lt;?script<BR>&gt;&gt; // Example =
vehicle=20
script<BR>&gt;&gt; event script_start()<BR>&gt;&gt;=20
{<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; awSay("I am a vehicle. Click me to =

drive!");<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; // Constants are always =
blue, they=20
can be defined by placing the <BR>&gt;&gt; modifier "const" before the =
variable=20
declaration, e.g. "const int <BR>&gt;&gt;=20
TYPE_VEHICLE"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
awSetObjectType(TYPE_VEHICLE);<BR>&gt;&gt; }<BR>&gt;&gt; event=20
activate()<BR>&gt;&gt; {<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
awSitAvatar(&lt;0,0,0&gt;); // this sits the avatar in the center of the =

<BR>&gt;&gt; object.&nbsp; This will anchor the avatar to the object, =
and play=20
the "sit" seq.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
awTakeControls(CONTROL_DIRECTIONAL); // these controls can be one of=20
<BR>&gt;&gt; a number of control values, I haven't thought of any=20
more<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; awSay("Ready");<BR>&gt;&gt;=20
}<BR>&gt;&gt; event control(vector control_received)<BR>&gt;&gt;=20
{<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; // Bit of explanation here.&nbsp; =
Controls=20
generate vector values.&nbsp; <BR>&gt;&gt; Forward arrow gives =
&lt;0,0,1&gt;,=20
backward arrow gives &lt;0,0,-1&gt;. Left arrow <BR>&gt;&gt; gives=20
&lt;-1,0,0&gt; and right arrow<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; // =
gives=20
&lt;1,0,0&gt;.&nbsp; You may have to alter these vectors depending on=20
<BR>&gt;&gt; the rotation of the object. You can use your own=20
vectors.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; if(control_received.x !=3D =
0)=20
{<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
awRotateObject(control_received);<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
}<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; else=20
{<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
awMoveObject(control_received);<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
}<BR>&gt;&gt; }<BR>&gt;&gt; ?&gt;<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; This =
script=20
would give a very crudely controllable vehicle.&nbsp; If this =
<BR>&gt;&gt; isn't=20
implemented into AW, I might make a form of this scripting engine =
<BR>&gt;&gt;=20
in my own VR, yet to be completed =3DP<BR>&gt; <BR>&gt; Have fun with =
that,=20
scripting is one of the harder things to do when <BR>&gt; =
programming.<BR>&gt;=20
<BR>&gt; -Joe<BR>&gt; <BR>&gt;&gt; <BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
"LtBrenton" &lt;</FONT><A href=3D"mailto:uaf_brenton at concsols.com"><FONT =

face=3DArial size=3D2>uaf_brenton at concsols.com</FONT></A><BR><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</FONT><A=20
href=3D"mailto:uaf_brenton at concsols.com"><FONT face=3DArial=20
size=3D2>mailto:uaf_brenton at concsols.com</FONT></A><FONT face=3DArial=20
[View Quote] face=3DArial size=3D2>uaf_brenton at concsols.com</FONT></A><BR><FONT =
face=3DArial=20
size=3D2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
&lt;</FONT><A href=3D"mailto:uaf_brenton at concsols.com"><FONT =
face=3DArial=20
size=3D2>mailto:uaf_brenton at concsols.com</FONT></A><FONT face=3DArial=20
size=3D2>&gt;&gt; wrote in=20
message<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
</FONT><A href=3D"news:437b5265 at server1.Activeworlds.com"><FONT =
face=3DArial=20
size=3D2>news:437b5265 at server1.Activeworlds.com</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
How about a scripting=20
language?<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
Like, instead of two boxes, description and action, we=20
have<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
one box,=20
Script<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
Example:<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
// example AW object=20
script<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
event=20
entry()<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
{<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
description =3D "This is an=20
object!";<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
awMove(&lt;0.0,1.0,0.0&gt;);<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
event=20
bump()<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
// and so=20
on....<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
What do you guys=20
think?<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
"ORB" &lt;</FONT><A href=3D"mailto:sharonclarke at hotmail.com"><FONT =
face=3DArial=20
size=3D2>sharonclarke at hotmail.com</FONT></A><BR><FONT face=3DArial=20
size=3D2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
&lt;</FONT><A href=3D"mailto:sharonclarke at hotmail.com"><FONT =
face=3DArial=20
size=3D2>mailto:sharonclarke at hotmail.com</FONT></A><FONT face=3DArial=20
size=3D2>&gt;&gt; wrote in=20
message<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
</FONT><A href=3D"news:437ab418$1 at server1.Activeworlds.com"><FONT =
face=3DArial=20
size=3D2>news:437ab418$1 at server1.Activeworlds.com</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&gt; We ought to be able to use the wait command with=20
astart<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
names ie:&nbsp;&nbsp;&nbsp;=20
;astart<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
&gt; a wait=3D100, b wait=3D200,=20
c<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
&gt; The other thing was I wish we could have a way to use=20
a<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
trigger that=20
would<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
&gt; create a bump teleport or warp on a target object=20
with<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
create name x&nbsp; on=20
it.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
&gt; So that a series of triggers could change the=20
tport<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
commands on the=20
target.<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
&gt;</FONT> </BODY></HTML>

------=_NextPart_000_0087_01C6201A.809D5170--

strike rapier

Jan 24, 2006, 7:30am
Has anyone told you that char[] sucks, TCHAR sucks more, and CString owns
your your a$$? There is a reason C++ exists you know. Oh, and since when was
AW *ever* unicode?

Take it from someone who is currently writing a run-compilable scripting
system based on C++ (kinda like typed PHP) for my bots (Looked at Lua - but
no OO, Looked at Python - but its not very clean, looked at MSScript (which
is still on the cards for evo) - but COM is one of those things that its
hard to find up to date information on).

-Precompiler
--Importer
---Token parser
----Define replacer
-----Reparser
------Memory Manager
-------Common statement compiler

Then you have to consider binding between application objects and your
internal scripting object model, how to insert objects in from outside the
scripting model at run-time, exception handling inside your script, it
calling objects outside that have been deallocated from actual memory.

Consider it a challenge, see how far you can get in 6 months.

PS: "char[] DumpString2Char(string toDump)" are you out of your f**king
mind???

--
- Mark Randall
http://www.temporal-solutions.co.uk
http://zetech.swehli.com

"Those people that think they know everything are a great annoyance to those
of us who do"
Isaac Asimov

[View Quote] char[] - A character array. Contains one or more Unicode characters.

For example:

<?script
char[] stringdump;
string mystring;

char[] DumpString2Char(string toDump)
{
char[] buffer;

for(int i = 0;i<=strlen(mystring);i++)
{
buffer[i] = (char)substr(toDump, i, i);
}
return buffer;
}
stringdump = DumpString2Char("howdy");

?>

This now returns a character array. So instead of messing about with
substr() and loops, all we have to do to pull up a specific char out of an
array is:

say((string)stringdump[2]); // this says the second character in the string
we dumped to the array earlier, in this case it would say "o"

A string array can contain multiple strings. e.g.

strarray[0] = "hello";
strarray[1] = "how";
strarray[2] = "are";
strarray[3] = "you?";

for(int i = 0; i <= 3; i++)
{
say(strarray[i]);
}

this would say "hello how are you" on multiple lines.

That's the difference between char, char[], string, and string[].


-LtB


[View Quote]

ltbrenton

Jan 24, 2006, 8:42am
There is also C#, which uses string, string[] char and char[]. TCHAR and
CString are C++. I use C# for all my programming.

DumpString2Char() is one example of a function, similar to the .NET
ToCharArray()


No, I assure you I am perfectly within my mind.

PS: I noticed a typo in my first post, regard "deliniator" as "delimiter".
I dunno how that got there.


=LtB=

[View Quote]

strike rapier

Jan 24, 2006, 10:06am
Hence why people say C# smells, char[] is completely counterintuative for
anyone who knows anything about windows API.

--
- Mark Randall
http://www.temporal-solutions.co.uk
http://zetech.swehli.com

"Those people that think they know everything are a great annoyance to those
of us who do"
Isaac Asimov
[View Quote]

strike rapier

Jan 24, 2006, 10:14am
(Because without this managed crap you have no way of knowing how long it
is)

--
- Mark Randall
http://www.temporal-solutions.co.uk
http://zetech.swehli.com

"Those people that think they know everything are a great annoyance to those
of us who do"
Isaac Asimov
[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