I am thinking that I could at least make dynamite by first creating an enemy that self-destructs a few seconds after it appears, providing a weapon state machine, and setting it to summon that enemy using the SPAWN command during an attack.