First VBScript

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

First VBScript // Archive: Tech Forum

1  |  

Post by Wigand // Aug 17, 2006, 8:51am

Wigand
Total Posts: 462
pic
I bought the new procedural animation tutorials and find it very helpful to learn more about LE-programming.

Now I wrote my first VBScript. It's a simple simulation of an elastic object bouncing on the floor. (Without the physical engine).

I am accustomed to the luxury of VB6 IDE, therefore I miss an object explorer and the F1 feature of VB6.


Would there be more examples of the TS programming objects?

Perhaps explanation for every object and syntax examples in a Wiki? :)


What are numbers, how big are integers? Do I need to declare variables?

What's about Dim? What are the differences between TS-VBScript and

VBScript?

Post by Délé // Aug 17, 2006, 10:33am

Délé
Total Posts: 1374
pic
Nice job Wigand! :banana: It's great to see someone else getting into scripting. I think some really great stuff will come out of the LE with more people like you getting into it. :)


I wish I could help with your questions but I don't really know much about VBScript. I seem to have gravitated towards Jscript myself. Perhaps Norm would know a bit more. I believe he works with VBScript more.


I agree, it would be nice if there was more documentation regarding scripting. It can be hard to figure out what can be accessed and how. The only thing I can recommend right now is to use the Jscript or VBScript macro record to record yourself doing different things. Then you can enter the script it creates to see how it's written. Also digging around in the scripts that are in the libraries can be helpful.


Hopefully they will make a scripting course sometime. That would be nice too.

Post by roman // Aug 17, 2006, 11:03am

roman
Total Posts: 320
Welcome on board Wigand, I will get some developers to answer your questions.

Post by peterma // Aug 28, 2006, 1:16am

peterma
Total Posts: 48
What are numbers, how big are integers? Do I need to declare variables?


'Number' type is floating-point number (8 bytes, aka double), 'int' type is integer (4 bytes, aka long interger).



What's about Dim? What are the differences between TS-VBScript and

VBScript?


tS uses standard MS VBScript engine v5.6, so it should be familiar to you. Surely there is a specialized set of available objects (or libraries) that you can use to manipulate with tS scene and objects in it, described in docs and examples.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn