The ~ is not recognized by the script as a power option. The only items that are recognized are @, %, and +

Make sure you're using just the script I supplied, as it was tested by Ryu (whom you met in the scripting channel on maximum-irc) and it works for him.