MelodicRain Posted January 21, 2022 Author Share Posted January 21, 2022 (edited) Is there any way to store data from both notecards, and only execute a function after both data are ready? It seems right now it calls dataserver twice synchronously, so the first call won't contain notecard2value, while the second call will contain both notecard1value and notecard2value. Rolig's script is not working for me at all (prints empty) while tomm55's script will print the line twice: First print: notecard1value [blank] (3-4sec delay) Second print: notecard1value notecard2value I guess I need to delay the llOwnerSay until both dataservers are executed? Edited January 21, 2022 by MelodicRain Link to comment Share on other sites More sharing options...
tomm55 Posted January 21, 2022 Share Posted January 21, 2022 (edited) 8 minutes ago, MelodicRain said: Is there any way to store data from both notecards, and only execute a function after both data are ready? That's what both scripts already do. Would be better if you shared your actual script with us, as you have probably changed it, or at least share the important parts. Edited January 21, 2022 by tomm55 1 Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 21, 2022 Share Posted January 21, 2022 I just tested my script in world. It works like a dream. If I type /123 0, I get [14:32] Object: a one . Typing /123 1 gives me [14:32] Object: b two and so on: [14:32] Object: c three [14:32] Object: d four [14:33] Object: e five 1 Link to comment Share on other sites More sharing options...
Quistess Alpha Posted January 22, 2022 Share Posted January 22, 2022 I'll just note that for debugging things in which order is important, llOwnersay isn't 100% reliable; Once in a blue moon it can get things very out of order, and anecdotally, when I've seen it get things out of order, it can do so that consistently wrong in the weirdest ways. Link to comment Share on other sites More sharing options...
MelodicRain Posted January 22, 2022 Author Share Posted January 22, 2022 My bad, I had accidentally put the llOwnerSay outside of the second if statement, which explains why it's running it twice. All good now, thanks everyone for your help! Learned a lot about reading notecards. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now