Reply to Re: Bookshelf
If you don't have an account, just leave the password field blank.
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:
(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.
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.