Reply to Re: Help Needed With D-MOd!!!
If you don't have an account, just leave the password field blank.
"There is no need to count the pillbugs - just use a screenlock script, dangit!"
Reading over what legendg posted, it appears that he does not mean the pillbugs are just in one screen, but in an area that take up multiple screens. If this is the case, then yes, you do need to count the pillbugs.
Is this right, legendg?
If so, the easiest way is to make a global variable by adding it in main.c. For example:
Then in the pillbug's script, you would add this to the die procedure:
Change 'Numberofpills' to the amount of pills at the beginning. And change the 'Blah, blah, blah', to whatever you actually want Dink to say and you're all set.
There is another way of doing it, but this is probably the easiest for a beginner to understand, I'd say.
If this isn't what you meant, then yeh, just use a screenlock and ignore this.
Reading over what legendg posted, it appears that he does not mean the pillbugs are just in one screen, but in an area that take up multiple screens. If this is the case, then yes, you do need to count the pillbugs.
Is this right, legendg?
If so, the easiest way is to make a global variable by adding it in main.c. For example:
make_global_int("&pillcount", 0);
Then in the pillbug's script, you would add this to the die procedure:
&pillcount += 1; if (&pillcount == Numberofpills) { freeze(1); say_stop("Blah, blah, blah", 1); unfreeze(1); }
Change 'Numberofpills' to the amount of pills at the beginning. And change the 'Blah, blah, blah', to whatever you actually want Dink to say and you're all set.
There is another way of doing it, but this is probably the easiest for a beginner to understand, I'd say.
If this isn't what you meant, then yeh, just use a screenlock and ignore this.