Thursday, April 12, 2012

AI configuring

[:1]Hey everyone. New to the site and just starting playing WIII a little while ago. I found the map editor and decided to make an interesting map for me and my little brother to play. The map is essentially four people each to a corner and then the center has a bunch of cool stuff.

My question is this. How can I edit an Hostile AI so that he will randomly patrol a CERTAIN area. I had the idea to edit a black dragon for ridiculously high stats and name him DeathWing, but i can't figure out how to get him to patrol the area I want.

The point is: I want him to smoke bitches left and right. Become the element of "OH ****! DEATHWING = INSTANT ****." But if hes stationary then he's easy to avoid... no matter how strong. Help would be appreciated.|||just download the jasscraft tool, and open some AI script for w3, to check the source code... for waves and groups.

After, you can write your own AI script and import it into the wolrd editor for your map|||Can't you just make a trigger for your dragon?

Event could be every x seconds of the game, and the action would be

Unit - Issue Order targeting a point.

like

(Order DEATHWING to attack-move to a random point in region "Y")

OR

you cold also create many region then when unit enters a region

Create an integer and set integer=Math(Random integer between 1 and (your number of regions))

then use if then conditions, if "integer"=1 then order DEATHWING to attack-move to region "X", if "integer"=2 the ... to region "Y"... etc.

No comments:

Post a Comment