Reply to Re: Bookshelf
If you don't have an account, just leave the password field blank.
October 30th 2012, 04:34 AM
shevek
it's a good idea to add an extra check to make sure it's Dink doing the hitting
Actually, you want more checks:
Is dink doing the hitting? -> &enemy_sprite == 1 (I think).
Is dink hitting with a weapon (as opposed to magic)? -> &missle_source == eh, 0? You should check this.
And in your case, is &story the right value?
if (&missle_source = 1)
The misspelling of missle_source is correct. The single = sign is not.
And it doesn't check what you want to know, I think (but didn't check either). This checks if dink himself was fired at the object. It should be possible to do this, but I don't think it's ever useful... Maybe for a very special "transform into a fireball"-type of attack.
Actually, you want more checks:
Is dink doing the hitting? -> &enemy_sprite == 1 (I think).
Is dink hitting with a weapon (as opposed to magic)? -> &missle_source == eh, 0? You should check this.
And in your case, is &story the right value?
if (&missle_source = 1)
The misspelling of missle_source is correct. The single = sign is not.
And it doesn't check what you want to know, I think (but didn't check either). This checks if dink himself was fired at the object. It should be possible to do this, but I don't think it's ever useful... Maybe for a very special "transform into a fireball"-type of attack.