Ambrosia Garden Archive
    • mission bits help


      I understand the basics of using mission bits but in the evn bible there is a piece i can't understand how it works or wat it does .
      And if I check the nova missions it used quite often .

      I mean this part:

      | Logical or operator
      & Logical and operator
      ! Logical negation operator
      ( ) Parenthetical enclosure

      Please help!!!!!!!!!

      ------------------

    • What this means is that:

      | = or
      & = and
      ! = clear the bit
      () = thingees to put around your bit string to make Nova understand what your trying to say.

      So, for the sake of illustraation, I will use two bits, 200 and 300. Say 300 is already set. Then you have a mission that you want to tell it to clear bit 300 and set bit 200. This is how I think it's supposed to be done:

      b200 & !b300

      set bit 200 and clear bit 300.

      Does that help?

      ------------------
      "This space /was/ left intenionally blank but has been replaced with useless tosh."

    • Actually, Mantaray is thinking of set expressions, which work slightly different. Only the "!" is in the set expressions, and works a little differently.

      Okay, basically, you have four "tools" to do things other than the regular b23 in the test fields.

      | means "or". It can be used so that the engine can do something if either of two things are true (or not true).
      b1 | b2 in the Availibility field for say, the oütf resource means that you can see the outfit if either b1 or b2 is set.

      & means "and". It can be used so that the engine can do something if both things are true (or not true).
      b1 & b2 in the in the Availibility field for the oütf resource means that you can see the outfit if both b1 and b2 is set.

      ! means "not". It can be used so that the engine can do something if a bit is false.
      !b1 in the in the Availibility field for the oütf resource means that you can see the outfit if b1 is cleared.

      ( )s are used to group things. Nova gets confused by "b1 | b2 & b3". It could mean either (b1 | b2) & b3 or b1 | (b2 & b3). Putting in the parentheses where I showed them means completely different things. (edit)Um, that doesn't sound gramatically right, but whatever.(/edit)

      For set expressions, you do not need &, |, or ( )s. "!" is used to clear bits (in the form of !b1), and R(<op1> <op2> ) is used to randomize between two set opperations (in the form of R(b1 b2)).

      ------------------
      "What goes up must come down, unless it reaches Escape Velocity and flies off to Palshife to join the Rebellion."
      (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/TheChallenge101.sea.bin?path=evn/plugins&file;=TheChallenge101.sea.bin")The Challenge(/url): A deadly test of skill and power (new version 1.0.2 coming soon)
      (url="http://"http://homepage.mac.com/mrxak/Haikus/haikus.html")The Haiku Archive(/url): Collected Works of the Rabid Haiku Generator

      (This message has been edited by mrxak (edited 04-16-2002).)

    • I also recently made a post explaining a bit about ncbs on the nova board (url="http://"http://www.AmbrosiaSW.com/webboard/Forum26/HTML/004204-3.html")here(/url).

      ------------------
      "What goes up must come down, unless it reaches Escape Velocity and flies off to Palshife to join the Rebellion."
      (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/TheChallenge101.sea.bin?path=evn/plugins&file;=TheChallenge101.sea.bin")The Challenge(/url): A deadly test of skill and power (new version 1.0.2 coming soon)
      (url="http://"http://homepage.mac.com/mrxak/Haikus/haikus.html")The Haiku Archive(/url): Collected Works of the Rabid Haiku Generator

    • Quote

      Originally posted by mrxak:
      Actually, Mantaray is thinking of set expressions, which work slightly different. Only the "!" is in the set expressions, and works a little differently.

      No, ^ is also in set expressions.

      Quote

      **Okay, basically, you have four "tools" to do things other than the regular b23 in the test fields.

      | means "or". It can be used so that the engine can do something if either of two things are true (or not true).
      b1 | b2 in the Availibility field for say, the oütf resource means that you can see the outfit if either b1 or b2 is set.

      & means "and". It can be used so that the engine can do something if both things are true (or not true).
      b1 & b2 in the in the Availibility field for the oütf resource means that you can see the outfit if both b1 and b2 is set.

      ! means "not". It can be used so that the engine can do something if a bit is false.
      !b1 in the in the Availibility field for the oütf resource means that you can see the outfit if b1 is cleared.

      ( )s are used to group things. Nova gets confused by "b1 | b2 & b3". It could mean either (b1 | b2) & b3 or b1 | (b2 & b3). Putting in the parentheses where I showed them means completely different things. (edit)Um, that doesn't sound gramatically right, but whatever.(/edit)**

      Remember, if you have an expression dealing with 3 or more bits, you HAVE to use parenthesies. Basically, if you have b1 & b2 & b3, even though it's perfectly clear and the same meaning whether it's (b1 & b2) & b3 or it's b1 & (b2 & b3), you still have to use parenthesies. The bible makes this very clear. I have no wish to test the validity of this statement, either 😉

      Quote

      For set expressions, you do not need &, |, or ( )s. "!" is used to clear bits (in the form of !b1), and R(<op1> <op2> ) is used to randomize between two set opperations (in the form of R(b1 b2)).

      Yeah, that's right. Although there is the "^" operator (in the form of ^b1) which toggles the bit. Basically, if b1 is set, then ^b1 will clear b1, and if b1 is cleared, then ^b1 will set b1. And R(<op1> <op2> ) has a 50% chance of doing either operation.

      ------------------
      Kevin Ballard
      (url="http://"mailto:kevin@sb.org")mailto:kevin@sb.org(/url)kevin@sb.org