The Dink Network

Reply to Re: Help Needed With D-MOd!!!

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 15th 2009, 01:03 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
"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:
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.