The script is really good, but for some odd reason, if pasted in the script editor it could present errors which aren't errors

Translation: there are some lines "cut" in two parts and you could have to "reconnect" them.
Maybe this is only a problem in the RMXP editor, but that script you find can be adapted to work even on RMXP or RMVXACE, so...
Jens