Quote
Originally posted by Ory ' hara:
**Ok uncletwichy, sorry, but 1 more question, why do some misns in the data files the mission bits in the box have brackets, like example:
(b1234)
**
Quick lesson in pre Algebra. The engine can only handle two equations when determining which bits are set and which are not. So if you write 3 values like: b445 & !b446 & !b511 the engine won't be able to figure it out. Instead you'd write (b445 & !b446) & !b511. Or you can simply it even more by bracketing the ! bits: !(b446 & b511) & b445. This does the same thing as the previous example. The engine does the equation in the brackets first then once it has a single value for those it can move on to the next value. By putting the ! outside the brackets it will apply it to everything within them. The last example is saying that everything within these parenthesis should not be set and b445 should be.
Larger equations work the same way: !(b446 & b511) & (b445 | b311) The engine will work the first parenthesis, store that answer (true or false) then it'll work the second half and return a true or false for that. If everything looks good it'll return a True True answer. If it returns True False the mission will not be available. Have a fifth bit that needs to be checked? Add another parenthesis: (!(b445 & b511) & b9) & (b446 | b311). The engine evaluates b445 along with b511, if it evaluates true, it'll move on to evaluate b9. If it returns True it'll store that and move on to evaluate b446 and b311. If either of those are set, it evaluates True for the entire expression and the mission is available.
------------------
((Ż'ˇ.¸(Ż
'ˇ.¸Ť-KAME-ť¸.ˇ'´Ż)¸.ˇ'´Ż))
I used to jog but the ice kept falling out of my glass.
(url="http://"http://www.0three0.net/l-1551/")L 1551(/url) - The official site of RONIN and The Way and the ten thousand things