@avdg_ There was no syntax error but I was trying to declare a global or module variable to keep track of the different types of creeps but apparenly JS doesn't like that. I ended up using the Memory to track them. @DunknDonuts Yes, that's correct.