MZ Reno’s Pyramid from FF7 (and other damageable prison states)

In Final Fantasy 7, the boss Reno can trap a playable character inside of a pyramid; which the player cast has to destroy to free that character. This isn’t the only kind of skill that works like this (immediately coming to mind are the Granite Gaols from Final Fantasy XIV that serve basically the same function) but I think the displayed clip also provides an idea of what I want to do.

How would one go about doing this effect?

Hmmm, state with the 'cannot move' condition. If you can get selection control working (with Fossil or did Theo's one work with VS?) make your skills available to target your allies with that state then (EDIT: and VS target notetag). Then you use VS notetags to make the state store the damage value and then alter it to 0. Then show popup with the stored value. If the stored value exceeds a certain number then you remove the state. If you can't get selection control working, maybe you can just use invisible enemies that take no actions that you make hide/unhide and place it on top of actors with the state.

EDIT2: Did Theo even make a selection plugin? Hmmm. Anyway, if that's not an option, you'll have to get more creative like with the "fake" enemies I mentioned.

Original thread: https://forums.rpgmakerweb.com/threads/renos-pyramid-from-ff7-and-other-damageable-prison-states.177828/