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, 05:09 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
How many enemies will have 'item-fst' as their weapon do you think?

Ah, but you are mistaken about the meaning of compare_weapon. It doesn't compare the current enemy's weapon, it compares the weapon which is currently armed by Dink. If you only use that for opening a chest, for example, it would also be opened when shooting a fireball at it while having the fist armed, and even when a bonca attack hits it while Dink has the fist armed.


Uh... Tadada... I never said a word...

*Looks around innocently...*

Because there seems to be some overlap between &enemy_sprite and &missle_source. According to the DinkC Reference it seems that they are identical in the case of "normal" hitting (eg punching) and differ regards missiles only.

I think this is new in v1.08. Before that &missle_source only worked for missiles, since 1.08 I believe it indeed works as Sparrow describes. Before v1.08 you could actually get away with not declaring &missle_source if you didn't intend on using missiles. I remember that it caused quite a few old DMODs (made before skeleton_B became the standard) to be incompatible with v1.08 when it was first released.

Now what happens when you fire a missile and some NPC hits your target before the missile hits your target is an interesting question...