|
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
|
03-14-2006 13:56
Is it possible to read from 2 different notecards in 1 script? If so how?
|
|
Jabador Jimador
happy submissive
Join date: 28 Sep 2005
Posts: 15
|
03-14-2006 14:25
You need to clarify Your question please in order to get a specific example. But the short, and not so helpful, answer is Yes, it is possible to read from two different notecards in the same script
_____________________
Jabador Jimador Owned and collared by Master Spiritfire Musketeer Any questions or complaints are to be directed to Him
|
|
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
|
03-14-2006 14:28
Yes. The below code sniplet "should" do the trick, although it is non-tested and could blow up and kill all your neighbor's pet hippos: key notecardreq1; key notecardreq2; integer notecardline1; integer notecardline2;
default { state_entry() { notecardreq1 = llGetNotecardLine("notecard1",notecardline1); notecardreq2 = llGetNotecardLine("notecard2",notecardline2); } dataserver(key query_id, string data) { if (query_id == notecardreq1) { if (data != EOF) { ++notecardline1; // DO STUFFS notecardreq1 = llGetNotecardLine("notecard1",notecardline1); } return; } if (query_id == notecardreq2) { if (data != EOF) { ++notecardline2; // DO STUFFS 2 notecardreq2 = llGetNotecardLine("notecard2",notecardline2); } return; } } }
|
|
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
|
03-14-2006 14:35
Those were...hippos? 
|