The reason for your original script not working is that you put two identical events in the same scripfile. Either put them in different files, or join them like Crinul did with if ... elseif.