From a0e0926493e6e2519df4ee98d2f894db7a445c0d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 4 Feb 2012 23:16:29 +1000 Subject: Change the test script into a proper LSL script. --- LuaSL/Test sim/objects/test.lsl | 18 +++++++++++++----- LuaSL/src/constants.lsl | 1 - 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'LuaSL') diff --git a/LuaSL/Test sim/objects/test.lsl b/LuaSL/Test sim/objects/test.lsl index 56864d3..6e1d915 100644 --- a/LuaSL/Test sim/objects/test.lsl +++ b/LuaSL/Test sim/objects/test.lsl @@ -1,6 +1,14 @@ -/* */ 4 /* c */ + /* c0 */ 2 /* c1 */ * /* c2 */ 10 /* c3 */ + /* c4 */ - 3 /* c5 */ * /* c6 */ ( /* c7 */ 5 /* c8 */ + /* c9 */ 1 /* cA */ ) /* cB */ ; /* cE */ -// Some more arithmetic - -1+1; -20.5 + 20 + 1.5; + +default +{ + state_entry() + { + llSay(0, /* */ 4 /* c */ + /* c0 */ 2 /* c1 */ * /* c2 */ 10 /* c3 */ + /* c4 */ + 3 /* c5 */ * /* c6 */ ( /* c7 */ 5 /* c8 */ + /* c9 */ 1 /* cA */ ) /* cB */) ; /* cE */ + // Some more arithmetic - + llSay(0, 1+1); + llSay(0, 20.5 + 20 + 1.5); + } +} + // This is the end my friend. \ No newline at end of file diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl index a3b01e4..e462a95 100644 --- a/LuaSL/src/constants.lsl +++ b/LuaSL/src/constants.lsl @@ -267,4 +267,3 @@ integer llListen(integer channel, string name, key id, string msg){} llMessageLinked(integer link, integer num, string text, key aKey){} - -- cgit v1.1