The Dink Network

Reply to Some form of "selective" nohit function?

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:
 
 
September 11th 2017, 09:57 PM
knightgl.gif
castman
Peasant He/Him Brazil
Some day I'll finish my mod... Some day... 
In this scenario, the player has to destroy some floor boards using bombs.

For these bombs to be able to damage and destroy these boards, their nohit value can't be set to 1, or else the bombs are not going to detect them. However, these boards being 'floor' sprites, it would be really odd if arrows and ranged spells could hit them.

Is there any way in which a bomb could detect and damage these sprites, while other 'missiles' would fly over them?

I believe I could brute force it using the 'inside_box' function, but since I intend to make this a common quirk, having to write box lines for every instance of it would be a nightmare.

Any ideas?