MAIN: In header of iscript there are opcode called "Type". This contains type of object, which will use this script. I failed to found/understand all of them, but at least 6 can be found here:
- 2 - weapon's sprite (missile, phase charge);
- 12 - close combat unit, or unit using different air and ground weapons (not sure);
- 13 - unit with same animation for both attacks (not sure);
- 20 - Terran/Neutral building;
- 21 - Protoss unit/building;
- 26 - Burrowable zerg unit;
If you know any more, please post it in comments. I wanted to transfer Armory to 4th race, however game crashed when it's building were finished (Same as XN-CC). I've changed It's race to protoss, and changed armory's iscript from 20 to 21. Game dont crashes now, but Armory dont works. Anyway, I added defensive building for 4th race, and it only building, that requies psi. It has same fuctions as photon cannon, but twice stronger, and costs 275 ore.