Updates for script tab in level editor

1. Adds autocomplete for events check
2. IDs are auto-inserted for new scripts