ok, I gotta ask... from the help file for $input
Note: This identifier cannot be used in a script event. One way around this is to use a /timer to initiate an input request after the script ends.
do dialog script events not count as a \'script event\' ?