
These forums are CLOSED. Please visit the new forums HERE
Confusion Galore! |
|
Aiden Lightcloud
Registered User
Join date: 6 May 2004
Posts: 1
|
08-15-2005 18:19
Okay, I have been on Second Life for about a year, and i still have absolutely no idea how to script, it's all confusing to me, and I'm broke in SL, and I need some help for scripting to maybe, earn some cash. Since I only have 120-odd lindens. I know, Pathetic, but can someone please explain a little something to me?
![]() |
Seagel Neville
Far East User
![]() Join date: 2 Jan 2005
Posts: 1,476
|
08-15-2005 20:58
See this LSL101. When I started to learn LSL, there wasn't such a splendid tutolial.
![]() _____________________
![]() ![]() |
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
08-15-2005 21:05
There's quite a bit to explain--try looking at the WIKI. Then look at all the free scripts out there (check junkyards). Familiarize yourself with programming languages in general. Picking up a book on programming logic is helpful, since LSL is based on languages like C++ and Java (though they SHOULD use C#, true object-oriented programming is so much nicer).
Honestly, taking the time to teach you all about programming would take a very long time. Try looking for Scripting 101 classes that are offered every once in a while. And remember that in the end, computers know only two answers--1 and 0 (TRUE and FALSE). integer price = 500; default { state_question_asked { key asker = llGetKey(0); integer hasmoney = llGetFundage(asker); if(hasmoney >= price) { string Approval = "You qualify for " + (hasmoney/price) + " hours of script training. Please contact your tutor in-game."; } else { string Approval = "You do not qualify for in-game training, please earn money and try again."; } llSay(0, Approval); } } I didn't write that dummy script just to bug ya--look at it and see if you understand the logic. Then dive in. |
Keknehv Psaltery
Hacker
![]() Join date: 11 Apr 2005
Posts: 1,185
|
08-16-2005 15:59
...And learn to use
CODE braces. Code without it looks ugly. (hint hint) _____________________
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
08-16-2005 18:41
C++ is object ORIENTED, but is not a TRUE object oriented language. Trust me. I'd write the description of how C++ isn't truly object oriented (though it normally appears so), but the explanation takes a few paragraphs
![]() You're right...I should definitely use php brackets. Sorry 'bout that. |
a lost user
Join date: ?
Posts: ?
|
08-16-2005 18:44
Having written in a number of languages over the last 23 years, I would have to say that LSL closely resembles C. Not C++.. no, I agree.. it doesn't resemble C++ that much but it does resemble the standard C language quite a lot.
|