![]() |
This Simple Arithmetic Machine[S.A.M] shows how a simple equation can be simulated using scripts, in Second Life.
Equation used for this example is (X + Y) * Z.
X, Y and Z are user inputs using Chat option. And the values flow with message passing.
* How to use *
To enter a value 5 to variable X, type /10 5. In Second World, that means you are sending message '5' to channel 10.
Likewise, you can enter Y value thorough channel 11, Z value through 13.
As the result of the equation is calculated,
the cylinder at the end rotates with the speed proportional to the result. (with maximum value as 100)
In order to stop the rotation, you can click on the cylinder or type anything to channel 123.
Or it resets in 5 seconds automatically.