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.
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.
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?
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.