HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

KI - vague idea

02-06-2010, 01:56 PM#1
Idontneedaname
Hi guys!
I want to creat a small KI, meaning a normal warcraft map (1 human vs. 1 computer player) where the races are pre-defined.
I would code it in GUI or simple Jass.
But my problem is that I don't really have an idea for the basics. How to set up a system to make the KI run and react?
This is not a question for specific triggers, only for the way to do it.

-Idontneedaname
02-06-2010, 02:18 PM#2
Alevice
KI?
02-06-2010, 02:35 PM#3
Hans_Maulwurf
german for AI,

Maybe you should use periodic functions, which build units/buildings depending on what you got already and add them to a combat group, which attackwalks to your base when it gets attacked or attackwalk to the enemy base, when big enough. And one, to do the "in battle" stuff, like using spells, items, or microing back to base when on low hp.
02-08-2010, 06:48 PM#4
Idontneedaname
Periodics... I'll give it a try. Thanks!
02-11-2010, 12:35 AM#5
Archmage Owenalacaster
I imagine writing a melee-ish AI in vJass would grant so much more control to the designer than doing it in an AI script; I wonder if anyone has tried it.

Have you considered writing an AI script (*.ai) or are you intent on doing it in the map script?
02-11-2010, 03:29 AM#6
Alevice
you could. just use jasshelper on your ai file. nerd
02-11-2010, 04:11 AM#7
Archmage Owenalacaster
Foo', for one thing, trigger objects don't work in AI. Hell, AI crashes the game if you call R2S, it can't do anything useful with unit groups, and boolexprs don't work at all; a number of standard JASS features don't work, let alone vJass features like structs.
02-11-2010, 04:17 AM#8
Alevice
Well, vJass structs should work. You don't need any tirggers whatsoever, just run your ai file directly through jasshelper.exe.

I do agree that vJass functionality is pretty cut down on AI tho. :P