Hello,
The following code makes the script have a strange behavior.

It is an issue, especially in some use cases as a Zelda-like shop.

Demo (requires RPG Maker VX Ace) :
Hudell.zip
An event-making solution is to create an 'Empty' item in the DB and use the following code :

But it makes a clipping effect (during 1 frame), which is relatively ugly. :/
Kind regards.