HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I get my custom script for the Burning Legion to run?

08-10-2003, 01:44 AM#1
Sardius
Ok I customized a script for my playable race, the burning legion. Using the ai editor... Based around the undead, I changed the heroes it would build, the buildings, the units and all that stuff in the ai editor and saved it as Burning Legion.wai

Then I import it to my map
and I have an initializeation trigger that is "start melee ai script for player 4"purple"(which is the burning legion) imported script Burning Legion.ai

Went and tested my map, watched and waited, they did absolutly nothing, I watched the burning nexus which is there town hall for a good 3 minutes and they didn't do a single thing.
08-10-2003, 02:14 AM#2
Sardius
Ok I figured it out, it seems the run melee ai for computer players was over-riding my script...
So how do I load up default melee ai for all computer players EXCEPT player 4, having them use a custom ai script.

Also Im having a problem... My burning Legion heroes I created cannot be built from the altar because of certain hero hardcore dated making them require other racial buildings...
So instead I have dummy units, and when one of those dummy units is built, they are replaced with the real hero...
But this completely messes up the skill gain for computer heroes in the ai settings... The dummy hero has no skills, and the real hero that replaces the Dummy unit does not learn any new spells when they level up because they have no ai telling them what skills to learn...

Can anyone help me with either of these problems?
08-13-2003, 12:53 PM#3
AIAndy
I think there is an action that runs melee AI scripts for only one player. So use that action for all other players and then run your specific AI script for your player.
As for the hero stuff. The AI editor expects the hero that is built to level. So you maybe should enter your real hero there but do not build it. Instead build your special unit that is replaced in the AI script. That might work.