- Moved statics to cpp - Save scriptids into an array (cherry picked from commit 3e7b64b2f765bebc722c1194b7fc2f749fae77f7)