Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need Help that the Scripting Wiki can't Seem to Provide

Tsu Goodliffe
Registered User
Join date: 23 Dec 2005
Posts: 86
08-26-2006 22:41
Greetings, I am trying to Understand how This at the very top of a script works and how I can find out what these Functions do and what they cause etc, But the Wiki never provides any good detail and I belive it needs to be "Re_Writen" For a better understanding cause Not everyone is so easly to understand how things work and what not and it would be nice for a change to have some actull "In Debth Details" for a change..

well this is what I need help with

CODE
integer POWER = 5000000;  
integer INDISCRIMINATE = FALSE;
integer PAIN = FALSE;
integer PUNCHING = FALSE;
_____________________
From: someone
[20:02] Tsu Goodliffe: T3 50$mouthly -_- lol
[20:13] Teeple Linden: I think he's looking everywhere...and your T3 is making me jealous. I pay that much for standard Cable (although Cox is excellent in this area)
[20:13] Tsu Goodliffe: Can I quote you on what you just said Lol
[20:14] Teeple Linden: Sure!
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
08-26-2006 22:56
Hi Tsu

In other languages these would probably be called "equates". They serve to provide a central point where you can change constants used throughout your program and also give some mnemonic meaning to them. The script is able change these values, but looking at their names they seem to be settings rather than variables.

LSL does not provide a way to tag variables as unchangable, not does it have an equate system.

hth Ed
Tsu Goodliffe
Registered User
Join date: 23 Dec 2005
Posts: 86
08-26-2006 23:08
From: ed44 Gupte
Hi Tsu

In other languages these would probably be called "equates". They serve to provide a central point where you can change constants used throughout your program and also give some mnemonic meaning to them. The script is able change these values, but looking at their names they seem to be settings rather than variables.

LSL does not provide a way to tag variables as unchangable, not does it have an equate system.

hth Ed


Very sorry, but Could Define what you mean in a easyer more comperhensive way to understand?

You lost me very quickly, I'm still learning to script and its not easy -_-
_____________________
From: someone
[20:02] Tsu Goodliffe: T3 50$mouthly -_- lol
[20:13] Teeple Linden: I think he's looking everywhere...and your T3 is making me jealous. I pay that much for standard Cable (although Cox is excellent in this area)
[20:13] Tsu Goodliffe: Can I quote you on what you just said Lol
[20:14] Teeple Linden: Sure!
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-27-2006 01:08
The things you've quoted aren't functions, they're definitions or declarations of variable names and default values.

It's setting up the script so it has something to work on if you like. I'm guessing from the names chosen it's in some sort of combat device.

Maybe an analogy would help. What the script does is a bit like a factory - it takes the raw materials put into it, and turns it into a finished product that does its job. The bits you've quoted are a bit like the raw materials, controlling what goes in so it produces a known quality of final product.

The place to look on the wiki for more about this would be under variable types and global variables which is what you've got there.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog
Jim Bunderfeld
The Coder
Join date: 1 Mar 2004
Posts: 161
08-27-2006 06:05
they are just globally integer variables.
_____________________
| - Linux Users - | #SecondLifeLinux on IRC.EnterTheGame.com
Yukio Nolan
Registered User
Join date: 25 Mar 2006
Posts: 8
08-27-2006 10:00
From: Tsu Goodliffe
Greetings, I am trying to Understand how This at the very top of a script works and how I can find out what these Functions do and what they cause etc, But the Wiki never provides any good detail and I belive it needs to be "Re_Writen"


Well your problem rather seems to be that you do not know how to programm at all. The Wiki also provides some tutorials that teach a bit about programming. Maybe you should check those out...