How to make computer players auto-cast spells

Do you need World Editor help? Ask here!
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)

How to make computer players auto-cast spells

New postby BugMeNot on Mon Jun 20, 2011 6:31 pm

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
BugMeNot
 
Posts: 98
Joined: Wed Jan 21, 2009 12:46 pm

Re: How to make computer players auto-cast spells

New postby 3ICE on Tue Jun 21, 2011 7:26 am

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 386 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
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: How to make computer players auto-cast spells

New postby BugMeNot on Thu Jun 23, 2011 12:03 am

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
BugMeNot
 
Posts: 98
Joined: Wed Jan 21, 2009 12:46 pm

Re: How to make computer players auto-cast spells

New postby 3ICE on Thu Jun 23, 2011 1:01 am

np
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2126
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE


Return to HELP



Who is online

Users browsing this forum: No registered users and 4 guests

cron