two cards that open randomly

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

HJay
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 85
Joined: Sun Mar 04, 2012 12:16 pm

Re: two cards that open randomly

Post by HJay » Mon May 21, 2012 10:52 pm

Hi AtoZ

Hope you’re feeling better. Am very pleased you think we’ll reach my self-imposed deadline. Even though it is painfully slow this way there is probably more chance of me remembering what you have taught me? I am getting a drip feed of knowledge all the time which is allowing my brain not to get overwhelmed, which could so easily happen (Smile)

The stack doesn’t look exactly like I want it at the moment but if figured that if I got the mechanics working then I could tweak how it looked after that?

START CARD:

As I was reviewing the stack, I noticed something that we need to sort out. When a student finishes either of the color cards, the scripts for these cards currently sends the student back to the Start card, where he or she has to click the Start button again to begin the next cycle. Is this what you want? The alternative is to send the student directly to the next FR1 or FR20 card.
I was just review the stack and came to the same conclusion, what I really could do with is after leaving the first colour choice cards, instead of going back to the start card, that it went to another card that says next one or something like that I could also do with a 5 second delay, is it possible to use the progress bar for a fixed amount of time and then go on the next FR20 or FR1?
As I go through using the stack, it seems confusing to me to be confronted with the Start button again repeatedly, since I've already started some time ago. If you DO want the student to click a button each time he or she begins a new cycle, perhaps it would make more sense to change the Start button to a Continue button. This would work even the first time since the student is now coming from the Name card and has in a sense already begun the stack.
You are quite right it is confusing. I would like the name question followed by start button followed by a 5 second place holder card, I think!

2. Remembering that globals are not normally cleared between uses of a stack (unless LiveCode is closed), we need to ensure that gStartTime, and some other globals as well, are in fact empty the first time we go to the Start card. To do this, go to the stack script and add the following code at the top of the script:
Code: Select all
global gStudentName, gStartTime, gEndTime

on openStack
put empty into gStudentName
put empty into gStartTime
put empty into gEndTime
end openStack
Do I still need to do this bit, now I am not going all the way back to the start card.



Finally, if the student is to go back to the Start card for each cycle, I will need to revise our flow chart again to reflect this (no problem).
The flow chart is correct, I just need to make the program match it now, hmm I have tried to put another card in, the “take a break” card but something has gone wrong.

I have read the last two posts but didn’t want to start changing anything till I had fixed what has gone wrong here, sure that it is something to do with the 5 seconds.

Many thanks

HJay

HJay
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 85
Joined: Sun Mar 04, 2012 12:16 pm

Re: two cards that open randomly

Post by HJay » Mon May 21, 2012 10:54 pm

Hi AtoZ

oh have just got the message
Sorry, the board attachment quota has been reached.
What does this mean? What shall I do now?

HJay

AtoZ
Posts: 64
Joined: Tue Mar 06, 2012 8:31 am

Re: two cards that open randomly

Post by AtoZ » Tue May 22, 2012 5:23 am

So, it appears that it's time to take the rest of our dialog off the forum (I can hear cheers everywhere -- smile).

It used to be possible on some of the boards in the forum to switch to what was called "private messages" (which I believe is still mentioned when you sign up for the forum). Some time ago, when it became apparent that this was going to be an extended correspondence, I looked into this and discovered that the private message feature has been turned off on the entire forum, because the process involved showing the e-mail addresses of the participants. Apparently there are great quantities of automated "bots" scouring the Internet daily looking for e-mail addresses, and when they find them, the addresses are sent vast quantities of junk e-mails.

However, I noticed recently that one of the forum moderators had given out his e-mail address in a way that presumably would not be detected by the trolling bots. So I'm going to try that here. You can e-mail me at the following address: "san" underscore "diego" underscore "top" AT the mail that is hot DOT com. (It's all one word, with no spaces, like this: one_two_three@hot...etc.)

Just send me a short message first to be sure that I get it, and of course once I receive it, I'll have your e-mail address to respond to, so you don't have to post it here.

It's probably just as well, I doubt that anyone else was following our extended messages. However, if I'm wrong, and someone else wants to follow this through, she or he can e-mail me at the above address, and I will copy them on our subsequent exchanges.

Cheers.
Using LiveCode 5.5 on Windows 7 Home Premium Edition, Service Pack 1

Image
On my way from A TO Z, I often end up AT OZ.

HJay
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 85
Joined: Sun Mar 04, 2012 12:16 pm

Re: two cards that open randomly

Post by HJay » Tue May 22, 2012 7:38 am

Hi AtoZ

email sent, let me know here if you don't get it :-)

HJay

Post Reply