HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to make a Campaign AI

10-08-2006, 06:48 PM#1
moyack
Attached Images
File type: jpgAI Editor SC.jpg (55.9 KB)
10-09-2006, 05:34 AM#2
Av3n
Yay I see that you choose to start with JASS AI first. Well when i have time prehaps I'll start on the WE Ai editor!

-Av3n
10-20-2006, 08:31 PM#3
Av3n
... moyack I think you should but down an way how to get the Rawcodes of units, then making JASS ai's will be easier.

-Av3n
10-20-2006, 09:40 PM#4
moyack
Hmnmm... Yes, you're right. As soon as I get home, I'll add this info.

By the way.... Any other moderator has other suggestion to implement to this tutorial??
10-21-2006, 04:23 AM#5
Av3n
nah Pitzermike hardlys goes on the Comp lately, dunno why.

-Av3n
10-23-2006, 10:07 AM#6
PitzerMike
This is great. Again, sorry for the late reply. *Approved*
And +rep :)
10-23-2006, 10:17 PM#7
Jazradel
Wave 8 when you first look at looping is missing the suicide command.
10-24-2006, 02:14 AM#8
moyack
Quote:
Originally Posted by Jazradel
Wave 8 when you first look at looping is missing the suicide command.
Ohhhhh yesss.... you're right :)

Thanks for point it out. I'll fix it right now.

EDIT: Fixed
10-24-2006, 04:55 AM#9
Av3n
Wow to be honest you seriously learn Immotlition for the first ability for an Demon Hunter? Mana Burn is the best one!

-Av3n
10-24-2006, 01:43 PM#10
moyack
Well. it's just an example, and usually I learn immolation first because it let you make a good harrassment.
10-25-2006, 03:50 AM#11
Av3n
... Mana Burn is better

-Av3n
10-25-2006, 12:51 PM#12
cazat
is there any tutorial on campaign AI -> 1. not using JASS? 2. no building strategy but only attack waves? (pre-placed buildings) and maybe only build when certain building is destroyed? 3. no level of difficulty 4. also considering custom units and hero abilities

i dunno if such AI is easier to make or not...since no building strategy...

i'm always looking for such tutorial...since so far i am a noob to AI, so...^^ (sigh* ashamed...willing to learn)
10-25-2006, 06:06 PM#13
moyack
@ cazat:

Quote:
is there any tutorial on campaign AI -> 1. not using JASS?
I've searched a lot about other tutorials related to this topic and unfortunately I couldn't find anything, so I believe that this is the first tutorial of its kind. This is the work of testing and analyzing the blizzard's campaign AI scripts.

Quote:
2. no building strategy but only attack waves? (pre-placed buildings) and maybe only build when certain building is destroyed?
If you don't add the building strategy, the AI won't be able to rebuild destroyed structures. If you preplace the buildings in game, the AI won't build again those structures, but it will replace them in case they were destroyed, so, as possible, don't avoid the building strategy.

Quote:
3. no level of difficulty
Hmm... this can be solved easily, only set the same amount of trained units in all difficulty levels. As an example:

call CampaignDefenderEx( 2, 2, 2, ARCHER ) // it will train 2 archers in any difficulty level

Quote:
4. also considering custom units and hero abilities
Well, this can be done, the only difference is that you have to use the ID rawcodes instead the names, but everything is the same.


Resuming, if you want to make an AI without using JASS and with all your needs, I strongly suggest that make experiment with the AI Editor in WE. You can get AI examples made for this system in wc3sear.ch. I can ensure something, the only way to learn AI is starting an AI, adding some units and testing, and testing, and testing much more times, it takes time but at the end, you'll see that is not so difficult.

EDIT: Damn!! I forgot to add this, Check this tutorial about the Ai Editor, it's quite easy to learn and goes to the point.
10-27-2006, 04:33 AM#14
cazat
thanx for the advices, i will learn them after my yr12 exams^^, hopefully i can get things right
12-16-2006, 08:43 AM#15
HyperActive
USEFULL!!!
+ rep