A
Anvilsmith
Guest
I based my entire map, along with a lineup of roughly 180 units, on the idea that you could add an integer to the unitId of the first to get another unit's Id. Well, apparently, this doesn't work - or, at least, it does up to 'h009'. Once it needs to switch from that to 'h00A', no unit is created. The game just doesn't recognize the new Id. Apparently, however, I can add numbers to 'h00A' and obtain, say 'h00D'. So I can go past the apparent rift between '*009' and '*00A' by using an if statement to check whether an integer is about to cross from '*009' to a higher value, and switching to the higher value manually instead. In other words...
Problem is, I'm not sure if other such rifts exist. Presumably, some would show up between '*00Z' and '*010', '*019' and '*01A' and so on. Since I'm using a lot of unit types, and it's fairly difficult to check them all at once, I thought I'd ask about the matter here.
Code:
set uid = 'h006' + m
if m >= 4 then
set uid = 'h00A' + m - 4
endif
call CreateUnit(Player(p), uid, bla bla bla)
Problem is, I'm not sure if other such rifts exist. Presumably, some would show up between '*00Z' and '*010', '*019' and '*01A' and so on. Since I'm using a lot of unit types, and it's fairly difficult to check them all at once, I thought I'd ask about the matter here.