Axe Software Forums
  Quest Developer Forum
  What happened to the 'Collectable' condition in QDK?


Author Topic:   What happened to the 'Collectable' condition in QDK?
carlii posted 01-01-2002 04:38 GMT     
I remember using the 'If player has a certain amount of Collectable' in QDK's conditional editor. Now, I know the new version has found collectables obselete by status variables but what has happened to that condition? What do I use instead? I want the player to be able to buy something, only if he or she has a certain amount of gold. Which condition would I use in QDK?
Tyrant posted 01-01-2002 07:42 GMT          
It's still there, but slightly changed. Go to a condition, and get "Compare Two Strings or Values". I think it's the first one on the list of conditions. Anyway, if your variable is numeric (uses numbers like in your case), type the name in the String 1 box, and surround it with % signs (to tell Quest that this is a numeric variable).

Ex.- %money%

(Note- Not sure if the % signs are needed, but I use them and it works with em, so it doesn't matter.)


Now select how you want the condition to affect the second string (or value), such as making it equal to, greater than, etc. Now, in the String 2 box, simply put in the value. If you want the money to be greater than or equal to 20, just select Greater Than or Equal To in the pull-down bar, then put 20 in the String 2 box. Simple, eh?

You can do all sorts of different things with this new method, such as comparing two string variables, etc.

Hope that helps.

carlii posted 01-01-2002 08:55 GMT          
thanks a lot Tyrant, I've gotten grip of it now - just I'm so used to Quest 2.16! *sigh*
Tyrant posted 01-01-2002 16:46 GMT          
No prob, it took me a while to get used to 3.0 as well, but now I don't understand how I got along without it!