Electr0 created something that may help you as part of his interactive mugen. He does use stagevar though for coding, so you may have to modify the coding. Here is a pack with the code, sprites, and sounds you will need. Electr0 has a tutorial in the code file for each item on how to use it. Hope this helps.
Uploaded to mediafire as the original link is down now. All credit to Electr0 and Cyandia.
Original post: http://mugenguild.com/forum/topics/interactive-items-pack-1-code-127654.0.html
Mediafire link: https://www.mediafire.com/?t4zaww1p1u4tgz9