The Dink Network

Fist won't work

June 23rd 2011, 05:15 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
How can I make it so a wall will disappear only when I hit it with my fist? So, when I hit it with sword and bow and anything else than fist, it won't disappear?
June 23rd 2011, 05:20 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
In the hit procedure of the wall, make use of the compare_weapon() function. It's details and examples are well documented in the DinkC reference, should be a simple copy paste job
June 23rd 2011, 05:23 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
Never mind, figured it out.

EDIT: Thanks anyway, Kyle.
June 23rd 2011, 05:33 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Don't forget to check if it's really Dink who's hitting, and not some other creature that can attack while you just happen to have fists equipped.
June 23rd 2011, 05:37 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
Yeah, there's no problem about that. At least in this case. Can you show me how to check if it's Dink, in case I need it later on?
June 23rd 2011, 05:54 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Just check if &enemy_sprite == 1 and &missle_source == 1 (and yes, &missle is spelled incorrectly, this is one of those weird Dink things)