Page 1 of 1

How to make computer players auto-cast spells

Posted: Mon Jun 20, 2011 6:31 pm
by BugMeNot
Ok so im having problems getting computer players to auto-cast spells. I am using heal, slow, inner fire. For some reason heal auto-casts fine but the other 2 do not. I tried editing the spells in object manager but no use. Any way to make this work?

Re: How to make computer players auto-cast spells

Posted: Tue Jun 21, 2011 7:26 am
by 3ICE
Inner fire needs to be turned on. Slow should work by default. Testing...

EDIT: All problems solved. Map:
3ICE's Make AI Autocast Inner Fire.w3m
(9.96 KiB) Downloaded 677 times
Fixes problem: The ability is not researched. (This action won't work because of a bug. Do it separately for each player 1 by 1.)
t_pgr Player Group - Pick every player in (All players) and do (Player - Set the current research level of Priest Adept Training to 2 for (Picked player))

Fixes problem: The caster starts with 0 mana.
t_ugr Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Set mana of (Picked unit) to 100.00%)

Fixes problem: Autocast is turned off by default.
t_ugr Unit Group - Pick every unit in (Units of type Priest) and do (Unit - Order (Picked unit) to Human Priest - Activate Inner Fire)

Even works with neutral hostile.

Re: How to make computer players auto-cast spells

Posted: Thu Jun 23, 2011 12:03 am
by BugMeNot
thanks 3ice. your help is always appreciated

Re: How to make computer players auto-cast spells

Posted: Thu Jun 23, 2011 1:01 am
by 3ICE
np