The Stomp Boots' logic is very simple: if you collide with an enemy, and your Z is greater than the enemy's Z (plus height), then the enemy takes damage instead of you. Substitute Z with Y in sideview. There will be an enemy flag determining if an enemy is immune to this or not. Also, maybe Link will "bounce off" enemies that he jumps on.

I don't know why you think the Peril Ring and the Peril Scroll are the same thing.

P.S: The Stone of Agony only responds to the following combo flags: Whistle, Burn 1, Burn 2, Burn 3, Burn 4, Arrow 1, Arrow 2, Arrow 3, Bomb (Any), Bomb (Super), Boomerang 1, Boomerang 2, Boomerang 3, Magic 1, Magic 2, Fireball (Reflected), Sword 1, Sword 2, Sword 3, Sword 4, Sword Beam 1, Sword Beam 2, Sword Beam 3, Sword Beam 4, Hookshot, Wand, Hammer, Strike.