The Dink Network

Reply to Re: Bookshelf

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:
 
 
October 30th 2012, 04:25 AM
dinkdead.gif
One thing to be careful about with hit scripts is that they are called when any sprite hits the sprite in question, not only Dink, so if there are enemies on the screen it's a good idea to add an extra check to make sure it's Dink doing the hitting:
void hit(void)
{
 if (&story == 2)
 {
  if (&missle_source == 1)
  {
   int &var = compare_weapon("item-fst");
   if (&var == 1)
   {
    //Do whatever you want here...
    &story += 1;
   }
  }
 }
}

(I think that's right, haven't used it in a while...)

And shevek reminded me, WDE+2 can also decompress scripts from .d to .c.