|
Flint Stantz
Registered User
Join date: 3 Apr 2006
Posts: 4
|
06-28-2006 12:50
I have a script that contains a hard coded integer.
I would like to be able to read a notecard that contains a number so the notecard can be changed instead of editing the script. The problem is that I've waded thru the forums for ever seeing several examples, but for string text. Can someone please have mercy on a complete newbie scripter and tell/show me how to do this?
Thanks in Advance!
|
|
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
|
06-28-2006 12:56
integer integername;
string name = "notecard name"; integer line = 0;
state_entry() { llGetNotecardLine(name,line); }
dataserver(key requestid, string data) { integername = (integer)data; }
This is basically how it would work.
|
|
Flint Stantz
Registered User
Join date: 3 Apr 2006
Posts: 4
|
Thank You!
06-28-2006 15:50
I'll incorporate it as soon as I get in-world tonight - Thanks again!
|