|
Mosje Schnabel
Registered User
Join date: 13 Dec 2006
Posts: 2
|
11-11-2007 04:30
Hi, Been searching up and down (even back and forth), but couldn't find the right answer... Is there a way to include a script in a script? Like in a PHP script where you would include or require another script for a script to run. That way you could make your own default library of often used or your own customized functions and include that in your object's script. For instance something like: From: someone //include a library script include functions_script1; include functions_script2;
//start script default { ... }
Tia! Love, Mosje
|
|
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
|
11-11-2007 04:41
Sadly not. Would be awesome though!
Nearest you can do is include separate scripts and pass messages back and forth asking them to perfrom functions.
|
|
Mosje Schnabel
Registered User
Join date: 13 Dec 2006
Posts: 2
|
11-11-2007 05:39
I was affraid this answer would come up...
Although the llLinkMessage function has little to no overhead it is soo horrible programming. Would be ideal to have the ability to script in an OO fashion as well..
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-11-2007 06:11
Actually you can write code using include's thou. Use Scite-EZ and write in ESL instead of LSL gives you that ability. Once you have your script the way you want then you can output an LSL file.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
|
11-11-2007 07:48
From: Mosje Schnabel I was affraid this answer would come up...
Although the llLinkMessage function has little to no overhead it is soo horrible programming. Would be ideal to have the ability to script in an OO fashion as well.. Actually, the first OOP languages were based around the concept of message passing. Using messages allows you to totally encapsulate the class data. Using message passing isn't bad per se, it's only when it's limited by the amount and type of data you can pass in a link message that you have issues.
|