| 09-21-2002, 06:20 AM | #1 |
Guest | I've recently started playing with the human.ai file. I've been able to get the computer to build units and structures with SetBuildUnit(). In order to specify what type of unit/structure I want built, I'm using the constant integers (I swear those look like strings!) that are defined in common.ai. For example, a Human Farm is idenitified with the string 'hhou', and an Human Altar of Storms is 'halt'. If I create a custom unit, is there any way to get the identifier for it, so I can reference it in my .ai function and get the computer to build me one? |
| 09-21-2002, 06:27 AM | #2 |
Guest | I just determined the answer to my question seconds after hitting the submit button. If anyone is curious, here's the answer... Create a trigger in WE and have it Create 1 Unit of the unit type you're after. Convert the trigger to custom text and look for the 'xxxx' string. In my case it was 'hC07'. Works like a charm. |
