Would it be possible to make a script that prevented use of an item outside a dungeon until you beat that dungeon? (Ex: You can only use a boomerang you found in Level 1 inside Level 1...UNTIL you get the Level 1 Triforce piece.)

I know how to disable an item in a DMap (Disable, on the far right tab of DMaps), and I know it can be done with scripted items (using If And), but can you achieve the above effect for a nonscripted item?