View Single Post
Might get Complicated
Senior Member
MrMoke's Avatar
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Cool Might get Complicated - 01-20-2015, 04:01 PM

Pretty sure It can be done.

The Jython base for scripting for Alice2 can support that functionality, and it can be enhanced by using Java in your script.

To do so you must:

1) Activate Scripting in Preferences/Seldom used, then do some research on Alice Scripting, and play with it.

2) Do some Internet Research on Java calls that perform this functionality in a Java program.

3) Start a script and making sure to import the appropriate Java Libraries.

4) World variables actually are handled as Global, and can be used in both Alice blocks and Scripts. You can also pass them in as parameters when calling your methods.

5) Code the required Java calls in the Jython format used in Alice.

6) Test, TEst, TESt, TEST...

Last edited by MrMoke; 01-22-2015 at 09:04 AM.
Reply With Quote