| 02-18-2003, 12:54 AM | #1 |
If I create a custom unit, base it off of a Great Hall and only change its Trained unit to a unit based off the Peon (except the peon can build 2 extra buildings)... As in I create a complete copy of the Orc units, will the AI know how to use them? If not is it possible to create a AI script that can? And if I have to create a new script can you give me a brief instruction on how to get it right, because when ever I add a file to my map wc3 never seems to read it. |
| 02-18-2003, 01:36 AM | #2 |
the AI wont be able to do anything with ur custom unit, or any custom unit(i think). and i dont know anything about making an AI script. |
| 02-18-2003, 01:46 AM | #3 |
Thanks for the reply. I guess there is always the option of making triggers to do an AI... at least I know it will work that way. |
| 02-18-2003, 02:27 AM | #4 |
good luck!:D |
| 02-18-2003, 02:53 AM | #5 |
the only way to get the computer to use ur custom unit, is either with triggers or custom ai, so id go over to the ai forum and ask that question maybe they will have some tips to give u |
| 02-18-2003, 03:14 AM | #6 | |
Guest | You would have to create a copy of the Orc.ai that uses your custom units. You WILL need NEW constant variables that are normally defined in the common.ai file. Luckily, you can just put these at the top of your new orc.ai file you are making (i would rename it). The constants look like this (from the common.ai): Quote:
You DO NOT want to use the same variable names for your new custom units. You also don't want to duplicate any existing units that you will be using. Just leave those out of your new .ai file. The rest should be self explanatory once you look at the Orc.ai file. |
| 02-18-2003, 03:42 AM | #7 |
Your not going to believe this, but the first time I tired creating an AI, that was only done by triggers, worked! - Trains Peons - Builds Necessary Burrows - Trains an army - attacks random enemys - if attacked will enact revenge - if hero dies will rebuild that hero - if a building is destroied it will rebuild it. :ggani: |
