Reply to Re: Before...
If you don't have an account, just leave the password field blank.
but how do we set, reset and test various bits
What I've said so far was strictly for static values. So no variable changing.
But let's say you have a fetch quest for Bob, and he has &bob_var global variable:
Now, this &bob_var, goes from 0 to 3 (so 0000 to 0011). I'm thinking about another function now, that will be able to change the global binary var. Otherwise, yes, this whole concept is useless.
What I've said so far was strictly for static values. So no variable changing.
But let's say you have a fetch quest for Bob, and he has &bob_var global variable:
void talk(void) { if(&bob_var == 0) { say("Bring me some Talporn!!", ¤t_sprite); &bob_var = 1; //bug alert here, but ignore it for now } if(&bob_var == 1) { say("Have you found Talporn yet?", ¤t_sprite); } // Dink finds some Talporn eventually which sets &bob_var = 2; if(&bob_var == 2) { say("I brought to you your deepest desire", 1); say("Muito obrigado", ¤t_sprite); &bob_var = 3; // again, bug } if(&bob_var = 3) { say("I'll never forget the favour, Dink", ¤t_sprite); } }
Now, this &bob_var, goes from 0 to 3 (so 0000 to 0011). I'm thinking about another function now, that will be able to change the global binary var. Otherwise, yes, this whole concept is useless.