HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Computer controlled units casting spells while following a ordeR?

02-08-2004, 05:46 PM#1
GaDDeN
If i for example have a blood mage being controlled by a computer, who is currently ordered to attack move to a building. If he now sees a group of grunts attacking him on his way to the building, how do i make so he automaticaly cast flamestrike?

I dont want triggers like cast flamestrike on attacking unit, cuz i want the computers to do this all on their own, just like in normal melee games.... should i use the trigger "melee game - use melee computer AI" to make them use skills?

Plz answer as quickly as possible
02-08-2004, 07:36 PM#2
xxxSpikexxx
This is why the AI-editor exisists ... You can make allmost every AI-script
02-08-2004, 07:44 PM#3
Shark
i think AI editor is just for building units and buildings and custom heros, and doing strats (like 6 grunts rush etc)....i don't think u can make "combat" scripts with it :)
02-10-2004, 12:18 PM#4
GaDDeN
Yea, but i have 0 idea of how to use the AI editor, havent even seen it. I meant that if you have specified player settings and one is computer, will he automaticaly cast spells? Or should i have the melee game - set melee computer stuff?

Otherwise ill make it manually for each level... wud take some time...
02-10-2004, 01:35 PM#5
Vexorian
hey, the computer always do stuff by its own, I think that you just have to make sure the bloodmage has learned flamestrike (use the learn skill trigger action), and probably when you order the bloodmage to attack a point and the bloodmage gets some interference will try to cast flamestrike (only if there are enough units to make flamstrike worthy)
02-10-2004, 08:11 PM#6
GaDDeN
Ok... so if i order a dryad to attack move behind a blockade of burrows, and a archer on his team gets curse cast on him, will the dryad automaticaly use abolish magic if he has mana and autocast?

If so, this thread was totally unneccary:D