if you actually tried my project you would know that in such case the "backpack" is not unequipped
because I didnt want to do this in this way? read the above discussion perhaps?
I am interested by claims such as "if you actually tried my project"
Let's looked at what I claimed
Either you are forcing the character to drop several items to make room for that page blocker item
This is completely correct. If the player needs to drop items to ensure safe unequipping (perhaps, I'll discuss this later) of the cloak. A page blocker item is created to check if there is a blank page. If there is not a blank page then
you are allowing the page blocker to be dropped
So far I am right on with your methodology. And no, this is not NWNX where you can disallow actions, your fix is to equip the item when it has been unequipped. However, there are a few things you have not considered.
1) Playing around too much with equip/unequip actions can cause objects to freeze in the inventory slot. I have encountered this many times, and have actually accomplished it in your demo to show that there isn't all that much lag needed for this circumstance to occur.
2) There is a way to force the cloak to unequip which cannot be remedied by assigning an action to equip it. This is often the way to get around the "cursed" flag, and will easily be discovered by characters who have their inventory limited to one page.
3) The backpack page may or may not merge into polymorphs depending on how the inventory is arranged.