A simple LSL script in Sansar C#.

Hi everybody, i like to have a discussion on the most simple LSL script. As C# programmer i think you schould not program in C# as if it is LSL but i am sure that a lot of the people that comes to Sansar will know LSL and dont know much about C#. So this post will be an invitation of you all how a very familiar piece of script should be done in Sansar C#.

Every body that starts scripting in LSL begins with the code:

llSay(0, "Hello, Avatar!");

touch_start(integer total_number)
llSay(0, "Touched.");

What is the equivalent in C#?

For all who think that this is a prove that LSL is more simple. This script is more simple in LSL and more difficult in C#, because LSL is not general purpose but written for games. In a lot of situation C# is stronger. An example is lists (or arays, dictionaries etc...) and C# is very much faster.

I hope that the discussion will be about how to translate this script into C# because we all need to learn that to script for sansar.

For all lsl scripters who has a maybe stupid question; maybe the question isn't stupid at all and maybe there are a lot of lsl scripter that has the same question but don't dare to ask it.


Please sign in to leave a comment.