The source code for the EZScript module is currently in the wonderland-modules/unstable directory hosted on google code. The full path is: wonderland-modules/unstable/EZScript. If you want to try out EZScript on your own server, you can use Subversion to check out the code. See the Wonderblog article on EZScript for more information.

If you have written a script that is generally useful and well tested, please contribute it here.

// Hover

for(var x = 0; x < 2; x++) {
   animateMove(cell, 0, 0.5, 0, 1);
   animateMove(cell, 0, -0.5, 0, 1);
}
// Play animation already associated with an object

AnimateCell(cell);
// Spin 

Context.enableProximityEvents();
function s() {
   spin(cell, 5, 5);
}

Context.onApproach(s, false);
// Move NPC

Context.clearCallbacks();
Context.enableMouseEvents();

var x = 0;

function walk() {
   MoveNPC(cell, x, 0, 0);
}

Context.onClick(walk, false);
// Show message in HUD

Context.enableMouseEvents();

function show() {
   ShowHUDMessage("Welcome to 
        Open Wonderland!");
}

Context.onClick(show, false)

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 18-May-2011 15:22 by 163.117.141.243