How to make computer players auto-cast spells

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
BugMeNot
Posts: 141
Joined: Wed Jan 21, 2009 12:46 pm

How to make computer players auto-cast spells

Unread post 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?
This is a guest account intended for use by people who wish to remain anonymous or hate registering.
(Please don't forget to sign your posts with your name if you want us to know who you are.)
http://www.bugmenot.com/view/3ice.hu

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: How to make computer players auto-cast spells

Unread post 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.
Last edited by 3ICE on Tue Jun 21, 2011 9:19 am, edited 1 time in total.
Reason: done
ImageImageImageImageImage
Image
ImageImage

BugMeNot
Posts: 141
Joined: Wed Jan 21, 2009 12:46 pm

Re: How to make computer players auto-cast spells

Unread post by BugMeNot »

thanks 3ice. your help is always appreciated
This is a guest account intended for use by people who wish to remain anonymous or hate registering.
(Please don't forget to sign your posts with your name if you want us to know who you are.)
http://www.bugmenot.com/view/3ice.hu

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: How to make computer players auto-cast spells

Unread post by 3ICE »

np
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 109 guests