Synthetic Reality Forums   
my profile | directory login | register | search | faq | forum home

  next oldest topic   next newest topic
» Synthetic Reality Forums » Our Archives » WoS World Developer Tips » * NEW QUEST LANGUAGE COMPARISON COMMANDS.

   
Author Topic: * NEW QUEST LANGUAGE COMPARISON COMMANDS.
samsyn
Administrator
Member # 162

Member Rated:
4
Icon 10 posted      Profile for samsyn   Author's Homepage   Email samsyn   Send New Private Message       Edit/Delete Post 
* NEW QUEST LANGUAGE COMPARISON COMMANDS.

Fairly simple and brain damaged, I document by example:

COMPARE A,B
IF= @theyAreEqual
IF> @AbiggerThanB
IF< @AlessThanB

The COMPARE command subtracts B from A and saves the result in a special place which doesn't get munged until the next time you use the COMPARE command (or one of the new math commands: ADD, SUB, MUL, DIV and MOD)

The three IFx commands test that special result and jump to the label if the result was as indicated. So your IFx command doesn't HAVE to immediately follow the COMPARE command, though I suspect it generally will.

Arguments A and B are interpreted as signed decimal numbers. For now you are stuck with constants and cookies. So, you can do:

COMPARE #<cookie>, "2"
COMPARE #<cookie1>, #<cookie2>

etc.

But you can NOT (yet at least) say:

COMPARE I143, "3"

but I am walking slowly in that direction.

[This message has been edited by samsyn (edited 06-20-2001).]


Posts: 10610 | From: California | Registered: Dec 1998  |  IP: Logged
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Synthetic Reality

Copyright 2003 (c) Synthetic Reality Co.

Powered by UBB.classic™ 6.7.3