Search found 4 matches

by Unfortunate
Mon Jun 05, 2017 4:19 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A way to store a permanent number from a random number
Replies: 9
Views: 6631

Re: A way to store a permanent number from a random number

Sure I can look up code, so long as it's the same as looking in a book-educational code. I don't think there are any books on Livecode so you literally have to do that. Most programming books have example code to teach you, for the purpose of teaching syntax (unless by "code" you mean illegally stea...
by Unfortunate
Mon Jun 05, 2017 12:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A way to store a permanent number from a random number
Replies: 9
Views: 6631

Re: A way to store a permanent number from a random number

Unfortunately the number still came up blank somehow. Which number ? I tested it, thePreAnswer is not empty. It contains a random number theAnswer, after putting thePreAnswer into it. Basic commands in LiveCode are not very different from other languages and the basic logic is usually the same. The...
by Unfortunate
Sun Jun 04, 2017 9:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A way to store a permanent number from a random number
Replies: 9
Views: 6631

Re: A way to store a permanent number from a random number

Hi, I don't think I am using globals correctly. Right. You have to declare them on top of script global thePreAnswer on openStack set the randomSeed to the long seconds put random(100) into thePreAnswer end openStack Best regards Jean-Marc Thank you so much for your reply and answer. Unfortunately ...
by Unfortunate
Sat Jun 03, 2017 2:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A way to store a permanent number from a random number
Replies: 9
Views: 6631

A way to store a permanent number from a random number

What I want to do is create generate a random number and then store it, and only change once the user gets it right. This will allow the user to make more than one guess for the same number. The main idea to this program is to categorize the guess and the answer into quadrants, and only tell the use...